Forum: C++ Jun 15th, 2006 |
| Replies: 13 Views: 1,674 Re: Real-time simulation problem Lesson learned but unfortunately the fact persists for our very case. Since I have the 2 options now - either to rewrite everything or to try to correct it as it is I'm a bit more for the second... |
Forum: C++ Jun 15th, 2006 |
| Replies: 13 Views: 1,674 Re: Real-time simulation problem I will read on this topic, thanks.
If you are so kind to share these things with me I could use the time to correct the outlook of the program. |
Forum: C++ Jun 15th, 2006 |
| Replies: 13 Views: 1,674 Re: Real-time simulation problem Generally you're right about the testing. I can't think of a way, though, to check every function, especially when one function often uses the other from the same class and executable code is... |
Forum: C++ Jun 15th, 2006 |
| Replies: 13 Views: 1,674 Re: Real-time simulation problem liblifts.h is the dirty worker in this case so this is the place. I presume that the Elevator class is the primary and probably almost only source of errors. The open_doors() function and the move()... |
Forum: C++ Jun 15th, 2006 |
| Replies: 13 Views: 1,674 |
Forum: C++ Jun 15th, 2006 |
| Replies: 13 Views: 1,674 Re: Real-time simulation problem They will make no sense without the other code. Besides the program is divided into files, besides the function and namespace division.. |
Forum: C++ Jun 15th, 2006 |
| Replies: 13 Views: 1,674 Real-time simulation problem Hi everybody! I recently wrote a little simulation program, that simulates a real-time elevator system with 3 elevators. Since the code is around 530 lines I presume it is not a good idea to paste it... |
Forum: C++ May 17th, 2006 |
| Replies: 5 Views: 1,431 |
Forum: C++ May 17th, 2006 |
| Replies: 5 Views: 1,431 Re: Error in class constructor Default constructor i don't need in this case, because i need to set up some predifined values for buttons and states. I'm still a bit confused how to edit my code so it's working, though. As for... |
Forum: C++ May 17th, 2006 |
| Replies: 5 Views: 1,431 Error in class constructor Hi to all! I'm writing a simple simulation program for elevators but i get a problem, namely:
elevator.cpp: In constructor `Elevator::Elevator(int)':
elevator.cpp:41: error: no matching function... |
Forum: C++ Aug 16th, 2005 |
| Replies: 8 Views: 1,241 Re: Need Help,plz...>< Don't forget that C++ gives you the opportunity to use string instead of char[]. Combining this with the usage of find() and substr() can solve your problems. |
Forum: C++ Aug 16th, 2005 |
| Replies: 8 Views: 2,095 Re: Why is VC++ 2005 beta2 telling me this The documentation of your compiler keeps the answers to many "secrets". Besides ALPHA and BETA releases of programs carry these names for the sole reason to say that they are still unfinished. |
Forum: C++ Aug 16th, 2005 |
| Replies: 13 Views: 1,617 Re: Help ME temp *= num--; is equivallent to: temp = temp*(num-1);
temp += 5; is equivallent to: temp = temp + 5;
The shorthand operators are basic and useful, due to their simplicity and length. |
Forum: C++ Aug 15th, 2005 |
| Replies: 13 Views: 1,617 Re: Help ME The simplest way is to use a loop. A for(unsigned long i=user_input; i > 1; i--); could be one solution. |
Forum: C++ Aug 13th, 2005 |
| Replies: 10 Views: 1,923 Re: help plz! Then consider using another compiler.;) If you want to start over when something in the user's choice goes wrong you can either provide an ethernal loop around the code that should be performed over... |
Forum: C++ Aug 13th, 2005 |
| Replies: 54 Views: 9,629 |
Forum: C Aug 9th, 2005 |
| Replies: 5 Views: 1,969 |
Forum: C++ Aug 9th, 2005 |
| Replies: 5 Views: 1,797 Re: strings in c Since strings in C are arrays of characters and an array is something quite trivial to programming languages, you don't need to import libraries to get strings to work. You can make your life easier,... |
Forum: C++ Aug 8th, 2005 |
| Replies: 6 Views: 2,950 Re: How do you build the dot in calculator. I'm reading your post and I can't really get what the problem is, especially with the decimal.. The reminder you can find using the % operator. More information and details you can find here:... |
Forum: C++ Aug 8th, 2005 |
| Replies: 6 Views: 1,604 Re: Vc++ programmin. Although it's not for VC++ you can look through the code of cyber_azis and find some answers. There is a Borland library adapted for Dev-Cpp (another C++ compiler) that gives you the opportunity to... |
Forum: C Aug 8th, 2005 |
| Replies: 1 Views: 1,094 Re: problem again Simple. Always get stuff from the user as a string. Then check it and get from it what you need. If you don't find it - shoot an error and let a new input be given. There are some lines of code that... |
Forum: C Aug 4th, 2005 |
| Replies: 6 Views: 953 Re: need u help No. std is to iostream.h (cstdio.h respectively) but namespaces are just logical units holding whatever belongs in a logical way together.
Ex.:
namespace simple_operations {
double... |
Forum: C++ Aug 4th, 2005 |
| Replies: 4 Views: 1,022 |
Forum: C++ Aug 4th, 2005 |
| Replies: 4 Views: 1,022 |
Forum: C Aug 3rd, 2005 |
| Replies: 1 Views: 1,209 Re: lib tiff help-newbie If you're so kind to post some errors that you get, as well as a brief information about the platform that you're trying to install/use it on, maybe someone can answer you..;) |
Forum: C++ Aug 3rd, 2005 |
| Replies: 4 Views: 999 |
Forum: C++ Aug 3rd, 2005 |
| Replies: 4 Views: 1,453 Re: need help wit proj Look here, maybe this will help you a bit also: http://www.devarticles.com/c/a/Cplusplus/Using-MFC-in-Cplus-Part-2-Menus/7/ |
Forum: C++ Aug 3rd, 2005 |
| Replies: 7 Views: 1,432 Re: need an imagination i suppose. You can write a program to create all these things. Just a random generator for the quantities. The names you can find in adventure books for children, comics, old movies/games or.. in your... |
Forum: C++ Aug 3rd, 2005 |
| Replies: 4 Views: 1,453 Re: need help wit proj What you're writing looks a bit more like pure C then C++. You're obviously using headers imported from Pascal to C and C++ respectively (the names of the functions you're using are calling some... |
Forum: C++ Aug 2nd, 2005 |
| Replies: 17 Views: 3,068 |
Forum: Pascal and Delphi Aug 2nd, 2005 |
| Replies: 3 Views: 3,557 |
Forum: Assembly Aug 2nd, 2005 |
| Replies: 1 Views: 3,201 |
Forum: C++ Aug 2nd, 2005 |
| Replies: 15 Views: 3,266 Re: Visual C++ error Gillzor, the problems with the games are in general 2 - insufficient hardware recources (you're on the limit, but I don't think this is your problem) and outdated drivers for video/monitor/directx... |
Forum: C++ Aug 2nd, 2005 |
| Replies: 5 Views: 2,103 |
Forum: C++ Aug 2nd, 2005 |
| Replies: 2 Views: 1,038 Re: C++ Help Since both programs require relatively low knowledge over the language you can try to find a few tutorials and go over them. This doesn't require too much time and it'll get you over the basics. I... |
Forum: C++ Aug 2nd, 2005 |
| Replies: 3 Views: 1,416 Re: FLOATING POINT.......Please double in C++ has a 64-bit precision. long double has the same I think, which leaves you with the opportunity to use either double, or if it's not good enough for you, you can use something like... |
Forum: C++ Aug 1st, 2005 |
| Replies: 11 Views: 4,920 |
Forum: C Aug 1st, 2005 |
| Replies: 6 Views: 1,334 Re: HTTP protocol help I'm giving you the "I wash my hands" type of answer, namely a link to a tutorial but I hope it would prove to be useful, since it looks like covering all the important stuff.... |
Forum: C++ Aug 1st, 2005 |
| Replies: 15 Views: 3,266 Re: Visual C++ error It is quite obvious what you wish. Maybe if you try to answer some of the questions you were asked somebody will be able to help you. |