int main ()
{
char menuInput;
char largeEntryInput,largeEntryNumber,largeNextNumber; //declare varibles
// 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"<< endl; //
cout << "Please enter your choice ";
char A;
char B;
char C;
cin >> menuInput; //get menu input
if (menuInput = C)
EOF;
if (menuInput = A)//Perform mathmatical equations to find the largest number
string laregeEntryInput; //read input
//get choice of menu
cout << "How many numbers would you like to compare?";
cin >> largeEntryNumber;// get numbers
while ( largeEntryNumber < 1 ) //start of mathmatical loop to find the largest number
if (menuInput == B)// Perform mathmatical equations to find lowest number
{
cout << "Not a valid number. Please try again." << endl;
cin >> (largeEntryNumber);
}
cout << "Please type in " << largeEntryNumber << " integer(s), separated by spaces, then press enter." << endl;
cin >> largeEntryInput;
if ( largeEntryNumber = 1 )
{
}
#include <string>
#include <iostream>
usingnamespace std;
int main ()
{
char menuInput;
char largeEntryInput,largeEntryNumber,largeNextNumber; //declare varibles
// 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"<< endl; //
cout << "Please enter your choice ";
cin >> menuInput; //get menu input
if (menuInput == 'C')
EOF;
if (menuInput == 'A')//Perform mathmatical equations to find the largest number
string laregeEntryInput; //read input
//get choice of menu
cout << "How many numbers would you like to compare?";
cin >> largeEntryNumber;// get numbers
while ( largeEntryNumber < 1 ) //start of mathmatical loop to find the largest number
if (menuInput == 'B')// Perform mathmatical equations to find lowest number
{
cout << "Not a valid number. Please try again." << endl;
cin >> (largeEntryNumber);
}
cout << "Please type in " << largeEntryNumber << " integer(s), separated by spaces, then press enter." << endl;
cin >> largeEntryInput;
if ( largeEntryNumber == 1 )
{
}
return 0;
}
see what i have changed!!
secondly, people here are giving their time to solve your problem..the code should look readable so that it takes less time to figure out whats wrong. for that paste the code in code blocks and indent your code.