What are the differences and similarites between
andCode:cin>>charx;
Thanks in advance!Code:cin.get(charx);
Printable View
What are the differences and similarites between
andCode:cin>>charx;
Thanks in advance!Code:cin.get(charx);
What do you think is the difference? By the way the second snippet is wrong, you should be passing the address of the character.
Jim
No, it is correct, assuming that charx is a char, since the corresponding parameter is a reference to char.Quote:
Originally Posted by jimblumberg
Right, don't know what I was thinking.
Jim