Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Post this on the walls of the 12 prettiest BOYS you know...
If you get back 5 you're beautiful. ..
❤¸.•*""*•. ¸❤ ❤¸.•*""*•. ¸❤ ❤¸.•*""*•. ¸❤
Post this on the walls of the 12 prettiest BOYS you know...
If you get back 5 you're beautiful. ..
❤¸.•*""*•. ¸❤ ❤¸.•*""*•. ¸❤ ❤¸.•*""*•. ¸❤
using namespace std;
// Function prototypes
void swapArgs(int *, int *);
void divideArgs(int *, int *);
void powerArgs(int *, int *);
int main() {
int num1;
int num2;
int * a = &num1;
int * b = &num2;
cout << endl << "Enter integer 1: ";
cin >> num1;
cout << endl;
cout << "Enter integer 2: ";
cin >> num2;
cout << endl;
if (num1 == 0 && num2 == 0) {
cout << "No operations performed!" << endl;
}
else {
cout << "Before call to swapArgs a: " << num1 << " b: " << num2 << endl;
swapArgs(a, b);
cout << "After call to swapArgs a: " << num1 << " b: " << num2 << endl;
divideArgs(a, b);
cout << "After call to divideArgs a: " << num1 << " b: " << num2 << endl;
powerArgs(a, b);
cout << "After call to powerArgs a: " << num1 << " b: " << num2 << endl;
}
cout << endl << "Goodbye!" << endl;
}
using namespace std;
// Function prototypes
void swapArgs(int *, int *);
void divideArgs(int *, int *);
void powerArgs(int *, int *);
int main() {
int num1;
int num2;
int * a = &num1;
int * b = &num2;
cout << endl << "Enter integer 1: ";
cin >> num1;
cout << endl;
cout << "Enter integer 2: ";
cin >> num2;
cout << endl;
if (num1 == 0 && num2 == 0) {
cout << "No operations performed!" << endl;
}
else {
cout << "Before call to swapArgs a: " << num1 << " b: " << num2 << endl;
swapArgs(a, b);
cout << "After call to swapArgs a: " << num1 << " b: " << num2 << endl;
divideArgs(a, b);
cout << "After call to divideArgs a: " << num1 << " b: " << num2 << endl;
powerArgs(a, b);
cout << "After call to powerArgs a: " << num1 << " b: " << num2 << endl;
}
cout << endl << "Goodbye!" << endl;
}