Actually this program doesn’t creates a facebook login screen. I have just used graphics to create two boxes with an option to enter username and password. This is program is to just give you an idea that how you can create a login screen for your project.
#include<conio.h>
#include<iostream.h>
#include<graphics.h>
#include<stdio.h>
#include<dos.h>
#include<process.h>
void logo()
{
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,”c:\tc\bgi”);
rectangle(250,30,387,48);
rectangle(275,143,398,160);
rectangle(275,175,398,192);
}
void main()
{
clrscr();
char u[20],p[20];
logo();
gotoxy(34,3);
cout<<“Facebook Login”;
gotoxy(25,10);
cout<<“Username:”;
gotoxy(25,12);
cout<<“Password:”;
gotoxy(51,10);
cout<<“(Press enter after entering)”;
gotoxy(51,12);
cout<<“(8 characters only)”;
gotoxy(36,10);
gets(u);
gotoxy(36,12);
for(int i=0;i<8;++i)
{
p[i]=getch();
if(p[i]==’b’)
{
printf(“b b”);
i=i-2;
}
else
cout<<“*”;
}
p[i]=’’;
getch();
gotoxy(20,20);
cout<<“Plz wait Redirecting”;
for(int j=0;j<8;++j)
{
sleep(1);
cout<<“.”;
}
}
sir i want to a program for Hotel Management………….
I will soon add hotel management program on this blog. So keep visiting…..!!
Sir! i saw Ur FB login page programmin but I got a problem in the password box when u type backspace it prints * .It should erase a letter but it is not doing that in place of that it taking Backspace as a character
plz tell me a way to fix it plz
Hello Devendra,
Thanks for telling me about the problem. Now I have fixed it, please check it again and let me know it is working fine or not.
sir i want program for library management
Due to some personal reason i am unable to post program for some days. But i will soon post the project. You can also find the project by searching on google.
This program is not performing the facebook login.
Hello Noor
Actually this program doesn't creates a facebook login screen. I have just used graphics to create two boxes with an option to enter username and password.
is it possible to create boxes in unix environment using c++?
Doesn't worked! says.. five errors.. i have checked step by step… really wasted my time 🙁
Let me know what kind of errors your are getting? Then only i can solve your problem.
hi guys need your help in c++ wanna write a program on graphical user authentication "undercover graphical password" no one can loggin pry.
Sir…Many of ur programs don't run in my compiler(CodeBlocks) and show errors….Can u suggest a compiler that will run all ur programs….
Also…i want to ask what's problem with CodeBlocks…… I mean why some of the compilers can run almost all the programs while some the compilers cannot do so…..???
Actually the above program and many other graphic programs on this blog uses graphics.h header file which works on older compiler like turbo c++. CodeBlocks is an ide which uses modern compiler like gcc and graphics.h does not work in it.
it says gotoxy is not declared in the scope, please help me!
it's not working in Dev-c++ version 5.1, many errors appears when i checked it…
Awesome!!! 🙂
The Graphics library is not included in most of the latest c++ ides, compilers and environments. You can search online and download it
Sir i want a program to create a word editor..Pl;eassee sir..!!!!!
Sir,
your program does’nt run as it should because it is showing three rectangles in the graphics screen and text inside them
for which cout<<; was used is written on the another window
I am using codeblocks
and i am looking for a login screen like in the above pic. for my project.
if you can solve my problem i would be a great help for me.
Thank you
Sorry this program will not work in codeblocks. It will work only in turbo c++ because the programs uses graphics.h header file which is not supported in modern compilers.
i am using turbo c++ but graphic.h is not working
what problem you are getting?
initgraph(&gdriver,&gmode,”c:\tc\bgi”);
it doesn,t work on my compiler after adding the library
what should I do?
which compiler you are using?
Sir, It’s every old piece of code. So I just expect that you are better in c++. May you answer one question, I want to have student class or generic user class. Want to implement simple login logic. I really concern how it should be designed in OOP. Do I need login class or should I make method login in the student class. How would you do that? What’s the best practice?
you are a life saver man!!
getting error on this line:- “p[i]=’’;” ” cannot convert ‘char * to ‘char’ ”
what to do now sir?? I’m using turbo c++
getting error on (p[i]=”) i.e “character constant must be one or two characters long”
I’m using turbo C++ compiler
Help me please
hey programmers, am new here I have been asked to write a program in C++ for a login screen for my school that restricts students from login by use of passwords, here the student z supposed to type in the computer number and password to login but am stack, am kindly asking for your source codes please because I don’t have any and don’t have an idea. am using Dev- C++ 5.11 compiler thanks in advance
sir fb login programe give one error “else is misplaced ”
can you u hepl me plz
please help me make a program for user login by using file handaling