Say I was reading data in which the indexing starts at 1. I want my indexing to be 0 based.
Why is it not acceptable to use postfix increment/decrement operators after a stream insertion operator?
int a;
std::cin >> a--;
Say I was reading data in which the indexing starts at 1. I want my indexing to be 0 based.
Why is it not acceptable to use postfix increment/decrement operators after a stream insertion operator?
int a;
std::cin >> a--;