Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Structs.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <windows.h>
- #include <stdio.h>
- using namespace std;
- struct PersonalInfo
- {
- int Age;
- int Kids;
- float Heigth;
- float Weight;
- char Name[16];
- char Gender[1];
- };
- void SleepThenExit( int iSleepTime, int ExitError )
- {
- Sleep(iSleepTime);
- exit(ExitError);
- }
- void Display()
- {
- PersonalInfo Info;
- cout << "Please Type In Your Gender ( M or F )" << endl;
- cin >> Info.Gender;
- if(( strcmp(Info.Gender, "f" ) == 0 )
- || strcmp(Info.Gender, "F" ) == 0 )
- cout << "<3 Females" << endl;
- else
- {
- cout << "Sorry no males for gellin" << endl;
- SleepThenExit(1000,0);
- }
- cout << "Please Type In Your Name " << endl;
- cin >> Info.Name;
- cout << "Please input your age" << endl;
- cin >> Info.Age;
- if( Info.Age > 30 )
- {
- cout << "Sorry your to old for gellin" << endl;
- SleepThenExit(1000,0);
- }
- cout << "Type in the number of kids you have" << endl;
- cin >> Info.Kids;
- if( Info.Kids != 0 )
- {
- cout << "Gellin will not marry any bitch with kids App Closing" << endl;
- SleepThenExit(1000,0);
- }
- else
- cout << "Awesome Gellin doesn't like kids" << endl;
- cout << "Please input how much you wiegh" << endl;
- cin >> Info.Weight;
- if( Info.Weight > 130 )
- {
- cout << "THATS A HUGE BITCH" << endl;
- SleepThenExit(1000,0);
- }
- else if ( Info.Weight < 75 )
- {
- cout << "EATHEROPIANZ RUN!!!" << endl;
- SleepThenExit(1000,0);
- }
- cout << "Please input your height ( EX. 5.11 )" << endl;
- cin >> Info.Heigth;
- if( Info.Heigth > 6.4 )
- {
- cout << "To tall for Gellin" << endl;
- SleepThenExit(1000,0);
- }
- else if ( Info.Heigth < 4 )
- {
- cout << "No Midgets for Gellin" << endl;
- SleepThenExit(1000,0);
- }
- }
- int _tmain(int argc, _TCHAR* argv[])
- {
- Display();
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment