What are the differences and similarites between
andCode:cin>>charx;
Thanks in advance!Code:cin.get(charx);
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.Originally Posted by jimblumberg
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Right, don't know what I was thinking.
Jim