prog.c: In function 'SetColor':
prog.c:19:6: error: unknown type name 'WORD'
WORD wColor;
^
prog.c:21:6: error: unknown type name 'HANDLE'
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
^
prog.c:21:6: warning: implicit declaration of function 'GetStdHandle' [-Wimplicit-function-declaration]
prog.c:21:36: error: 'STD_OUTPUT_HANDLE' undeclared (first use in this function)
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
^
prog.c:21:36: note: each undeclared identifier is reported only once for each function it appears in
prog.c:22:6: error: unknown type name 'CONSOLE_SCREEN_BUFFER_INFO'
CONSOLE_SCREEN_BUFFER_INFO csbi;
^
prog.c:25:6: warning: implicit declaration of function 'GetConsoleScreenBufferInfo' [-Wimplicit-function-declaration]
if(GetConsoleScreenBufferInfo(hStdOut, &csbi))
^
prog.c:28:25: error: request for member 'wAttributes' in something not a structure or union
wColor = (csbi.wAttributes & 0xF0) + (ForgC & 0x0F);
^
prog.c:29:11: warning: implicit declaration of function 'SetConsoleTextAttribute' [-Wimplicit-function-declaration]
SetConsoleTextAttribute(hStdOut, wColor);
^
prog.c: In function 'ClearConsoleToColors':
prog.c:36:6: error: unknown type name 'WORD'
WORD wColor = ((BackC & 0x0F) << 4) + (ForgC & 0x0F);
^
prog.c:38:6: error: unknown type name 'HANDLE'
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
^
prog.c:38:36: error: 'STD_OUTPUT_HANDLE' undeclared (first use in this function)
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
^
prog.c:40:6: error: unknown type name 'COORD'
COORD coord = {0, 0};
^
prog.c:40:6: warning: excess elements in scalar initializer
prog.c:40:6: warning: (near initialization for 'coord')
prog.c:44:6: error: unknown type name 'DWORD'
DWORD count;
^
prog.c:47:6: error: unknown type name 'CONSOLE_SCREEN_BUFFER_INFO'
CONSOLE_SCREEN_BUFFER_INFO csbi;
^
prog.c:53:11: warning: implicit declaration of function 'FillConsoleOutputCharacter' [-Wimplicit-function-declaration]
FillConsoleOutputCharacter(hStdOut, (TCHAR) 32, csbi.dwSize.X * csbi.dwSize.Y, coord, &count);
^
prog.c:53:48: error: 'TCHAR' undeclared (first use in this function)
FillConsoleOutputCharacter(hStdOut, (TCHAR) 32, csbi.dwSize.X * csbi.dwSize.Y, coord, &count);
^
prog.c:53:55: error: expected ')' before numeric constant
FillConsoleOutputCharacter(hStdOut, (TCHAR) 32, csbi.dwSize.X * csbi.dwSize.Y, coord, &count);
^
prog.c:54:11: warning: implicit declaration of function 'FillConsoleOutputAttribute' [-Wimplicit-function-declaration]
FillConsoleOutputAttribute(hStdOut, csbi.wAttributes, csbi.dwSize.X * csbi.dwSize.Y, coord, &count );
^
prog.c:54:51: error: request for member 'wAttributes' in something not a structure or union
FillConsoleOutputAttribute(hStdOut, csbi.wAttributes, csbi.dwSize.X * csbi.dwSize.Y, coord, &count );
^
prog.c:54:69: error: request for member 'dwSize' in something not a structure or union
FillConsoleOutputAttribute(hStdOut, csbi.wAttributes, csbi.dwSize.X * csbi.dwSize.Y, coord, &count );
^
prog.c:54:85: error: request for member 'dwSize' in something not a structure or union
FillConsoleOutputAttribute(hStdOut, csbi.wAttributes, csbi.dwSize.X * csbi.dwSize.Y, coord, &count );
^
prog.c:56:11: warning: implicit declaration of function 'SetConsoleCursorPosition' [-Wimplicit-function-declaration]
SetConsoleCursorPosition(hStdOut, coord);
^
prog.c: In function 'SetColorAndBackground':
prog.c:63:6: error: unknown type name 'WORD'
WORD wColor = ((BackC & 0x0F) << 4) + (ForgC & 0x0F);;
^
prog.c:64:43: error: 'STD_OUTPUT_HANDLE' undeclared (first use in this function)
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), wColor);
^
prog.c: At top level:
prog.c:68:1: error: unknown type name 'COORD'
COORD coord = {0,0}; ///set the cordinate to 0, 0 (top-left corner of window);
^
prog.c:68:1: warning: excess elements in scalar initializer
prog.c:68:1: warning: (near initialization for 'coord')
prog.c: In function 'gotoxy':
prog.c:70:10: error: request for member 'X' in something not a structure or union
coord.X = x; coord.Y = y; /// X and Y coordinates
^
prog.c:70:23: error: request for member 'Y' in something not a structure or union
coord.X = x; coord.Y = y; /// X and Y coordinates
^
prog.c:71:43: error: 'STD_OUTPUT_HANDLE' undeclared (first use in this function)
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
^
prog.c: In function 'drawRectangle':
prog.c:75:12: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
prog.c: In function 'get_password':
prog.c:159:13: warning: implicit declaration of function 'getch' [-Wimplicit-function-declaration]
temp_passP[i]=getch();
^
prog.c: In function 'use_pass_field':
prog.c:188:5: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
gotoxy(34,x);scanf("%d",use);
^
prog.c: In function 'add_student':
prog.c:212:9: warning: implicit declaration of function 'MessageBox' [-Wimplicit-function-declaration]
MessageBox(0,"Error in Opening file\nMake sure your file is not write protected","Warning",0);
^
prog.c:216:9: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gotoxy(print,10);printf("ID: ");gets(stu.ID);
^
prog.c:218:9: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gotoxy(print,12);printf("Name: ");gets(stu.name);
^
prog.c:219:9: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gotoxy(print,14);printf("Address: ");gets(stu.add);
^
prog.c:220:9: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gotoxy(print,16);printf("Parent's name: ");gets(stu.parname);
^
prog.c: In function 'search_student':
prog.c:238:5: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s_id);
^
prog.c: In function 'mod_student':
prog.c:270:5: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s_id);
^
prog.c:276:13: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gotoxy(print,12);printf("ID: ");gets(stu.ID);
^
prog.c:277:13: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gotoxy(print,13);printf("Name: ");gets(stu.name);
^
prog.c:278:13: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gotoxy(print,14);printf("Address: ");gets(stu.add);
^
prog.c:279:13: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gotoxy(print,15);printf("Parent's name: ");gets(stu.parname);
^
prog.c: In function 'delete_student':
prog.c:307:5: warning: 'gets' is deprecated (declared at /usr/include/stdio.h:638) [-Wdeprecated-declarations]
gets(s_id);
^
prog.c:305:22: warning: unused variable 'print' [-Wunused-variable]
int isFound = 0, print = 37;
^
prog.c:305:9: warning: unused variable 'isFound' [-Wunused-variable]
int isFound = 0, print = 37;
^
prog.c: In function 'main':
prog.c:369:5: warning: implicit declaration of function 'SetConsoleTitle' [-Wimplicit-function-declaration]
SetConsoleTitle("Programming-technique.blogspot.com - Student Record System");
^
prog.c: In function 'conf_record':
prog.c:202:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^