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;
}

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 article has been dead for over six months. Start a new discussion instead.