Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "StdAfx.h"
- #include <iostream>
- #include <string>
- #include <cmath>
- #include <time.h>
- using namespace std;
- void first();
- void first()
- {
- int choiceValid = 0;
- int choiceValue;
- while(!choiceValid)
- {
- cout << "You awake in a strange forest, you are dizzy and disoriented, and you see a large" << " \n" << "castle far in the distance. You feel a sharp pain in your back. You black out. \n" << endl;
- cout << "1) Wake-up" << endl;
- cin >> choiceValue;
- if(choiceValue == 1)
- {
- choiceValid == true;
- }
- }
- cout << "You awake in a prison cell, in what looks to be the large castle you observed" << " \n" << "earlier. \n";
- }
- int main()
- {
- first();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement