Hi,
I'm trying to write a program to help me look up Chinese characters in the dictionary. It's really hard on the eyes to use the book-dictionary and it takes forever. I'm a newb C++ programmer w/out even a book to help me, just trying to learn from online tutorials.
I'm wondering, when I use getline in the following piece of code, it reads from the text file the first line just fine but the next array is just garble. How do I move to the next line of the text file to read the next line into the next array?
Thanks a million for your help!
Code:if (a_file.is_open()) { a_file.getline(radindex1, 40); a_file.getline(radindex2, 40); a_file.getline(radindex3, 40);
Swaine777![]()



LinkBack URL
About LinkBacks



