Hello, everyone I'm a student totally a noob in this of programming just know a litle web programming JS-HTML5, but nothing extraordinary.
I need help with some problems. Thanks if you help, and thanks if not. :D
1. Make a program in C++ that create a file of text name: STUDENTS.txt in there it's have to be stored the folowing data: ID, Name, LastName, CarreerCode, of one student separated by comas (loop?).
2. Make a program in C++ that read a text file name: NUMBERS.txt, that file contains any number in each line. teh program haves to reed every number, print it in screen and detect and print too if it's pair or not pair.
3. Another program in C++ that generates N wholes number randomly and stores it in a binary file name: wholes.dat.

Afzaal Ahmad ZeeshanPosted Mar 30, 2015, 8:52 PM
3. You might consider giving rand a look, it would help you to generate random numbers. You can set the limit to start from zero to (a limit). Whole numbers start from zero and go to... Infinity.
I came to know that the first two programs are about files. So it would be better if you get to know file streams a bit. You can have a look at the fstream, to learn more about how file streams are worked around in C++.
Carlos Robles CalderonPosted Apr 2, 2015, 4:10 PM