Hi,
I am having issue with one of my programs. My program is supposed to read from command from the simulation text and find values form sample text. So, far I have been able to read almost everything except the Array! I tried to cout my array and it gives me weird character or nothing. I don't know how to use the code function for the forum post...
using std:: cin;
using std:: cout;
using std:: endl;
using std:: string;
using std:: ifstream;
using std:: istream;
using std:: ofstream;
using std:: ostream;
what are you expecting to see?
you call it numbers, its reading characters. It appears to have spaces in the file text. I can't recall if >> reads spaces for characters or skips them, but that might be part of it. Its been a while since I read char by char, usually do lines or whole files at once.
What exactly did you get? Your loop looks more or less correct, but it would be really helpful to see what you got into "numbers" from the exact file that you showed here.