timepass,program,which,will,print,fool,only,m
Quick Search for: in language:   
timepass,program,which,will,print,fool,only,m
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
C/ C++ Stats

 Code: 342,436 lines
 Jobs: 945 postings

 

You are in:

 
Login


Latest Code Ticker for C/ C++
Computing very long Fibonacci numbers
By Alex Vinokur on 3/18


Flexible Vector and Matrix
By Alex Vinokur on 3/18


Windows ASM Program
By Kain on 3/18


C/C++ Program Perfometer
By Alex Vinokur on 3/18


n-ary Huffman Template Algorithm
By Alex Vinokur on 3/18


cryptsolver
By dhritimaan shukla on 3/17


Post - It
By Massimiliano Tomassetti on 3/17


JACKPOT GAME
By Gurjit Singh Wadhwa on 3/17


ROYAL COMPUTERS DATABASE
By Gurjit Singh Wadhwa on 3/17


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 

 
 

   

i am a fool

Print
Email
 
VB icon
Submitted on: 2/25/2002 7:57:08 AM
By: Rakshit Desai 
Level: Beginner
User Rating: Unrated
Compatibility:C, C++ (general)

Users have accessed this code 282 times.
 
 
     this is timepass program which will print "i am fool" only no matter what you type in.Please rate it
 

INCLUDE files:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

//**************************************
//     
//INCLUDE files for :i am a fool
//**************************************
//     
#include<stdio.h>
#include<conio.h>
#include<process.h>
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 langauges 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: i am a fool
// Description:this is timepass program 
//     which will print "i am fool" only no mat
//     ter what you type in.Please rate it
// By: Rakshit Desai
//
//This code is copyrighted and has// limited warranties.Please see http://
//     www.Planet-Source-Code.com/xq/ASP/txtCod
//     eId.3358/lngWId.3/qx/vb/scripts/ShowCode
//     .htm//for details.//**************************************
//     

#include<stdio.h>
#include<conio.h>
#include<process.h>
void quit();
main()
    {
    char ch;
    clrscr();
    printf("\n\npress esc to abort..........");
    printf("\n type anything below\n\n");
    while(ch!=27)
        {
        ch=getch();
        if(ch==27)
            {
            quit();
        }

else { printf("I"); }
ch=getch(); if(ch==27) { quit(); }
else { printf(" "); }
ch=getch(); if(ch==27) { quit(); }
else { printf("a"); }
ch=getch(); if(ch==27) { quit(); }
else { printf("m"); }
ch=getch(); if(ch==27) { quit(); }
else { printf(" "); }
ch=getch(); if(ch==27) { quit(); }
else { printf("f"); }
ch=getch(); if(ch==27) { quit(); }
else { printf("o"); }
ch=getch(); if(ch==27) { quit(); }
else { printf("o"); }
ch=getch(); if(ch==27) { quit(); }
else { printf("l"); }
ch=getch(); if(ch==27) { quit(); }
else { printf("."); printf(" "); }
ch=getch(); }
}
void quit() { char che; clrscr(); printf("\n\nSO YOU AGREE THAT YOU ARE FOOL(Y/N)?"); che=getch(); if(che=='y'||che=='Y') { printf("\nIT IS CONFIRMED THAT YOU ARE FOOL NO.1 IN THE WORLD."); printf("\n\n\n\n\n\t\t\t\tBYE BYE MR. FOOL"); getch(); exit(1); }
else { clrscr(); return; }
}


Other 3 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Beginner category)?
(The codewith your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
2/26/2002 4:10:40 AM:Gary Kellett
Hi,  I thought I would maybe help you 
out a little by re-arranging your code 
to use an array.  You can then change 
the string at the top of the program, 
and this will be outputted to the 
screen instead. Quit function is same, 
and need to include string.h
char 
szString[] = 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | C/ C++ Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.