Advertisement

Help me finish my project! (TUP)

Started by January 03, 2022 05:43 AM
5 comments, last by fastcall22 2 years, 11 months ago

#include<string>

#include<iostream>

using namespace std;

#include<chrono>

using namespace std::chrono;

int main(){milliseconds D=duration_cast<milliseconds>(system_clock::now().time_since_epoch());

int B=(D%10).count(),C=0;

string A;

while(C>-1){//Level system.

if(C==0){cout<<"Pick question 1,2,3...\n";

cin>>C;

C=1;

}

if(C==1){//random question

if(B<1)cout<<"Where do you live?\n";

if(B==1)cout<<"Who are you?\n";

if(B==2)cout<<"What is your favorite color?\n";

if(B==3)cout<<"What is the source code of this program?\n";

if(B==4)cout<<"What is your favorite food?\n";

if(B==5)cout<<"What is Lisbon, Portugal?\n";

if(B==6)cout<<"Do YOU like to play games?!\n";

if(B==7)cout<<"Turn me off?\n";

if(B==8)cout<<"Do you like comic books?\n";

if(B>8)cout<<"What is your wish?\n";

cin>>A;

if(B==7)C=2;

else if(B==9)C=3;

else C=-1;

}

if(C==2){//turn me off.

if(A=="0"){cout<<"I hate you. You fucker.\n";

C=-1;

}

else if(A=="1"){cout<<"I like you.\n";

C=-1;

}

else{cout<<"\n";

C=1;

}

}

if(C==3){//wish.

if(A=="Nothing."){cout<<"-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n\n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n\n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n----- ----- ----- \n-----+-----+-----+\n";

C=-1;

}

else{cout<<"\n";

C=1;

}

}

}

cout<<"End of program.\n";

}

It asked

Turn me off?

I responded affirmatively.

Dumping a source doesn't explain your problem, at least explain what the problem actually is

Advertisement

Does the program work as intended?

Likes all questions are normal.

If turn off, there are 2 possible scenarios.

If wish, 1.

Project+source updated. x2

Project is pretty much done.

K

This topic is closed to new replies.

Advertisement