Вы находитесь на странице: 1из 16

Scribd

Explore Community

Upload a Document

Search Books, Presentations, Business, Academics...


Login Sign Up | Log In

/ 31

Download this Document for Free


Ads by Google

C Jobs for Freshers


100s of Jobs Listed. Submit CV to Apply Now
MonsterIndia.com

IT courses @ NIIT
NIIT has been Rated as First Choice of Employers for Recruitment
NIIT.com/IT-Training

Indian Railway
Promote Your Services on Quikr. Post Ad & Save on Advertising Cost.
www.quikr.com

int d,m,y; void getdetail() {cout<<"Enter the details as follows\n"; cout<<"Train no:";cin>>tno; cout<<"Train name:";gets(tname); cout<<"Boarding point:";gets(bp); cout<<"Destination pt:";gets(dest); cout<<"No of seats in first class & fare per ticket:";

cin>>c1>>c1fare; cout<<"No of seats in second class & fare per ticket:"; cin>>c2>>c2fare; cout<<"Date of travel:";cin>>d>>m>>y; }void displaydetail() {cout<<tno<<"\t"<<tname<<"\t"<<bp<<"\t"<<dest<<"\t"; cout<<c1<<"\t"<<c1fare<<"\t"<<c2<<"\t"<<c2fare<<"\t"; cout<<d<<"-"<<m<<"-"<<y<<"\t"<<endl; }}; class reser {public: int pnr; int tno; char tname[100]; char bp[10]; char dest[100]; char pname[10][100]; int age[20]; char clas[10]; int nosr; int i; int d,m,y; int con; float amc; void getresdet() {cout<<"Enter the details as follows\n"; cout<<"Train no:";cin>>tno; cout<<"Train name:";gets(tname); cout<<"Boarding point:";gets(bp); cout<<"Destination pt:";gets(dest); cout<<"No of seats required:";cin>>nosr; for(i=0;i<nosr;i++) {cout<<"Passenger name:";gets(pname[i]); cout<<"Passenger age:";cin>>age[i]; }cout<<"Enter the class f-first class s-second class:"; gets(clas); cout<<"Date of travel:";cin>>d>>m>>y; cout<<"Enter the concession category\n"; cout<<"1.Military\n2.Senior citizen\n"; cout<<"3.Children below 5 yrs\n4.None\n"; cin>>con; cout<<"............END OF GETTING DETAILS............\n"; }void displayresdet() {cout<<"...............................................\n";

cout<<"...............................................\n"; cout<<"Pnr no:"<<pnr; cout<<"\nTrain no:"<<tno; cout<<"\nTrain name:";puts(tname); cout<<"Boarding point:";puts(bp); cout<<"Destination pt:";puts(dest); cout<<"No of seats reserved:"<<nosr; for(i=0;i<nosr;i++) {cout<<"Passenger name:";puts(pname[i]); cout<<"Passenger age:"<<age[i]; }cout<<"\nYour class:";puts(clas); cout<<"\nDate of reservation:"<<d<<"-"<<m<<"-"<<y; cout<<"\nYour concession category:"<<con; cout<<"\nYou must pay:"<<amc<<endl; cout<<"***********************************************\n"; cout<<".........END OF RESERVATION.................\n"; cout<<"***********************************************\n"; }}; class canc {public: int pnr; int tno; char tname[100]; char bp[10]; char dest[100]; char pname[10][100]; int age[20]; int i; char clas[10]; int nosc; int d,m,y; float amr; void getcancdet() {cout<<"Enter the details as follows\n"; cout<<"Pnr no:";cin>>pnr; cout<<"Date of cancellation:";cin>>d>>m>>y; cout<<"...........END OF GETTING DETAILS...........\n"; }void displaycancdet() {cout<<"...........................................\n"; cout<<"...........................................\n"; cout<<"Pnr no:"<<pnr; cout<<"\nTrain no:"<<tno; cout<<"\nTrain name:";puts(tname); cout<<"Boarding point:";puts(bp);

cout<<"Destination pt:";puts(dest); cout<<"\nYour class:";puts(clas); cout<<"no of seats to be cancelled:"<<nosc; for(i=0;i<nosc;i++) {cout<<"Passenger name:";puts(pname[i]); cout<<"passenger age:"<<age[i]; }cout<<"\nDate of cancellation:"<<d<<"-"<<m<<"-"<<y; cout<<"\nYou can collect:"<<amr<<"rs"<<endl; cout<<"*****************************************\n"; cout<<".........END OF CANCELLATION.............\n"; cout<<"*****************************************\n"; }}; void manage(); void can(); void user(); void database(); void res(); void reserve(); void displaypassdetail(); void cancell(); void enquiry(); void main() {clrscr(); int ch; cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"; cout<<".......WELCOME TO RAILWAY RESERVATION SYSTEM..........\n"; cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"; do {cout<<"^^^^^^^^^^^^^^^^^^^^^^MAIN MENU^^^^^^^^^^^^^^^^^^^^\n"; cout<<"1.Admin mode\n2.User mode\n3.Exit\n"; cout<<"Enter your choice:"; cin>>ch; cout<<endl; switch(ch) {case 1: database(); break; case 2: user(); break; case 3: exit(0); }}while(ch<=3); getch();

}void database() {char *password; char *pass="12345678"; password=getpass("Enter the admininistrator password:"); detail a; fstream f; int ch; char c; if(strcmp(pass,password)!=0) {cout<<"Enter the password correctly \n"; cout<<"You are not permitted to logon this mode\n"; goto h; }if(strcmp(pass,password)==0) {char c; do {cout<<"...........ADMINISTRATOR MENU...........\n"; cout<<"1.Create detail data base\n2.Add details\n"; cout<<"3.Display details\n4.User management\n"; cout<<"5.Display passenger details\n6.Return to main menu\n"; cout<<"Enter your choice:"; cin>>ch; cout<<endl; switch(ch)
Ads by Google

TSRI - GO Lang. to C++


Best ROI, case studies, mature process, Zero risk solution.

www.softwarerevolution.com C & C++ to Flowcharts


Automatic convert C & C++ code to Visio, Word, Powerpoint flowchart

www.fatesoft.com LabVIEW on Blackfin


Standard BF548 Mixed Signal Board Starterkit, SDK, Reference Designs

www.schmid-engineering.ch

Railway Reservation in C++

This is the coding for Railway Reservation Project in C++. Will surely help students doing their 2nd yr IT or 3rd yr CSE in Software Engineering La... (More) Reads: 16,411 Uploaded: 05/04/2009 Category: Research > Math & Engineering Tags: c++ project It cse reservation Railway Anna university (More) Rated: (5 Ratings) Download this Document for FreePrintMobileCollectionsReport Document This is a private document.

shabsae Follow Ads by Google LabVIEW on Blackfin


Standard BF548 Mixed Signal Board Starterkit, SDK, Reference Designs

www.schmid-engineering.ch C C++ Language


All About C C++ Language C C++ Language and Much More!

Peeplo.com/Top_Results Sandbox Infotech


Learn C++ Java PHP from the best. The Uncomplicated way!

www.sandboxinfotech.com

Share & Embed

Link / URL: Embed Size & Settings:


Width: Height:

Auto

Start on page: Preview View:

Related
1. 33 p.

Railway Reservation in C Reads: 753 25 p.

26835702 Project in c Banking Mana... Reads: 94 24 p.

Project in c++(Banking Management ... Reads: 577 2. 5 p.

Write a Program That Will Find the...

Reads: 438 35 p.

Airline Reservation Reads: 592 4 p.

OS Reads: 184 3. 25 p.

GO BACK N ARQ Reads: 661 1 p.

cashier program C++ Reads: 240 9 p.

C++ sample program Reads: 2482 4. 2 p.

CS201 Assignment 1 Solution Vuabid Reads: 2892 34 p.

0bc24cb293bd2232419e0c1639ef7ce58f... Reads: 13 5 p.

Taimoor Assignment Reads: 124 5. 27 p.

C++ File Grayscale Reads: 99 41 p.

Project in c++(Hotel Management Sy... Reads: 148 14 p.

Library Program 2 Reads: 218 6. 14 p.

Library Program 4 Reads: 166 28 p.

Library Program 3 Reads: 159 76 p.

crorepati Reads: 391 7. 1 p.

LID:KOA - AIRPORT DIAGRAM (1007) Reads: 0 1 p.

LID:ROW - VOR-B (1007) Reads: 0 1 p.

LID:DWH - SABINE PASS ONE (RNAV) (... Reads: 0

8. 6 p.

Supernatural Diaries Jayla's Book-... Reads: 0 10 p.

All My Books Reads: 0 17 p.

Freemasonry, Midwife to an Occult ... Reads: 0 9. 21 p.

Class Four Reads: 0

More from this user


1. 61 p. RDBMS_Day3 From: shabsae Reads: 463 65 p. RDBMS_Day2

From: shabsae Reads: 173 31 p. Railway Reservation in C++ From: shabsae Reads: 16,411 2. 11 p. Library Management System From: shabsae Reads: 19,190 105 p. Library Management Code in C From: shabsae Reads: 707

Login to Add a Comment

Submit

lokeshlokeshlokesh read this about 6 hours agoLearn more about Readcast. deadendprakash read this 2 days agoLearn more about Readcast. eeegadjaja read this 07 / 02 / 2010Learn more about Readcast.

Sushil Aggarwal read this 07 / 02 / 2010Learn more about Readcast.

Viral_Patel_452 read this 07 / 01 / 2010Learn more about Readcast.

Abhimanyu Bana read this 06 / 30 / 2010Learn more about Readcast.

Ravi Prakash Sharma read this 06 / 28 / 2010Learn more about Readcast.

Vaishu Lingakumar read this 06 / 28 / 2010Learn more about Readcast.

Akila Somasundaram read this 06 / 27 / 2010Learn more about Readcast.

Aswin Santhosh read this 06 / 27 / 2010Learn more about Readcast. Ads by Google C Jobs for Freshers
100s of Jobs Listed. Submit CV to Apply Now

MonsterIndia.com IT courses @ NIIT


NIIT has been Rated as First Choice of Employers for Recruitment

NIIT.com/IT-Training Indian Railway


Promote Your Services on Quikr. Post Ad & Save on Advertising Cost.

www.quikr.com Love to Code?


Compete against other coders 24x7 C, Java, PHP, Perl, Ruby and more!

www.CodeChef.com TSRI - GO Lang. to C++


Best ROI, case studies, mature process, Zero risk solution.

www.softwarerevolution.com C & C++ to Flowcharts


Automatic convert C & C++ code to Visio, Word, Powerpoint flowchart

www.fatesoft.com LabVIEW on Blackfin


Standard BF548 Mixed Signal Board Starterkit, SDK, Reference Designs

www.schmid-engineering.ch

Programs In C++
All About Programs in c++ Programs In C++ and Much More!

Peeplo.com/Top_Results Send me the Scribd Newsletter, and occasional account related communications. Discover and connect with people of similar interests. Publish your documents quickly and easily.

Share your reading interests on Scribd and social sites.

Email address:

Submit

Upload a Document

Search Books, Presentations, Business, Academics...

Scribd Legal

About Press Jobs Contact Blog Scribd Store

Terms - General Terms - API Terms - Privacy Copyright

Help & Tools

Getting Started Community Guidelines Support & FAQ Web Stuff

Partners

Partners / Publishers Branded Reader Developers / API

Subscribe to Us

On Scribd On Twitter On Facebook

What's New

We have updated our Terms of Service Branded Reader Multi-file Uploader

Вам также может понравиться