Thread: XVI32 Help.
View Single Post
Old 08-22-13, 04:39 AM   #7
Ligne Maginot
Gunner
 
Join Date: Dec 2012
Posts: 94
Downloads: 141
Uploads: 0
Default

"I have a friends list. Why ain't you on it?
Oh Yea. I don't like you. "...privateer

Try whit this:

// Function to get friends
// By the use of C ++

#include <iostream>

using namespace std;

int main()

{
int reply = 2;
cout << "\nDo you want be my friend?" << endl;
cout << "\n(Yes=1 or No=0)\n" << endl;
cin >> reply;
if (reply == 1)
{
cout << "\nThank you, now we're friends." << endl;
cout << "\nPress the enter key to exit" << endl;
cin.ignore(cin.rdbuf()->in_avail() + 2);
}
if (reply == 0)
{
cout << "\nOh Yea. I don't like you." << endl;
cout << "\nPress the enter key to exit" << endl;
cin.ignore(cin.rdbuf()->in_avail() + 2);
}
return 0;
}

Satisfaction guaranteed

Best Regards.
__________________
NYGM Tonnage War V2.5 – Stand Alone Version
NYGM3_New
NYGM3_6D
Supplement to V16B1 (JSGME)
Stiebler4B_Addon_for_V16B1
Hitman Optics NYGM 3.6 (Fixed)

Last edited by Ligne Maginot; 08-22-13 at 12:35 PM.
Ligne Maginot is offline   Reply With Quote