Hi,
I'm new to the boards and C++. I was wondering how I could read in multiple values from a line of data. I have a part of the program I was working on, here:
Code:cout << "Please enter" << x << " samples." << endl; cin >> sample; for (i = 1; i <= x; i++) { cout << "Sample " << i << " is " << sample << endl; }
basically, what i am having problems with is reading in the "x" samples from the input buffer. I can do it with characters, but not numbers. Can anyone help?