0

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;
}
5
Contributors
7
Replies
8
Views
9 Years
Discussion Span
Last Post by zandiago
Featured Replies
  • 2
    vmanes 1,165   9 Years Ago

    [QUOTE=Ancient Dragon;481904]I created a cmd.exe command prompt window and tried to execute "telnet towel.blinkenlights.nl" -- got error that telnet now found.[/QUOTE] *&^%$# Vista Home.... telnet is not installed by default. See [url]http://tinyurl.com/2fgoy8[/url] for steps to activate it. When the dialog says "this may take several minutes" it's not kidding! Val Read More

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.