C++ Project

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

IPS ACADEMY INDORE

INSTITUTE OF ENGINEERING & SCIENCE


COMPUTER SCIENCE &ENGINEERING
DEPARTMENT

Project
(2023-24)
CPP Lab

Submitted by:- Submitted to:-

Devyansh Joshi(0808CS221065) Mrs. Raksha Singh


Dhruv Gupta(0808CS221066)
Project Description:-

Our project Tenant Recorder is a tool to manage and


store information about the people currently residing in
your house or hostel with ease. We have used C as our
coding language for this program and used file handling
for permanent storage of data in system. These headers
provide functions and definitions for input/output,
memory allocation, string manipulation, and Windows-
specific functionality. The program runs in windows
terminal for using terminal functionality of ‘pause’ and
for giving a color to the output screen. There are
discreet functions for various aspects of code such as
‘adding a record’, ‘deleting a record’ etc.

Lets look st different components of code:

Library inclusions : The code includes various header files, such as


stdio.h, stdlib.h , string.h , and windows.h.

Console Functions: The code defines a function gotoxy to set the


cursor's position on the console window. This function uses Windows
API functions to achieve this.
File Pointers: FILE pointers fp and ft are declared. fp is used to
work with the "data.txt" file, while ft is used for temporary file
operations.
Function Definitions: The program defines several functions for
various operations:
addrecord(),modifyrecord(),displayrecord(),deleterecord()
Code in ‘C’ for Above approach:-
Output :-

You might also like