Hotel Management Project - C And C++ | Dream.In.Code [PDF]

Dec 13, 2010 - hotel management project: problem in my c++ hotel management project.

15 downloads 29 Views 620KB Size

Recommend Stories


PRD Project Management C
Life isn't about getting and having, it's about giving and being. Kevin Kruse

[PDF] Data Structures Using C and C++
Keep your face always toward the sunshine - and shadows will fall behind you. Walt Whitman

c and c(2S)
What you seek is seeking you. Rumi

C and C++ Courses
The only limits you see are the ones you impose on yourself. Dr. Wayne Dyer

Comparison of C++ and C
Your big opportunity may be right where you are now. Napoleon Hill

Moto C and C Plus
The happiest people don't have the best of everything, they just make the best of everything. Anony

Programming in C and C++
You can never cross the ocean unless you have the courage to lose sight of the shore. Andrè Gide

Site C Clean Energy Project
Never wish them pain. That's not who you are. If they caused you pain, they must have pain inside. Wish

PDF Cancer and Vitamin C
Love only grows by sharing. You can only have more for yourself by giving it away to others. Brian

Project hotel
Do not seek to follow in the footsteps of the wise. Seek what they sought. Matsuo Basho

Idea Transcript


Dream.In.Code> Programming Help> C and C++Problem In My C++ Hotel Management Project Page 1 of 1

7 Replies - 29956 Views - Last Post: 14 December 2010 - 10:27 AM Rate Topic:



kumarrags2004

Posted 13 December 2010 - 11:24 AM In my project add and modify and delete functions in customer records in edit menu are not working properly as the contents are not being displayed .sometimes 1 record is displayed and others are not ans sometimes no records are displayed.could you resolve the problem.please check if the delete is also working after making the corrections.room records in edit menu are working fine.please reply soon.it would be really greatful.the code is attached to this post. thanks



Spoiler Show MOD EDIT: Moved code into post. Don't attach your code to a post, copy and paste it INTO the post using code tags, as shown below:

