Employer Record System: By, Arjun Acharya Samarth M.S Shashank
Employer Record System: By, Arjun Acharya Samarth M.S Shashank
SYSTEM
By,
Arjun Acharya
Samarth M.S
Shashank
This program is used to record the details of the employees in a work place. It
allows to list, modify, delete or enter new employe addresses
Libraries Used:
Conio.h: This header declares several useful library functions for performing "console input and
output" from a program. Most C compilers that target DOS, Windows 3.x, Phar Lap, DOSX, OS/2,
or Win32[2] have this header and supply the associated library functions in the default C library.
Most C compilers that target UNIX and Linux do not have this header and do not supply the library
functions. Some embedded systems use a conio-compatible library.[3]
Stdlib.h: The stdlib.h header defines four variable types, several macros, and various functions for
performing general functions.
Window.h: windows.h is a Windows-specific header file for the C and C++ programming
languages which contains declarations for all of the functions in the Windows API, all the common
macros used by Windows programmers, and all the data types used by the various functions and
subsystems.
/**
function : gotoxy
@param input: x and y coordinates
@param output: moves the cursor in specified position of console
*/
void gotoxy(int x,int y)
{
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord);
}
int main()
{
FILE *fp, *ft; /// file pointers
char another, choice;
another = 'y';
while(another == 'y') /// if user want to add another record
{
printf("\nEnter name: ");
scanf("%s",e.name);
printf("\nEnter age: ");
scanf("%d", &e.age);
printf("\nEnter basic salary: ");
scanf("%f", &e.bs);