Quote:
Originally posted by Paul McKenzie
May I suggest changing your inter_file structure to use std::string? You're coding in C++, there is little reason not to use what C++ provides (why don't they teach this to C++ students??)
Take Paul's advice and learn about the string class. If your text book teaches it then read that. If not then hopefully the college library has a good book about C++ that teaches the standard classes including the string class or you should buy a good book.Quote:
Originally posted by Lolita
how can i compre two strings when i don't kow the size because it changes..
Comparing two string objects is as simple as:Finally, when you do learn about the C++ standard classes you will discover that the map class will make things even easier.Code:if (str1 == str2)
