Showing results 1 to 40 of 62
Search took 0.01 seconds; generated 1 minute(s) ago.
Posts Made By: freemind
Forum: C++ Jun 15th, 2006
Replies: 13
Views: 1,674
Posted By freemind
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
Posted By freemind
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
Posted By freemind
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
Posted By freemind
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
Posted By freemind
Re: Real-time simulation problem

I found a plase to paste it: http://rafb.net/paste/results/Jqrme337.html
Forum: C++ Jun 15th, 2006
Replies: 13
Views: 1,674
Posted By freemind
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
Posted By freemind
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
Posted By freemind
Re: Error in class constructor

Perhaps the second :-) Thanks!
Forum: C++ May 17th, 2006
Replies: 5
Views: 1,431
Posted By freemind
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
Posted By freemind
Help 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
Posted By freemind
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
Posted By freemind
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
Posted By freemind
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
Posted By freemind
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
Posted By freemind
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
Posted By freemind
Re: Deitel's "C++ How To Program" exercise 2.18

#include<iostream>
#include<string>
using namespace std;

class employee
{
string first;
string last;
int salary;
Forum: C Aug 9th, 2005
Replies: 5
Views: 1,969
Posted By freemind
Re: Global Variables help

Maybe something like: extern char mir[200]; in test.h can solve your problem ?
Forum: C++ Aug 9th, 2005
Replies: 5
Views: 1,797
Posted By freemind
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: 7
Views: 2,829
Posted By freemind
Forum: C++ Aug 8th, 2005
Replies: 6
Views: 2,950
Posted By freemind
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
Posted By freemind
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
Posted By freemind
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
Posted By freemind
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
Posted By freemind
Forum: C++ Aug 4th, 2005
Replies: 4
Views: 1,022
Posted By freemind
Re: help please, quick !!!! SC included

include conio.h and use getch();
Forum: C Aug 3rd, 2005
Replies: 1
Views: 1,209
Posted By freemind
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
Posted By freemind
Re: is dave sinkula a little boy?

Since everybody is against the idea I'll play for it. Yes, that is Dave! (I'm searching for supporters!:cheesy: )
Forum: C++ Aug 3rd, 2005
Replies: 4
Views: 1,453
Posted By freemind
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
Posted By freemind
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
Posted By freemind
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
Posted By freemind
Re: Please I need help formatting an output file and sorting the names!

The sorting you can do in many ways. One way could be putting all the data in let's say a class and then sort the vector of objects with ssort(), qsort() or whatever function you want. Other way...
Forum: Pascal and Delphi Aug 2nd, 2005
Replies: 3
Views: 3,557
Posted By freemind
Re: Can I stop the execution of the program in Dev Pascal for a certain amount of tim

The last time when I used Pascal was ages ago, but I do remember a function delay(), i.e. delay(6); gives u a delay from 6 seconds. Maybe you need to use Crt (or if there is a new name for it) to get...
Forum: Assembly Aug 2nd, 2005
Replies: 1
Views: 3,201
Posted By freemind
Re: Best Book on Assembly?

The Art of Assembly is a book that I find quite nice, understandable and deep enough.
Forum: C++ Aug 2nd, 2005
Replies: 15
Views: 3,266
Posted By freemind
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
Posted By freemind
Re: require a little help with first program with class's

#include <iostream>
#include <string>

using namespace std;

class Account {
public:
Account(): balance(0.0) {};
inline bool checkpass(string number, string password) {
// some way...
Forum: C++ Aug 2nd, 2005
Replies: 2
Views: 1,038
Posted By freemind
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
Posted By freemind
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
Posted By freemind
Re: large number division

Rashakil Fol, you know what I mean.
Forum: C Aug 1st, 2005
Replies: 6
Views: 1,334
Posted By freemind
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
Posted By freemind
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.
Showing results 1 to 40 of 62

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:49 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC