3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Coollest 6 lines C++ Program

Coollest 6 lines C++ Program
This is a funny program I made while learning C++. Idea by My!! I hope no one has done this before =D... Maybee i just reinvented the bike, but its fun!! Code should work on windows and linux. but you have to compile it yourself and little diferent than how I done. THIS INSTRUCTABLE IS MADE BASICLY FOR MAC USERS WITH Xcode!!!
I'am NOT RESPONSABLE IF THIS APP WILL BURN YOUR COMPUTER! USE AT YOUR OWN RISK!

What does it do?
Simple. LAG! On MAC!!!

Features ( =D):

  # It gives continiuos alert sounds (in my case submarine beeps) forever until You terminate it.
  # Prints Your message(In My case danger!! some $%# and LAG) forever until You terminate it.
  # It uses lot of processing power till You terminate it.
  # It is not very easy to terminate it.
  # If You have selected terminal and try to type something it gets even more annoying( some kind of Laggy sounds)!!

 
Remove these adsRemove these ads by Signing Up
 

Step 1You Will need.

You Will need.
Stuff you will need is:

ANY PC or MAC (newer then one from 1983)
C++ compiler or IDE
Plain text editor or IDE
Some command line knowlage

Optional:

Good music while Programming.


« Previous StepDownload PDFView All StepsNext Step »
6 comments
Feb 24, 2010. 5:18 AMjdege says:
It's not more or less the same, it's exactly the same.  The compiler should generate identical machine code in both cases.

Sorry, I was trying to be funny.  Used to be that emotionally immature would spend hundred of hours flaming each other over issues like this - whether the curly-braces should be on the end of a line, or on the beginning of the next, how to indent, how to format comments, etc,


Feb 25, 2010. 6:03 PMjdege says:
The braces war was between the traditionalists, who formatted their code thus:
if (x) {
    doonething(x);
} else {
    dotheotherthing(x);
}


and the more modern, who'd line up their braces vertically:
if (x)
{
    doonething(x);
}
else
{
    dotheotherthing(x);
}

And then there were the Gnubots, who preferred:
if (x)
  {
    doonething(x);
  }
else
  {
    dotheotherthing(x);
  }
None of it mattered in the slightest to the compiler, of course, the arguments were over which was most readable.
 
Feb 21, 2010. 10:47 AMjdege says:
What?

I thought everyone knew that the proper C++ idiom for infinite loops was:

for (;;)
{
}
 
;)

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1
Followers
3
Author:ZxxxY