DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Just a lil fun (http://www.daniweb.com/forums/thread99087.html)

onelilfizzle Nov 30th, 2007 5:50 pm
Just a lil fun
 
i made this just the other day, and as a new member i thought i would share this lil thing. many have probably already seen it, but its just a fun lil thing from a beginning programmer.

/*
  Name: Go Starwars!
  Author: Evan Cohen
  Date: 27/11/07 19:11
  Description: Runs starwars
*/

#include <iostream.h>
#include <windows.h>

int sim_yesno;

int main()

   
    cout << "Press 1 the enter to start starwars: "; //Asks for simulation confermation
    cin >> sim_yesno; //Gets confermation
   
    if(sim_yesno == 1)  // if confermation yes: then continue
    {
    system ("telnet towel.blinkenlights.nl");  //Runs the star wars.
    }
   
   
    system ("Pause"); // pause befor quit
    return 0;
}

Killer_Typo Nov 30th, 2007 10:41 pm
Re: Just a lil fun
 
cool because i like starwars otherwise i am not sure of it's purpose.

Ancient Dragon Nov 30th, 2007 10:55 pm
Re: Just a lil fun
 
doesn't work on MS-Windows os.

vmanes Dec 1st, 2007 1:51 am
Re: Just a lil fun
 
Quote:

Originally Posted by Ancient Dragon (Post 481831)
doesn't work on MS-Windows os.

Worked for me on XP, with VC++ 2005 express. After dropping the ".h" from iostream header.

Well, I can't say the system(pause) worked, I killed it long before the movie finished.

Val

Ancient Dragon Dec 1st, 2007 2:09 am
Re: Just a lil fun
 
I created a cmd.exe command prompt window and tried to execute "telnet towel.blinkenlights.nl" -- got error that telnet now found.

vmanes Dec 1st, 2007 2:23 am
Re: Just a lil fun
 
Quote:

Originally Posted by Ancient Dragon (Post 481904)
I created a cmd.exe command prompt window and tried to execute "telnet towel.blinkenlights.nl" -- got error that telnet now found.

*&^%$# Vista Home.... telnet is not installed by default. See http://tinyurl.com/2fgoy8 for steps to activate it. When the dialog says "this may take several minutes" it's not kidding!

Val

Ancient Dragon Dec 1st, 2007 10:42 am
Re: Just a lil fun
 
YES, Thank you for that link.

zandiago Dec 2nd, 2007 10:30 pm
Re: Just a lil fun
 
Great link..thx again!


All times are GMT -4. The time now is 8:57 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC