77 961
Assignments Done
Successfully Done
In August 2019

Answer to Question #37646 in C++ for Sara

Question #37646
How can I read from a file having the last name both Smith and Jr. without errors? Whenever I run the program it causes an error with Jr. in the file but when I remove it from the input file it doesn't have errors. This is how I read it
void Read_Student(Student & Temp , ifstream & fin){

fin >> Temp.FirstName;
fin >> Temp.LastName;
fin >> Temp.Id;
fin >> Temp.Quiz;
for (int i = 0 ; i < 6 ; i++)
fin >> Temp.Test[i];
Willy Smith Jr.
222114444 90 73 67 77 70 80 90
Expert's answer

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions