Ask your own question, for FREE!
Computer Science 64 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!
Latest Questions
ilovemybf: i need more drawing ideas
32 minutes ago 4 Replies 1 Medal
toga: what is a Mayuri
1 hour ago 3 Replies 1 Medal
Midnight97: Here is a beat I made let me know what y'all think
1 hour ago 24 Replies 2 Medals
toga: who thinks that there should be more titles
2 hours ago 5 Replies 0 Medals
Midnight97: Can I get some help because I forgot how to do this
3 hours ago 5 Replies 2 Medals
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!