let's try that again....
from my previous post...
#include
#include
#include
#include
using namespace std;
main()
{
int int1;
int int2;
char choice;
void Multiply( int& );
cout << "This program will add, subtract, multiply, and divide two integers." << endl;
cout << endl;
cout << " +++++++ ------- xxxxxxx /////// +++++++ ------- xxxxxxx /////// " << endl;
cout << endl << endl;
cout << "Let's begin!" << endl;
cout << "****************************" << endl;
cout << "*Enter A for addition *" << endl;
cout << "*Enter S for subtraction *" << endl;
cout << "*Enter M for multiplication*" << endl;
cout << "*Enter D for division *" << endl;
cout << "*Enter Q to quit *" << endl;
cout << "****************************" << endl;
cout << endl << endl << endl;
cout << "What is your choice? : ";
cin >> choice;
if(choice == 'A' || choice == 'a')
{
int1 = 0;
int2 = 0;
Multiply(int1);
}
// ***************Multiply integers function******************//
void Multiply( int& one )
{
cout << "Please enter the first integer :" << endl;
cin >> one;
cout << "Please enter the second integer :" << endl;
}
return 0;
}
#include
#include
#include
#include
using namespace std;
main()
{
int int1;
int int2;
char choice;
void Multiply( int& );
cout << "This program will add, subtract, multiply, and divide two integers." << endl;
cout << endl;
cout << " +++++++ ------- xxxxxxx /////// +++++++ ------- xxxxxxx /////// " << endl;
cout << endl << endl;
cout << "Let's begin!" << endl;
cout << "****************************" << endl;
cout << "*Enter A for addition *" << endl;
cout << "*Enter S for subtraction *" << endl;
cout << "*Enter M for multiplication*" << endl;
cout << "*Enter D for division *" << endl;
cout << "*Enter Q to quit *" << endl;
cout << "****************************" << endl;
cout << endl << endl << endl;
cout << "What is your choice? : ";
cin >> choice;
if(choice == 'A' || choice == 'a')
{
int1 = 0;
int2 = 0;
Multiply(int1);
}
// ***************Multiply integers function******************//
void Multiply( int& one )
{
cout << "Please enter the first integer :" << endl;
cin >> one;
cout << "Please enter the second integer :" << endl;
}
return 0;
}
