Aug 14, 2012 at 9:24pm UTC
What type is name? And the other name? What type is that? Are those meant to be two different things? How is the compiler going to know which one you mean?
Last edited on
Aug 14, 2012 at 9:26pm UTC
Aug 14, 2012 at 11:03pm UTC
Right, that makes sense. Thanks guys! I'll try it out and see if it works.
Aug 14, 2012 at 11:30pm UTC
It resolved part of the problem, but now i am getting an error message that says that the getline is supposed to have three arguments. Can someone tell me what the third is?
Aug 15, 2012 at 12:09am UTC
I guess you have an old compiler or something, getline() is overloaded to be used just as you have done.
The third argument is a delimiting character, so for all intents and purposes, this aught to work for you:
Aug 15, 2012 at 1:19pm UTC
Finally! Thanks a lot LowestOne! It works!