123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

Displaying  Source Code(s)  
 

 
Message Boxes in DOS.

--------------------------------------------------------------------------------

Description : You can make a MESSAGE BOX in DOS mode.

#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<<"





















<BR>;
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<<"

















<BR>;
while(cho=='y')
{cout<<"==================================================================
=============";
cout<<"



<BR>;
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<<"





















<BR>;
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",<BR>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<<"<BR><<name2<<" )"<<"
<BR>;
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<<"


























<BR>;
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",<BR>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 :<BR>;
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 :<BR>;
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<BR><<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:<BR>;
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<<"
<BR>;
for(y=1;y<10;y++)
{for(x=1;x<55;x++)
if((x+y)%2==0)
cout<<"xDBxDB";
else
cout<<" ";
cout<<"<BR>;
}
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 (master_02@hotmail.com) OR
(master_02@yahoo.com)","GeT rEgIsTeRaTiOn", MB_OK) ;
}
--------------------------------------------------------------------------------

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG