User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 455,982 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,776 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 723 | Replies: 7
Reply
Join Date: Nov 2007
Posts: 3
Reputation: onelilfizzle is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
onelilfizzle onelilfizzle is offline Offline
Newbie Poster

Solution Just a lil fun

  #1  
Nov 30th, 2007
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;
}
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2004
Location: Tracy
Posts: 744
Reputation: Killer_Typo will become famous soon enough Killer_Typo will become famous soon enough 
Rep Power: 7
Solved Threads: 32
Killer_Typo's Avatar
Killer_Typo Killer_Typo is offline Offline
Master Poster

Re: Just a lil fun

  #2  
Nov 30th, 2007
cool because i like starwars otherwise i am not sure of it's purpose.
!!!!! WARNING YOUR COMPUTER MAY BE INFECTED WITH SPYWARE!!!! PAY AN OVER PRICED AMMOUNT TO HAVE SOMTHING FIXED WE PLACED THERE IN THE FIRST PLACE!!!!!!!!!

sound familiar, know how to block yourself and keep yourself clean.
_____________________
http://www.lavasoftusa.com/ -->adaware
http://www.safer-networking.org/en/index.html -->spybot S&D
http://www.javacoolsoftware.com/spywareblaster.html -->spywareblaster
http://www.javacoolsoftware.com/spywareguard.html -->spywareguard
_____________________
and dont forget to spread the reputation to those that deserve!
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,539
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Just a lil fun

  #3  
Nov 30th, 2007
doesn't work on MS-Windows os.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Join Date: Aug 2007
Location: South Dakota
Posts: 980
Reputation: vmanes is a jewel in the rough vmanes is a jewel in the rough vmanes is a jewel in the rough vmanes is a jewel in the rough 
Rep Power: 6
Solved Threads: 97
vmanes's Avatar
vmanes vmanes is offline Offline
Posting Shark

Re: Just a lil fun

  #4  
Dec 1st, 2007
Originally Posted by Ancient Dragon View Post
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
I am in mourning for my country.
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,539
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Just a lil fun

  #5  
Dec 1st, 2007
I created a cmd.exe command prompt window and tried to execute "telnet towel.blinkenlights.nl" -- got error that telnet now found.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Join Date: Aug 2007
Location: South Dakota
Posts: 980
Reputation: vmanes is a jewel in the rough vmanes is a jewel in the rough vmanes is a jewel in the rough vmanes is a jewel in the rough 
Rep Power: 6
Solved Threads: 97
vmanes's Avatar
vmanes vmanes is offline Offline
Posting Shark

Re: Just a lil fun

  #6  
Dec 1st, 2007
Originally Posted by Ancient Dragon View Post
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
I am in mourning for my country.
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,539
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Just a lil fun

  #7  
Dec 1st, 2007
YES, Thank you for that link.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Join Date: Jun 2007
Location: Home
Posts: 2,451
Reputation: zandiago is on a distinguished road 
Rep Power: 6
Solved Threads: 24
Featured Poster
zandiago's Avatar
zandiago zandiago is offline Offline
Nearly a Posting Maven

Re: Just a lil fun

  #8  
Dec 2nd, 2007
Great link..thx again!
I shot the sheriff....but I didn't shoot the deputy
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 9:22 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC