I want to use the iostream input and output operators in the same statement, not to be nicer to the user but the look I was trying not successfully obtained.
Code fragment:
int value = 0;
std::cout << "Number 1: " << std::cin >> value << std::endl;
Is there any way to do this using only cin cout?
1 Answer