I am currently developing an application, which gets the input from a text file and proceeds accordingly. The concept is the input file will have details in this fomat
A AND B
B OR C
Each and every line will be seperated by a blank space and the input must be taken from the text file and processed by logic. I use a TCPP compiler and i am facing problems reading the input. Please help me with the issue…
Reading input a line at a time is normally done with
std::getline, something like this:If you’re having trouble with things like this, you might consider looking for a (better) book on C++ than whatever you’re now (hopefully) using.