Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 131,335 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,955 people online right now. Registration is fast and FREE... Join Now!




pin code

 
Reply to this topicStart new topic

pin code, how to put a pin code

monster☺
post 12 Mar, 2008 - 07:17 PM
Post #1


New D.I.C Head

*
Joined: 12 Mar, 2008
Posts: 1

CODE
#include"iostream.h"
#include"conio.h"
#include"dos.h"
main()
{
int p=1234;
clrscr();
back:
cout<<"Enter pin code: ";
cin>>p;
sound(1000);
delay(500);
nosound();
if (p==1234)
{
cout<<"\nAccess allowed.";
sound(600);
delay(500);
nosound();
}
else
{
cout<<"\nAccess Denied.";
sound(2000);
delay(600);
nosound();
clrscr();
goto back;
}
getch();
return 0;
}

*Mod Edit: added code tags: code.gif
User is offlineProfile CardPM

Go to the top of the page


no2pencil
post 12 Mar, 2008 - 07:18 PM
Post #2


My fridge be runnin OH NOEZ!

Group Icon
Joined: 10 May, 2007
Posts: 6,268



Thanked 54 times

Dream Kudos: 2375

Expert In: Goofing Off

My Contributions


code.gif

Do you have a question or statement to go along with this code?
User is online!Profile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/19/08 03:01PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month