- #1
DivGradCurl
- 372
- 0
I'm trying to come up with a C++ program that reads input from a text file. Each line of this text file has a different variable. I have different data types (int, string, char). I'm having difficulty to read strings with spaces and read char's. The rest seems to work fine. If possible, I'd like to hear some tips on how to improve my work. I've already searched the web several times, but I haven't been able to find a solution. The programs (one that creates 20 blocks of inputs and the other which reads each block) are attached.
Any help is highly appreciated.
Any help is highly appreciated.