in line 57 I am getting this error
Code:
#include<stdio.h>
#include<string.h>
#include<conio.h>
#include<iostream>
#include<stdlib.h>
int main()
{
char userId[10],passwrd[10];
char uoid[] = "MIS",opasswrd[] = "123";
int chances = 3;
while (chances)
{
printf("Enter User ID -> ");
scanf("%s", userId);
printf("\n");
printf("Enter Your Password -> ");
scanf("%s", passwrd);
if (strcmp(uoid, userId) == 0 && strcmp(passwrd, opasswrd) == 0)
{
printf("Correct User Id And Password\n");
break;
}
else
{
printf("Invalid User Id And Password\n\n");
chances--;
if(!chances)
{
printf("You have no more chances...\n");
printf("Do you want to register y/n -> ");
printf("\n");
{
printf("Enter your new ID -> ");
scanf("%s",uoid);
printf("Enter your new PW -> ");
scanf("%s",opasswrd);
chances = 3;
}
}
}
}
clrscr();
}
{
char choice;
char c[50];
char id[50];
char age[50];
char last[100];
char first[100];
char dep[50];
char add[50];
b:
clrscr();
printf("=====PROGRAM MENU=====");
printf("\n\n[1] = CIRCLE AREA");
printf("\n[2] = RECTANGLE AREA");
printf("\n[3] = TRIANGLE AREA");
printf("\n[4] = LAST GRADE");
printf("\n[5] = LETTER GRADE");
printf("\n[6] = FACTORIAL");
printf("\n[7] = PRINTING");
printf("\n[8] = Exit Program");
printf("\n\nChoice : ");
scanf("%d",&choice);
switch (choice)
{
case 1:
clrscr();
FILE * f;
f=fopen("test.txt","r+");
if(f==NULL){
printf("No Database");
exit(1);
}
getch();
}