Sample Output #include<stdio.h> #include<conio.h> // this program code is using variable char, the gets(), the do while statement, the char variables // created by: boybalda46
main() { char name[20], course[20], school[20];// [20] maximum characters display included space char ch;
gotoxy() is a standard C function defined in <conio.h>, but it will not work in ANSI C compilers such as Dev-C++. However, if you insist on using console functions, you can define your own function by using member functions available in <windows.h>
To use gotoxy() in Dev-C++, #include <windows.h> and insert this snippet before the main() function:
//Defines gotoxy() for ANSI C compilers. void gotoxy(short x, short y) { COORD pos = {x, y}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos); }