-->
  • program login


    kali ini masbro rezky akan memposting contoh program login dengan fungsi printf , coding ini saya compiler pake software devC++ , banyak contoh-contoh program lain nya hanya di http://masbronotes.blogspot.com

    #include<iostream>
    #include <string>
    using namespace std;

    int main()

    {
        int ulang,pilih;

    char password [20];

    char username [20];

    ulang=1;

    pilih=1;

    while(ulang=1)

    {

    //source code login

    system("cls");

    printf("Welcome in Program Percobaan");

    printf("\n\nCreated by Masbro Rezky");

    printf("\nPAMULANG UNIVERSITY");

    printf("\n\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");

    printf("\n+                      L O G I N                           +");

    printf("\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");

    printf("\n\n\n if you want to login, you must input your id and password");

    printf("\n________________________________________________________________");

    printf("\nusename :");scanf("%s",username);

    printf("\n\npassword :");scanf("%s",password);

    system("cls");

    if((strcmp(username,"rezki")==0)&&(strcmp(password,"141094")==0))

    {

    printf("\adone!\nyou have succeeded login to program");
    }

    else

    {

    printf("\nSorry password or username invalid!\n");

    printf("\nfor Back..");

    printf("\nyou can push anything tombol…");

    }
    {
    system("pause");
    }

    }


    }

  • You might also like

    No comments: