car_rental_system's Introduction
Car Rental System by Hemanth Medahal Steps to compile the program: i) Open command prompt and change directory to the folder containing the downloaded files ii) Type "g++ admin.cpp car.cpp database.cpp main.cpp password.cpp person.cpp user.cpp" in the console, or any other compiler that you are using. Just make sure to compile all the .cpp files iii) The above will create an executable file named a.exe. To run it, type .\a in console As a person, there are two roles; admin and user What you can do as an admin: i) Add a car ii) Delete a car iii) Display all cars What you can do as a user: i) Display unreserved cars ii) Reserve a car A user can display or reserve a car only after registering and logging in The username of admin is ADMIN and password is cars4ever Cars and users are stored in a database hence, they will persist even after the program is terminated Person is the base class. User class is inherited from person as it has limited capabilites. Admin class has special priviliges and is also inherited from Person class Map container is used to store a temporary database of persons and cars. Look-up in map is done using iterators and find function Storage in files is done using filestreams Function writetofile shows polymorphism by taking in different number of string arguments.
car_rental_system's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.