Hey, 7stud! I found out what the arguments mean in cin.ignore() and even getline() too. So, as you stated in your other post, getline() could serve the same function as cin.ignore() and cin >> for...
Type: Posts; User: PokeGuy
Hey, 7stud! I found out what the arguments mean in cin.ignore() and even getline() too. So, as you stated in your other post, getline() could serve the same function as cin.ignore() and cin >> for...
Hey, I see what you mean now, 7stud. But how come it doesn't skip for int types?
7stud, do you have any c++ documentation suggestions for Dev-C++? There are so many different types of c++ documentations. I am c++ noob who started to actually type out codes and experiment like a...
Bravo, 7stud! Thanks, your explanation is crystal clear to me. If you read the other post by Phan, I asked you to test ILoveVectors' sample codes:
#include <iostream>
using namespace std;
...
7stud, try testing the two sample codes posted by ILoveVectors and type in "abcd" in the console if you want an example of the "baffling behaviour".
ILoveVectors, thanks for the advice on the...
Shakti! Your advice works!
Using cin.ignore(); before cin.get(); pauses the console at the end! Before, everytime I used the cin >> function and cin.get(), the console doesn't stay open at the end....