I want to read a line of integers from the user. I\'m not sure how to check to see if the input has ended. For example I want to be able to do something like
The idea is silimar with this code below so you can try :
int tmp; while(cin >> tmp != NULL){ // C++ or while(scanf("%d", &tmp) != -1) {} for C // do something }