Magic Trick

Im trying to do a Magic Trick using C++ Programming. Can anybody give me a magic trick that can convert to C++. Its for my end semester project.
You can do those guess the number you're thinking ones. You know like, think of a number (7), add 3 (10), multiply by 2 (20), subtract 4 (16). What number did you get? Your number was (final answer / 2 - 1).
A perennial favorite: http://www.snopes.com/humor/iftrue/takecard.asp

Your professor might have seen it, so you might want to dress it up in some way.

Are you using graphics? Or is it pure text terminal stuff?
Its pure C++ program. Running it through a complier.
Nice one Duoas! Hadn't seen that one before. Had me stumped for a minute...
I'm a fan of tricks that use misdirection as opposed to some funny math. Obviously, anytime you ask someone to pick a number and perform some operations on it, that's suspicious.

I can think of two tricks. One is a funny math trick, the other has to do with misdirection:

Math (old as rocks):
http://www.bored.com/mysticalball/flash/swish04.swf

Misdirection:
I'm not sure how exactly you would translate this into a C++ program, but whatever.
Basically, you and a friend watch this video:
http://downloads.bbc.co.uk/bbcthree/psychic_card_trick/psychic_card_trick.swf

It's a fake ESP testing video. It only works if you're the one who is holding the mouse. I'll explain:

1.) Ivan broadcasts one of the five symbols to your friend. The video pauses at regular intervals, to give you time to ask your friend which symbol they think it is.

2.) Ask your friend which symbol is manifesting itself in their mind.

3.) The play button is actually split up into five different sections, each representing one of the five symbols.
http://www.barryandstuart.com/wp-content/gallery/bns/esp_button.jpg
If you've correctly memorized which sections belong to which symbol, you click the appropriate section - the one your friend has picked.

4.) Make them think they have ESP.
All C++ programs come by running them through a compiler. But I presume you mean you are only using the console, and not with graphics.

Misdirection is about the only thing you've got that will wow.

One of my favorites: The Colour Changing Card Trick:
http://www.youtube.com/watch?v=v3iPrBrGSJM
I need some visual/ eye-tricker magic tricks.
Is it possible to convert to C++? I will not have total control of the trick, code will have control of it. Its a good idea, but is it possible to accomplish it. The trick have to be visual.
If you're an adept learner, you could try to learn OpenGL/DirectX or any other library which heavily depends on either to achieve visuals.
I need it in c++ form.
Topic archived. No new replies allowed.