Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     char password[10];
  6.     puts("Enter password: ");
  7.     scanf("%s", password, 1);
  8.    
  9.     if(!strcmp(password, "password"))
  10.     {
  11.         printf("Thanks for logging in...");
  12.         getch();
  13.     }
  14.    
  15.     else
  16.     {
  17.         printf("Login failed!");
  18.         getch();
  19.     }
  20. }