Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #include "StdAfx.h"
  2. #include <iostream>
  3. #include <string>
  4. #include <cmath>
  5. #include <time.h>
  6. using namespace std;
  7.  
  8. void first();
  9.  
  10. void first()
  11. {
  12.  
  13. int choiceValid = 0;
  14. int choiceValue;
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. while(!choiceValid)
  22. {
  23. 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;
  24. cout << "1) Wake-up" << endl;
  25.  
  26. cin >> choiceValue;
  27. if(choiceValue == 1)
  28. {
  29. choiceValid == true;
  30. }
  31. }
  32.  
  33.  
  34.  
  35.  
  36.  
  37. cout << "You awake in a prison cell, in what looks to be the large castle you observed" << " \n" << "earlier. \n";
  38.  
  39.  
  40. }
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. int main()
  53. {
  54. first();
  55.  
  56.  
  57.  
  58.  
  59. system("pause");
  60. return 0;
  61.  
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement