Something wonderful happened a few days ago and I'd like to share it. My son Brandon made his first program using C++. I started showing him how to use cin and cout which lead to a discussion about if-then-elses. I gave him a short example and left him alone to play for about a half hour. When I returned he was acting very frustrated and mumbling something like, "It says I have errors and I tried..." So we went over his code line-by-line and found the missing syntax that was causing his very first bug induced fit. [smile] That takes me back to when I was 10. So without further delay, here is Brandon's first program:
int _tmain(int argc, _TCHAR* argv)
int game_choice = 0;
cout << "Choose one: \n\n" << "1. Chess\n2. Checkers\n3. Other" << endl;
cin >> game_choice;
if(game_choice == 1)
cout << "\nYou are an enlightened intelligent being!!!!\n" << endl;
else if(game_choice == 2)
cout << "\nYou are A DORK YOU CREEP!!!!\n" << endl;
else if(game_choice == 3)
cout << "\nRETARDED FROG YOU ARE YES!!!!\n" << endl;
cout << "\nDumb nimwit! uhh I mean does not compute!!!!\n" << endl;
Did I mention he's a 3 time chess champion?
Archival tool completed...
In other news I completed the archival tool. It works great! Now I'll need to add loading functions throughout my libraries to access files within the encrypted archive. I've already got textures loading at supa-fast speeds. [smile] Yeah!