I am writing a program that can read in statistics from a basketball team. The file lookes like this:
Joe 3 114 9-19 1-3 2-4 3 15 4 2 1 2 3 21
I have created an array of structs to read all of them in
I used ifsteam infile2("file.txt") to open file
To test it I made my code:
infile2 >> Player.Name;
cout << Player.Name << endl;
I get nothing!! I haven't the slightest clue what is wrong! If anyone can help PLEASE do so!!