Add to Favorites    Make Home Page 14642 Online  
 Language Categories  
 Our Services  

Home » C++ Home » Beginners / Lab Assignments Home » Message Boxes in DOS.

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Message Boxes in DOS.
Author Faseeh
Author Email master_02 [at] hotmail.com
Description You can make a MESSAGE BOX in DOS mode.
Category C++ » Beginners / Lab Assignments
Hits 381751
Code Select and Copy the Code
#include<string.h> #include<math.h> #include<iostream.h> #include <windows.h> #include <delayimp.h> #pragma comment(lib, "delayimp") #include<stdio.h> #include<conio.h> #include<string.h> void main() {char cha,g='g',c='y',cho='y'; int ch,r,reg; char name[20],name2[20],aut[10]; char cod[10]={"FASEEH"}; cout<<" Enter the LOG IN given to you : "; cin>>aut; cout<<" NOW ENTER THE CODE GIVEN TO YOU : "; cin>>reg; strupr(aut); cout<<" "; r=strcmp(aut,cod); if((r==0)&&(reg==2251985)) { MessageBox(NULL, "That`s it. Thanks For Registration", "PrOgRaM fAsEeH ", MB_OK) ; MessageBox(NULL, "Enjoy The Software", "PrOgRaM fAsEeH ", MB_OK) ; cout<<" Enter Your 1st Name : "; cin>>name; cout<<" Enter Your 2nd Name : "; cin>>name2; cout<<" "; while(cho=='y') {cout<<"================================================================== ============="; cout<<" "; cout<<" x03 x03 x02x02x02x02x02x02x02x02 x04 x05x05x05x05x05x05x05x05x05x05 x01x01x01x01x01x01x01x01 x06 x06 x10x10x10x10x10x10x10x10x10x10x10"; cout<<" x03 x03 x02 x04 x05 x01 x01 x06 x06 x06 x06 x10"; cout<<" x03 x03 x02 x04 x05 x01 x01 x06 x06 x06 x06 x10"; cout<<" x03 x03 x02 x04 x05 x01 x01 x06 x06 x06 x06 x10"; cout<<" x03 x03 x03 x02x02x02x02x02 x04 x05 x01 x01 x06 x06 x06 x10x10x10x10x10x10x10"; cout<<" x03 x03 x03 x03 x02 x04 x05 x01 x01 x06 x06 x10"; cout<<" x03 x03 x03 x03 x02 x04 x05 x01 x01 x06 x06 x10"; cout<<" x03 x03 x03 x03 x02 x04 x05 x01 x01 x06 x06 x10"; cout<<" x03 x03 x02x02x02x02x02x02x02x02 x04x04x04x04x04x04x04x04 x05x05x05x05x05x05x05x05x05x05 x01x01x01x01x01x01x01x01 x06 x06 x10x10x10x10x10x10x10x10x10x10x10"; cout<<" "<<name<<" "<<name2<<" Press 'n' key to Go on NEXT PAGE "; cout<<" =========================================================== ===================="; cin>>cha; if(cha=='n') {MessageBox(NULL, "Hello From ' MUHAMMAD FASEEH ABRAR '. As you press 'n' so now yo see the next page of my program.", "PrOgRaM fAsEeH ", MB_OK) ; cout<<" "; cout<<" THIS PROGRAM IS DEVELOPED AND DESIGNED BY ' MUHAMMAD FASEEH ABRAR '"; cout<<" MAY YOU WANT TO GO TO RUN THIS PROGRAM (g/n): "; cin>>g; MessageBox(NULL, "Now You Press 'g' so now you see a list of programs", "PrOgRaM fAsEeH ", MB_OK) ; while ((g=='g')||(g=='G')) { while ((c=='y')||(c=='Y')) { cout<<" THIS PROGRAM IS DEVELOPED AND DESIGNED BY ' MUHAMMAD FASEEH ABRAR ' AND NOW THIS TIME IT IS USED BY ( "<<name<<" "<<name2<<" )"<<" "; cout<<" ________________________________________________"; cout<<" | || |"; cout<<" | CHOICE NO || OPPERATION TO BE DONE |"; cout<<" |____________||__________________________________|"; cout<<" | 1 || ADDITION |"; cout<<" |____________||__________________________________|"; cout<<" | 2 || MULTIPLICATION |"; cout<<" |____________||__________________________________|"; cout<<" | 3 || SQUARE ROOT |"; cout<<" |____________||__________________________________|"; cout<<" | 4 || MODULUS |"; cout<<" |____________||__________________________________|"; cout<<" | 5 || CHECKER BOARD |"; cout<<" |____________||__________________________________|"; cout<<" | 6 || SUBTRACTION |"; cout<<" |____________||__________________________________|"; cout<<" "<<strupr(name)<<" "<<strupr(name2)<<" NOW ENTER YOUR CHOICE NUMBER : "; cin>>ch; cout<<" "; cout<<" THIS PROGRAM IS DEVELOPED AND DESIGNED BY ' MUHAMMAD FASEEH ABRAR '"; int add1,add2,mul1,mul2,temp=0,mod1,mod2; int x,y,sub1,sub2; double sqr,d; switch(ch) {case 1:MessageBox(NULL, "As you press '1' this will add two numbers", "PrOgRaM fAsEeH ", MB_OK) ; cout<<" ________________________________________________"; cout<<" | || |"; cout<<" | CHOICE NO || OPPERATION TO BE DONE |"; cout<<" |____________||__________________________________|"; cout<<" | 1 || ADDITION |"; cout<<" |____________||__________________________________|"; cout<<" NOW ENTER THE FIRST NUMBER FOR ADDITION : "; cin>>add1; cout<<" NOW ENTER THE SECOND NUMBER FOR ADDITION: "; cin>>add2; cout<<" RESULT 0F "<<add1<<"+"<<add2<<"="<<add1+add2; cout<<" MAY YOU WANT TO REPEAT (y/n) : "; cin>>c; break; case 2:MessageBox(NULL, "As you press '2' this will multiply two numbers", "PrOgRaM fAsEeH ", MB_OK) ; cout<<" ________________________________________________"; cout<<" | || |"; cout<<" | CHOICE NO || OPPERATION TO BE DONE |"; cout<<" |____________||__________________________________|"; cout<<" | 2 || MULTIPLICATION |"; cout<<" |____________||__________________________________|"; cout<<" NOW ENTER THE FIRST NUMBER FOR MULTIPLICATION : "; cin>>mul1; cout<<" NOW ENTER THE SECOND NUMBER FOR MULTIPLICATION: "; cin>>mul2; cout<<" RESULT 0F "<<mul1<<"*"<<mul2<<"="<<mul1*mul2; cout<<" MAY YOU WANT TO REPEAT (y/n) : "; cin>>c; break; case 3:MessageBox(NULL, "As you press '3' this will find square root of a number", "PrOgRaM fAsEeH ", MB_OK) ; cout<<" ________________________________________________"; cout<<" | || |"; cout<<" | CHOICE NO || OPPERATION TO BE DONE |"; cout<<" |____________||__________________________________|"; cout<<" | 3 || SQUARE ROOT |"; cout<<" |____________||__________________________________|"; cout<<" NOW ENTER THE NUMBER TO FIND THE SQUARE ROOT : "; cin>>d; if(d<0) {d=(-1)*d; temp=1; } if(temp==1) {sqr=sqrt(d); cout<<" RESULT 0F "<<"Square Root OF -"<<d<<"="<<sqr<<"i"; } else cout<<" RESULT 0F "<<"Square Root OF "<<d<<"="<<sqrt(d); cout<<" MAY YOU WANT TO REPEAT (y/n) : "; cin>>c; break; case 4:MessageBox(NULL, "As you press '4' this will find modulus of two numbers", "PrOgRaM fAsEeH ", MB_OK) ; cout<<" ________________________________________________"; cout<<" | || |"; cout<<" | CHOICE NO || OPPERATION TO BE DONE |"; cout<<" |____________||__________________________________|"; cout<<" | 4 || MODULUS |"; cout<<" |____________||__________________________________|"; cout<<" NOW ENTER THE FIRST NUMBER TO FIND THE MODULUS: "; cin>>mod1; cout<<" NOW ENTER THE SECOND NUMBER TO FIND THE MODULUS: "; cin>>mod2; cout<<" RESULT 0F "<<mod1<<"%"<<mod2<<"="<<mod1%mod2; cout<<" MAY YOU WANT TO REPEAT (y/n) : "; cin>>c; break; case 5:MessageBox(NULL, "As you press '5' this will print a checker board", "PrOgRaM fAsEeH ", MB_OK) ; cout<<" "; for(y=1;y<10;y++) {for(x=1;x<55;x++) if((x+y)%2==0) cout<<"xDBxDB"; else cout<<" "; cout<<" "; } cout<<" MAY YOU WANT TO REPEAT (y/n) : "; cin>>c; break; case 6:MessageBox(NULL, "As you press '6' this will subtract two numbers", "PrOgRaM fAsEeH ", MB_OK) ; cout<<" ________________________________________________"; cout<<" | || |"; cout<<" | CHOICE NO || OPPERATION TO BE DONE |"; cout<<" |____________||__________________________________|"; cout<<" | 6 || SUBTRACTION |"; cout<<" |____________||__________________________________|"; cout<<" NOW ENTER THE FIRST NUMBER FOR SUBTRACTION: "; cin>>sub1; cout<<" NOW ENTER THE SECOND NUMBER FOR SUBTRACTION: "; cin>>sub2; cout<<" RESULT 0F "<<sub1<<"-"<<sub2<<"="<<sub1-sub2; cout<<" MAY YOU WANT TO REPEAT (y/n) : "; cin>>c; break; } } } } else {MessageBox(NULL, "YOU NOT PRESS 'n'","ILLEGAL PRESSING", MB_OK) ; cout<<" "<<name<<" "<<name2<<" May You Want to repeat (y/n) : "; cin>>cho; } } } MessageBox(NULL, "YOU ENTERED WRONG INFORMATION. TO GET CODE AND REGISTERATION KEY MAIL ON ([email protected]) OR ([email protected])","GeT rEgIsTeRaTiOn", MB_OK) ; }

Related Source Codes

Script Name Author
Moving ball screen saver karlmarx
The Classic Game of Snake & Ladder Lakshmi Narayana .A
Railway seat reservation question which comes in sapient VyomWorld
To calculate percentile Ravi Mathur
Send to folder ANIMESH SAHU
Analog clock and calendar Nazia & Rida
HIGH/LOW GAME MOLLY ARORA
Data structure (stack Implimentation) Swapnil B Adsure
Memory Game AnirudhSanyal
Easy Calc Anirudh Sanyal
GK Quiz Anirudh Sanyal
Hangman Game Manish Jain
Snakeman Manish Jain
Full month Calendar Nigi
Cursor shapes nigi

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=470


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review