Later spoilered huge amount of code Attached File(s) (http://www.dreamincode.net/forums/index.php?app=core&module=attach§ion=attach&attach_id=21273&s=ecb12d855c8a3eb165328b32d1475a79) hotel management-project3.txt (http://www.dreamincode.net/forums/index.php? app=core&module=attach§ion=attach&attach_id=21273&s=ecb12d855c8a3eb165328b32d1475a79) (31.57K) Number of downloads: 5514 This post has been edited by JackOfAllTrades: 14 December 2010 - 09:45 AM Replies To: hotel management project

Salem_c

Re: hotel management project Posted 13 December 2010 - 11:36 AM > int ch ; > while(ch!=3) What if the uninitialised value in ch is 3 ? > if ( ch == 3 ) > main_menu(); You should really look into call/return here main_menu (calls)-> edit_records -> main_menu -> edit_records -> main_menu -> edit_records -> do you see what's going on here? The edit_records() function should just return, and it is back in main_menu() where you called it from. You do this in some other places as well.

> char string[3],string1[3],string2[3],string3[3]; > strcpy(string,"SS"); > strcpy(string1,"DSS"); Another prime example of why you should be using std::string in your C++ program. You have OVERRUN the end of your array.

kumarrags2004

Re: hotel management project Posted 14 December 2010 - 01:12 AM could you just make the solution more simpler to understand.i cant find out the corrrections i have to make with the info u have given.pls if u could make the changes and post the program it would be really greatful or just pls tell me specific places i need to make the corrections. thanks.

Follow & Share Dream.In.Code

Caffeine Lounge Corner Cubicle

Follow

janotte

Re: hotel management project Posted 14 December 2010 - 01:30 AM I've got another idea.

General Discussion

Student Campus Software Development

How about you make your best try at taking the excellent advice from Salem_c on board and make your best effort at fixing your program. If, after trying hard to fix it, you are still having trouble then post your new code and answer these questions about that new code. ( a ) Does your code compile? ( b ) Any errors or warnings? If there are then share them with us. Copy and paste the errors exactly as they are. ( c ) Is the program producing any output? ( d ) How is the actual output different to what you want / expect? Give details and, ideally, examples. If you provided inputs to the program tell us what they were. ( e ) What have you already tried to fix it?







Industry News Introduce Yourself Nightmare.In.Code

C++ Tutorials New Scanner Tutorial for

Programming Help

Windows using WIA.

C and C++

Microsoft : Shaped Windows

VB.NET

Microsoft : Implementing an

Java

Indexed Table : Part III

C#

Microsoft : Implementing an

Python

Indexed Table : Part I and II

PHP

Processing Data Held In A

Mobile Development

Comma Separated File

ASP.NET

The reasons for using vectors

.NET Framework

Re: hotel management project Posted 14 December 2010 - 03:38 AM i could not fully understand what salem_c had posted.there is no syntax error so the program is compiling. the problem in the program attached to the post is in the following code and the errors are attached to this post:

Introduction to C++

Ruby

Metaprogramming: Basics

Game Development

Pointers, and a possible

Assembly

Spoiler Show

problem - if you're not

Databases

careful!

ColdFusion

Generating Random

VB6

Numbers - The C++ Way

Other Languages

Hello World: Your first C

52 Weeks Of Code

While I am sure you would be grateful if someone fixed your program (homework?) for you that is not the way things are done at DIC. And if it is homework and your teacher is one of the many teachers who visit this site then if we fixed it for you then you will get a fail and maybe expelled for cheating. You have some decent work here that would probably get some part marks even in its current state so throwing that away would be a very silly thing to have happen to you after all this work you have done. BTW "void main()" is wrong. Always wrong. Always use "int main()". Read here the words of the man who invented C++: http://www.research.....html#void-main (http://www.research.att.com/~bs/bs_faq2.html#void-main) Can I write "void main()"? The definition void main() { /* ... */ } is not and never has been C++, nor has it ever been C. See the ISO C++ standard 3.6.1[2] or the ISO C standard 5.1.2.2.1. And read here about some of the problems void main() can cause http://www.gidnetwork.com/b-66.html (http://www.gidnetwork.com/b-66.html)

kumarrags2004

the customer records are not being displayed.refer all the photos.the customer.dat file is still storing data but is not displaying the contents.there is no problem in the room records.i am also attaching the customer.dat file as a txt filee. pls help. thanks MOD EDIT: Spoilered huge amount of code Attached image(s)

and C++ Programs 351 More C++ Tutorials...

Reference Sheets

Web Development Web Development HTML & CSS JavaScript Graphic Design Flash & ActionScript Blogging SEO & Advertising Web Servers & Hosting Site Check

Code Snippets C Snippets C++ Snippets Java Snippets Visual Basic Snippets C# Snippets VB.NET Snippets ASP.NET Snippets PHP Snippets Python Snippets Ruby Snippets ColdFusion Snippets SQL Snippets Assembly Snippets Functional Programming Snippets Perl Snippets HTML/CSS Snippets Javascript Snippets Flash/ActionScript Snippets ASP Snippets Linux, Unix, and Bash Snippets Other Languages Snippets Regex

DIC Chatroom Join our IRC Chat

Bye Bye Ads

Dream.In.Code 89,252 likes

Resized to 76% (was 660 x 1408) - Click image to enlarge

Like Page Be the first of your friends to like this

Resized to 76% (was 660 x 1408) - Click image to enlarge

Resized to 76% (was 660 x 1408) - Click image to enlarge

Resized to 76% (was 660 x 1408) - Click image to enlarge

Resized to 76% (was 660 x 1408) - Click image to enlarge

Resized to 76% (was 660 x 1408) - Click image to enlarge Attached File(s) (http://www.dreamincode.net/forums/index.php?app=core&module=attach§ion=attach&attach_id=21299&s=ecb12d855c8a3eb165328b32d1475a79) (CUSTOMER.dat).txt (http://www.dreamincode.net/forums/index.php? app=core&module=attach§ion=attach&attach_id=21299&s=ecb12d855c8a3eb165328b32d1475a79) (215bytes) Number of downloads: 839 This post has been edited by JackOfAllTrades: 14 December 2010 - 09:46 AM

JackOfAllTrades

Re: hotel management project Posted 14 December 2010 - 06:03 AM In what can hardly be considered a surprise, it appears this code originated from an Indian homework dumping ground (http://www.indiastudychannel.com/projects/2246-Hotel-management-C.aspx) , so we have another copy/paste robot, explaining the tack the topic has taken.

kumarrags2004

Re: hotel management project Posted 14 December 2010 - 08:24 AM hey i am a school student am i have made changes of data file handling and to a large extent and logic also.the bigger part is the entering values part and problem is data file handling not copy part.pls help

Salem_c

Re: hotel management project Posted 14 December 2010 - 10:27 AM I could ask you to read this -> http://cboard.cprogr...nt-process.html (http://cboard.cprogramming.com/c-programming/88495-development-process.html) One of the essential points of programming (which you haven't grasped yet) is to NOT code outside your ability. If your limit is say 10 lines with a 50% chance of messing up, then that is what you need to write, compile AND TEST before moving on. Slow measured progress will get it done, and help you learn how to increase the step size (say 20 lines at a time). 50% done, 100% tested is in far better shape than 100% written, 0% tested. And if you don't know how to fit something into your large program, then write a small test program to test your ideas until you do understand it. Then if you get stuck, you have something small and FOCUSSED on a specific issue to post. Because let me assure you, writing 000's of lines of code and dumping it on a forum for someone else to fix is NOT a long term strategy that will work out for you. My suggestion is you take your original source (again) and this time make smaller changes. While doing that, make sure you test and understand what it is that you're trying to achieve.

> pls if u could make the changes and post the program it would be really greatful My rate is US$100 / Hour, even if I were inclined to spend hours on the problem. Page 1 of 1

Related C++ Topicsbeta Hotel Management Project Error With Generation Of Rooms In Hotel Management Project Hotel Management System - Hotel Management System Should Be Build On C++ And I Want The Technica Hotel Management Hotel Management - Management System Hotel Management Hotel Management Program Check Function Problem With Hotel Management Program C++ Request Help For Hotel Management Prog. C++ Mysterious Error In Hotel Management Program - C

FAQ | Team Blog | Feedback/Support | Advertising

| Terms of Use | Privacy Policy | About Us

Copyright 2001-2018 MediaGroup1 LLC, All Rights Reserved A MediaGroup1 LLC Production - Version 6.0.2.1.36 Server: secure3

Sign Up

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.