C & C++ language
Home
HTML
C&C++ language
Movies
Games
Softwares
Monday, 22 October 2012
Password
#include<iostream.h>
#include<string.h>
void main()
{
char line[80];
cout<<"enter the password ";
for(int i=0;i<80;i++)
{
cin.getline(line,80);
if(strcmp(line,"gaurav"))
{
cout<<"sorry";
}
else
{
cout<<"ok";
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment