Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: have you tried cin.ignore(); here's an example [code=c++] #include <iostream> using namespace std; int main(){ int num = 0; //literal output cout << "enter a number"; //input from keyboard(includes /n when enter is pressed) cin >> num; //variable output cout << "you entered: "<< num; //pause so output can be … |
The End.