Important alert: (current site time 6/18/2013 11:45:25 PM EDT)
 

VB icon

Mind reading program!!!

Email
Submitted on: 9/24/2012 4:14:09 PM
By: Thejwal P 
Level: Advanced
User Rating: Unrated
Compatibility: C++ (general)
Views: 2008
author picture
(About the author)
 
     Be amazed as these few lines of code read what you think in your mind... yes try it out... but uses a few non standard functions and headers(conio.h) but the purpose is to have fun.. so get ready to have your mind read by my program!!!
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
//**************************************
// Name: Mind reading program!!!
// Description:Be amazed as these few lines of code read what you think in your mind...
yes try it out...
but uses a few non standard functions and headers(conio.h) but the purpose is to have fun..
so get ready to have your mind read by my program!!!
// By: Thejwal P
//
//This code is copyrighted and has// limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=13856&lngWId=3//for details.//**************************************

#include <iostream.h>
#include <stdlib.h>
#include<conio.h>
 #include<stdio.h>
int main() 
{	
while(1)
{
	int j=1,temp,i,print_complete,delay=0;
	char choice;
	char multiple_9= (rand()%20)+14;
	//cout<<multiple_9;
	
	
	cout<<endl<<endl<<endl<<endl<<endl<<endl;
	cout<<"********************************************************************************";
	cout<<endl<<endl<<endl<<"================================================================================";
	cout<<endl<<endl<<endl<<"\t"<<"@@@@@@ YOU HAVE ENTERED THE GATES OF THE MATH GENIE !!!! @@@@@";
	cout<<endl<<endl<<endl<<"\t\t"<<"!!!!!! GET READY TO BE MESMERIZED !!!!!!";
	cout<<endl<<endl<<endl<<"================================================================================";
	cout<<endl<<endl<<"\t\tPRESS ENTER IF YOU DARE TO CONTINUE";
	cout<<endl<<"********************************************************************************";
	cin.get();
	clrscr();
	cout<<"\n\n\n\n\n\n\n\n\n";
	cout<<endl<<"********************************************************************************";
	cout<<endl<<endl<<endl<<endl<<endl<<endl<<"\tTHINK OF A NUMBER WITH TWO DIGITS (FOR EXAMPLE 43)";
	cout<<endl<<endl<<endl<<"\t\t\tPRESS ENTER TO CONTINUE";
	cout<<endl<<"********************************************************************************";
	cin.get();
	clrscr();
	cout<<"\n\n\n\n\n\n\n\n\n";
	cout<<endl<<"********************************************************************************";
	cout<<"\n\n\nNOW ADD THE TWO DIGITS OF THE NUMBER(EXAMPLE: 4+3=7)";
	cout<<endl<<"********************************************************************************";
	cout<<endl<<endl<<endl<<"\t\t\tPRESS ENTER TO CONTINUE";
	cin.get();
	clrscr();
	cout<<"\n\n\n\n\n\n\n\n\n";
	cout<<endl<<"********************************************************************************";
	cout<<"\n\n\nNOW SUBTRACT THE NEW NUMBER FROM YOUR ORIGINAL NUMBER(EXAMPLE: 43-7=36)";
	cout<<endl<<"********************************************************************************";
	cout<<endl<<endl<<endl<<"\t\t\tPRESS ENTER TO CONTINUE";
	cin.get();
	clrscr();
	cout<<"\n\n\n\n\n\n\n\n\n";
	cout<<endl<<"********************************************************************************";
	cout<<"\n\nFINALLY LOOK AT THE SYMBOL NEXT TO YOUR NUMBER AND REMEMBER IT";
	cout<<endl<<"********************************************************************************";
	cout<<endl<<endl<<endl<<"\t\t\tPRESS ENTER TO CONTINUE";
	cin.get();
	clrscr();
	cout<<endl<<endl<<endl;
	
	for(i=95;i>=0;i--)
	{print_complete=0;
		temp=i;
		j=1;
		while(j<10)
		{
			if(temp>=0)
			{
				
				cout<<temp<<" ";
				if((temp%9)==0)
				cout<<multiple_9<<" ";
				else
				cout<<(char)((rand()%10)+14)<<" ";
			}
			if(temp==8)
			{
				print_complete=1;
				break;
			}
			temp=temp-11;
			j++;
		}
		if(print_complete==1)
		{
			
			break;
		}
	cout<<endl<<endl;
	}
	cout<<"\n\n\nPRESS ENTER TO CONTINUE";
	cin.get();
clrscr();
cout<<endl<<endl<<endl<<"\n\n\n\t\t\t";
	cout<<"\n\t\t\tSIT STILL AS I READ YOUR MIND\n\n\n\t\t\t";
	while(delay<25)
	{
		for(int i=0;i<8000;i++)
		{
		for(int i=0;i<9000;i++);
		for(int i=0;i<9000;i++);
	
		}
		
		if(delay<4)
		cout<<char(30);
		if(delay>4&&delay<9)
		cout<<char(24);
		if(delay>9&&delay<14)
		cout<<char(25);
		if(delay>14&&delay<19)
		cout<<char(27);
		if(delay>19&&delay<24)
		cout<<char(26);
		delay++;
	}
	cout<<endl<<"********************************************************************************";
	cout<<"\n\n\t\t\tMIND READING COMPLETE...\n\n\t\t\tPRESS ENTER TO CONTINUE";
	cout<<endl<<"********************************************************************************";
	cin.get();
	clrscr();
cout<<"\n\n\n\n\n\n\n";
cout<<endl<<"********************************************************************************";
cout<<endl<<endl<<"\t\t\tTHE SYMBOL YOU REMEMBERD IS :"<<multiple_9;
	cout<<endl<<"********************************************************************************";
	cin.get();
	
clrscr();
cout<<"\n\n\n";
cout<<endl<<"********************************************************************************";
cout<<endl<<endl<<endl<<"\t\t\tDARE TO TRY AGAIN???? IF NO,PRESS N"<<endl;
cout<<endl<<"********************************************************************************";
cin>>choice;
if(choice=='n'||choice=='N')
break;
}
}


Other 5 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.