#include <stdio.h>
#include <conio.h>
#include <windows.h>
void box(int x1,int y1,int x2,int y2);
void gotoxy(int x,int y);
void clrscr();
int x,a,ian;
void main(){
char username[50];
char password[50];
do{
box(9,10,40,15);
gotoxy(10,11);
printf("username: ");
gotoxy(10,13);
printf("password: ");
gotoxy(21,11);
gets(username);
gotoxy(21,13);
gets(password);
if(!strcmp(username,"angelo")){
if(!strcmp(password,"laguna")){
clrscr();
gotoxy(23,14);
printf("Tama. . .! ");
a=1;
}
else{
clrscr();
gotoxy(23,14);
printf(" ");
a=0;
}
}
else{
clrscr();
gotoxy(23,14);
printf(" ");
a=0;
}
}while(a!=1);
getch();
}
void box(int x1,int y1,int x2,int y2){
int o=0;
gotoxy(x1,y1);
printf("%c",char(218));
for(o=x1+1;o<=x2-1;o++){
gotoxy(o,y1);
printf("%c",char(196));
}
gotoxy(o,y1);
printf("%c",char(191));
for(o=y1+1;o<=y2-1;o++){
gotoxy(x1,o);
printf("%c",char(179));
}
gotoxy(x1,o);
printf("%c",char(192));
for(o=y1+1;o<=y2-1;o++){
gotoxy(x2,o);
printf("%c",char(179));
}
for(o=x1+1;o<=x2-1;o++){
gotoxy(o,y2);
printf("%c",char(196));
}
gotoxy(o,y2);
printf("%c",char(217));
}
void gotoxy(int x,int y){
COORD coord;
coord.X=x;
coord.Y=y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord);
}
void clrscr(){
system("cls");
}
compiling....
compilation finished with error(s):
Error: Question missing in posting