Instead of immediately formatting and printing the line, read the contents of the entire line into say a struct. If the flag is 1, format and print the struct, then move on to the next line.Originally Posted by Aslan14
Instead of immediately formatting and printing the line, read the contents of the entire line into say a struct. If the flag is 1, format and print the struct, then move on to the next line.Originally Posted by Aslan14
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)