Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (fellowroot):

C programming I need to know how to read this data into a program that I wrote. The data normally is entered in by hand, but now this same data is in a file. I need to know how to get the computer to read each value just as a person would be entering it in. Here is the data 21 25 30 30 10 12 55 60 -1 /* this is the flag to end inputting the assignment data */ 21 25 30 30 10 12 21 25 30 30

OpenStudy (anonymous):

you can use fscanf -> in "C" and cin for a file stream -> in "CPP" loop it, and check for the first number.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!