Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- int getWhatTheyWant(); //prototype function
- int main()
- {
- int acces;
- acces = getWhatTheyWant();
- while(acces !=4)
- {
- acces = getWhatTheyWant();
- }
- }
- //getWhatTheyWant function
- int getWhatTheyWant()
- {
- int choice;
- cout << "1: just plain items" << endl;
- cout << "2: helpful items" << endl;
- cout << "3: harmful items" << endl;
- cout << "4: quit program" << endl;
- cin >> choice;
- return choice;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement