menu program

*/
#include <string>
#include <iostream>


using namespace std;
int main ()

{ //defining
char menuInput;





//menu
cout << "A - Find the largest # with a known quantity of numbers."<< endl;
cout << "B - Find the smallest # with an unknown quantity of numbers"<< endl;
cout << "C - Quit";
cout << "Please enter your choice ";
cin >> menuInput;
//defining
int largeEntryInput,largeEntryNumber,largeNextNumber;
string laregeEntryInput;

cout << "How many numbers would you like to compare?" << endl; cin >> largeEntryNumber;
//comparing numbers
while ( largeEntryNumber < 1 ) {
cout << "Not a valid number. Please try again." << endl;
cin >> largeEntryNumber;
{ //comparing numbers
cout << "Please type in " << largeEntryNumber << " integer(s), separated by spaces, then press enter." << endl;
cin.get ( largeEntryInput );
if ( largeEntryNumber = 1 ) {
cout << "The largest number is " << largeEntryInput << ".";
//menu
cout << "A - Find the largest # with a known quantity of numbers."<< endl;
cout << "B - Find the smallest # with an unknown quantity of numbers"<< endl;
cout << "C - Quit";
cout << "Please enter your choice ";
cin >> menuInput

}














return 0;


}


I don't have a clue what I am doing. I tried my best and are out of known options to me. Any assistance would be greatly appreciated.
There isn't a lot of context to go by in your post, so I'm going to make a few assumptions based on the code you posted. Please forgive me if I'm wrong.

It seems that you are just starting out programming. I personally think C++ is a poor language for that. A language with an interactive mode, such as Python, makes it much easier for beginners to explore the language and programming.

I would suggest starting at http://wiki.python.org/moin/BeginnersGuide, and follow the link for NonProgrammers.

If you really do want help with this program, I suggest you repost the complete program using the code formatting tool (the "#" button in the format menu) so that the code is more legible, and then ask specific questions.

Regards
Topic archived. No new replies allowed.