Guest User

Untitled

a guest
Jul 13th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. // Structs.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <windows.h>
  7. #include <stdio.h>
  8.  
  9.  
  10. using namespace std;
  11.  
  12. struct PersonalInfo
  13. {
  14. int Age;
  15. int Kids;
  16. float Heigth;
  17. float Weight;
  18. char Name[16];
  19. char Gender[1];
  20. };
  21.  
  22. void SleepThenExit( int iSleepTime, int ExitError )
  23. {
  24. Sleep(iSleepTime);
  25. exit(ExitError);
  26. }
  27.  
  28. void Display()
  29. {
  30. PersonalInfo Info;
  31.  
  32. cout << "Please Type In Your Gender ( M or F )" << endl;
  33.  
  34. cin >> Info.Gender;
  35.  
  36. if(( strcmp(Info.Gender, "f" ) == 0 )
  37. || strcmp(Info.Gender, "F" ) == 0 )
  38. cout << "<3 Females" << endl;
  39. else
  40. {
  41. cout << "Sorry no males for gellin" << endl;
  42. SleepThenExit(1000,0);
  43. }
  44.  
  45. cout << "Please Type In Your Name " << endl;
  46.  
  47. cin >> Info.Name;
  48.  
  49. cout << "Please input your age" << endl;
  50.  
  51. cin >> Info.Age;
  52.  
  53. if( Info.Age > 30 )
  54. {
  55. cout << "Sorry your to old for gellin" << endl;
  56. SleepThenExit(1000,0);
  57. }
  58.  
  59. cout << "Type in the number of kids you have" << endl;
  60.  
  61. cin >> Info.Kids;
  62.  
  63. if( Info.Kids != 0 )
  64. {
  65. cout << "Gellin will not marry any bitch with kids App Closing" << endl;
  66. SleepThenExit(1000,0);
  67. }
  68. else
  69. cout << "Awesome Gellin doesn't like kids" << endl;
  70.  
  71. cout << "Please input how much you wiegh" << endl;
  72.  
  73. cin >> Info.Weight;
  74.  
  75. if( Info.Weight > 130 )
  76. {
  77. cout << "THATS A HUGE BITCH" << endl;
  78. SleepThenExit(1000,0);
  79. }
  80. else if ( Info.Weight < 75 )
  81. {
  82. cout << "EATHEROPIANZ RUN!!!" << endl;
  83. SleepThenExit(1000,0);
  84. }
  85.  
  86. cout << "Please input your height ( EX. 5.11 )" << endl;
  87.  
  88. cin >> Info.Heigth;
  89.  
  90. if( Info.Heigth > 6.4 )
  91. {
  92. cout << "To tall for Gellin" << endl;
  93. SleepThenExit(1000,0);
  94. }
  95. else if ( Info.Heigth < 4 )
  96. {
  97. cout << "No Midgets for Gellin" << endl;
  98. SleepThenExit(1000,0);
  99. }
  100. }
  101.  
  102.  
  103. int _tmain(int argc, _TCHAR* argv[])
  104. {
  105. Display();
  106.  
  107. system("pause");
  108. return 0;
  109. }
Add Comment
Please, Sign In to add comment