943,723 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1289
  • C++ RSS
Nov 30th, 2007
0

Just a lil fun

Expand Post »
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.

C++ Syntax (Toggle Plain Text)
  1. /*
  2.   Name: Go Starwars!
  3.   Author: Evan Cohen
  4.   Date: 27/11/07 19:11
  5.   Description: Runs starwars
  6. */
  7.  
  8. #include <iostream.h>
  9. #include <windows.h>
  10.  
  11. int sim_yesno;
  12.  
  13. int main()
  14. {
  15.  
  16. cout << "Press 1 the enter to start starwars: "; //Asks for simulation confermation
  17. cin >> sim_yesno; //Gets confermation
  18.  
  19. if(sim_yesno == 1) // if confermation yes: then continue
  20. {
  21. system ("telnet towel.blinkenlights.nl"); //Runs the star wars.
  22. }
  23.  
  24.  
  25. system ("Pause"); // pause befor quit
  26. return 0;
  27. }
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
onelilfizzle is offline Offline
3 posts
since Nov 2007
Nov 30th, 2007
0

Re: Just a lil fun

cool because i like starwars otherwise i am not sure of it's purpose.
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004
Nov 30th, 2007
0

Re: Just a lil fun

doesn't work on MS-Windows os.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005
Dec 1st, 2007
0

Re: Just a lil fun

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
Reputation Points: 1268
Solved Threads: 228
Posting Virtuoso
vmanes is offline Offline
1,895 posts
since Aug 2007
Dec 1st, 2007
0

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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005
Dec 1st, 2007
2

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.
*&^%$# 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
Reputation Points: 1268
Solved Threads: 228
Posting Virtuoso
vmanes is offline Offline
1,895 posts
since Aug 2007
Dec 1st, 2007
0

Re: Just a lil fun

YES, Thank you for that link.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005
Dec 2nd, 2007
0

Re: Just a lil fun

Great link..thx again!
Featured Poster
Reputation Points: 129
Solved Threads: 26
Nearly a Posting Maven
zandiago is offline Offline
2,463 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: pointers and classes
Next Thread in C++ Forum Timeline: Reading/writing .txt files into an array





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC