No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
Re: for your first problem of : cin.get(); not working: You need to use: cin.ignore(1); // if that does not work put a 2 in your () for your second problem: instead of using cin.get(variablename); you should use this to get the entire line: getline(cin, variablename); | |
I was starting a cash register program. I got to the point of a simple test. I ran into a problem where when running the loop to input my variables, it completely blows through the loop the first time. I looks like this: Product: Product: ---------now I could input [CODE]#include … | |
Re: right before your return 0; you need to put a line of code to pause your program. examples: 1.) system("PAUSE"); 2.) system("PAUSE>NUL"); 3.) cin.ignore(2); | |
Re: Alright. This is what you should do: [B][U]Question 1[/U][/B] 1.) Make a bunch of functions for each thing you need to do 2.)Use a switch statement for the main menu 3.) encase your entire main function in a do while loop if there is something else you need to learn … | |
I was working on the being of a cash register and I was testing this portion of my code. It compiles, but when I input my first items name I get a windows error and the program ends. I would appreciate any help an/or explanation. [CODE]#include <iostream> // allows output … |
The End.