12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
#include "stdafx.h" #include <iostream> #include <cstdio> #include <sstream> #include <fstream> #include <cmath> #include <ctime> using namespace std; class adventure { int milk, coke, Koolaid, Budweiser; public: void Situation1(); int main(); }; void Intro ( void ) { int stat; cout << "==============================Adventure===============================\n\n"; } void Situation1 ( void ) { int answer; cout << "\nYou are at your neighbors house. He asks you if you want somethng to drink"; cout <<"\n What do you say?: "; cout << "\n\n1.) Water \n2.) Kool-aid \n3.) Budweiser \n4.) Milk\n :"; cin >> answer; if (milk <= 5); } int main() { system("TITLE Adventure 1.0"); int milk; srand(time(0)); milk = rand() % 7; Intro(); //cout << milk; Situation1(); system("PAUSE"); return 0; }
void adventure::Situation1()