Geek Program in C++

Description

This text provides the C++ code needed to compile my Geek Test

Reviews
Shared by: Holden Tran
Categories
Stats
views:
40
rating:
not rated
reviews:
0
posted:
5/18/2009
language:
English
pages:
0
#include #include #include #include #include #include using namespace std; void centerstring(char* s) { int l=strlen(s); int pos=(int)((80-l)/2); for(int i=0;i> music; if (music<=1000 && strcmp (quest, "Yes")==0) { score=score+1; std::cout<<"Doh, you are a music novice. Please try again. And don't talk to me. " <<"Your geek score is now " <1000 && music<=3000 && strcmp (quest, "Yes")==0) { score=score+2; std::cout<<"Good start. It could be better. Hence, you are a music dabbler. " <<"Your geek score is now " <3000 && music<=5000 && strcmp (quest, "Yes")==0) { score=score+3; std::cout<<"Hmm, I respect that. You are a music guru. " <<"Your geek score is now " <5000 && strcmp (quest, "Yes")==0) { score=score+5; std::cout<<"Beast! Nice collection mang. You are a music fanatic. " <<"Your geek score is now " <1000 && music<=3000 && strcmp (quest, "No")==0) { score=score+2; std::cout<<"Good start. It could be better. Hence, you are a music dabbler. " <<"Your geek score is now " <3000 && music<=5000 && strcmp (quest, "No")==0) { score=score+3; std::cout<<"Hmm, I respect that. You are a music guru. " <<"Your geek score is now " <5000 && strcmp (quest, "No")==0) { score=score+5; std::cout<<"Beast! Nice collection mang. That is 1337. Hope you know what that means by now because you are a 1337 music fanatic. " <<"Your geek score is now " <> x; cin.ignore(); if (x<60) { score=score+5; std::cout<<"Beasssttt! Way to own that. " <<"Your geek score is now " <> x; if (x>10) { score=score+5; std::cout<<"Impressive. That's bigger than mine. " <<"Your geek score is now " <0 && score<=10) cout<<"a n00b."; if (score>10 && score<=25) cout<<"a semi-geek."; if (score>25 && score<=35) cout<<"a pr0."; if (score>35 && score<40) cout<<"an uber-geek."; if (score==40) cout<<"my best friend."; cout<< endl; Sleep(2000); cout<< endl; cout<<"You took this test on "; struct tm *local; time_t t; t=time(NULL); local=localtime(&t); cout<< asctime(local); cout<< endl; cin.get(); system("color 09"); centerstring (&s); cout<<"P" <
Shared by: Holden Tran
Other docs by Holden Tran
How to Free Up Space on Your Hard Drive
Views: 40  |  Downloads: 1
How to Renew Your IP Address
Views: 74  |  Downloads: 1
How to Decrease Your PC's Boot-up Time
Views: 45  |  Downloads: 1
Starcraft Cheats
Views: 157  |  Downloads: 0
Applications of Brauer's Theorem
Views: 51  |  Downloads: 2
Ikariam Units
Views: 212  |  Downloads: 0
The Antics of Ant Man
Views: 171  |  Downloads: 1
How Did Buddhism Become Chinese?
Views: 259  |  Downloads: 5
A Reflection of Buddhism in Monkey and China
Views: 119  |  Downloads: 0
Related docs
Geek Speak
Views: 1  |  Downloads: 0
To be a geek
Views: 1  |  Downloads: 0
geek-test-2001
Views: 283  |  Downloads: 9
How to Become an Embedded Geek
Views: 105  |  Downloads: 13
Saved by the Geek L L C would like
Views: 0  |  Downloads: 0
Rise of the geek
Views: 6  |  Downloads: 0
Geek_rock
Views: 2  |  Downloads: 0
Geek Cruises and Blue Pixel Present
Views: 0  |  Downloads: 0
July Creek Geek Newsletter
Views: 0  |  Downloads: 0
the body geek intake form
Views: 0  |  Downloads: 0
Geek Attack
Views: 0  |  Downloads: 0