Hi,
I have some questions, is getline function only used with arrays?
Can we use getline function for the classes without arrays?
Hi,
I have some questions, is getline function only used with arrays?
Can we use getline function for the classes without arrays?
There are two versions of getline() one that works with C-strings and one that works with std::string. You need to use the proper version depending on what type of "string" you are using.
Jim