Type: Posts; User: hajimeml
Search took 0.01 seconds.
September 4th, 2011, 09:55 PM
Sorry for the misunderstanding. Perhaps I should frame my questions the other way. I want to know:
1. Am I using fflush correctly?
2. Do I have to use other command(s) besides fflush?
September 4th, 2011, 09:15 PM
Hello. I have a C program which does simulation and saves the data into five different data files at each iteration of a while loop. However, when I stopped the program, I noticed that the files have...
August 13th, 2009, 08:25 PM
The scitools's Understand software seems to be what I need eventually. I will give it a try. Thank you very much for letting me know.
August 11th, 2009, 08:54 PM
I am using Borland C++ Builder Professional 6.
August 11th, 2009, 08:59 AM
Hello. I am trying to understand and modify a complex programs written by others. I found the function which I need to modify and would like to get a list of caller(s) to this function. Given that...
Sorry there was a typo in the class name. Could anybody please check my understanding?
As far as I know, due to the private inheritance relationship mentioned in the previous post, all public members of the base class CListManager become private members of class CGGen. However, CGGen...
Thanks for the suggestion, GNiewerth. I found that in GGen.h,
class CGGen : private CListManager<CStep>, public COtherClass
There are hundreds of files in the project but as far as I am aware of, there is only one definition of GetNumOfItems in CListManager. Searching the class explorer in Borland Builder C++ also returns...
I only found:
template <class T>
Hello. Could anybody please clarify?
I came across a file called GGen.cpp. Inside it, there is a statement:
int i,j,nos = GetNumOfSteps();
I guess only nos is initialized to a value returned...
June 28th, 2009, 12:55 AM
Now I understood. Thank you all of you for your help.
June 22nd, 2009, 10:36 AM
laserlight, thank you very much for your help. Could you please clarify the following?
I am still a bit confused.
>Get the WPtr, of type C3*, from the PGElement:
June 20th, 2009, 01:01 AM
Thanks for the very interesting example and explaination. I found another variation of the code in the program. Here, the type of A-D are as follows:
June 19th, 2009, 08:50 PM
By the way, what are the advantages of writing the code this way? It seems that the author of the program uses this method to make a pointer (a private member) of one class to point to another class...
June 19th, 2009, 08:31 PM
June 19th, 2009, 12:29 PM
Hello. I have a question about the member access operator ->
I am trying to understand a code of this format: A->B->C->D.
Does it means A->(B->(C->D)) or ((A->B)->C)->D)?
In the former case, I...
4) Why are you using pointers and new ?????
I used new because when I encountered a bug, somebody suggested that I need to initialize the pointers. So, I thought I could use new to retrieve the...
Thank you for your example. In the sample code, both ptr1 and ptr2 have three elements. The program I try to modify seems to read data from several data files. It seems that the previous programmers...
I have two pointers pointing to two different double vectors. Could anybody please let me know the proper way of assigning an element from a vector to the other? Here is a sample code. Please note...
Thank you for your answers.
April 30th, 2009, 11:57 AM
No. I declared it under public in the class definition of CRemote (inside the .h file).
April 30th, 2009, 11:44 AM
No. Do you mean I have to put:
at the beginning of CStation.h? I just tried and got four error messages (please note that the wordings are not exact as I translated from...
April 30th, 2009, 07:53 AM
Thanks for the reply. As the program is too complex, I enclose the key parts only. Please note that the program was written in Borland C++ Builder 6.
April 29th, 2009, 08:25 PM
I want to share variables/functions between classes. The classes are defined in different .h files. I read that the friend function allows us to do that but I keep getting error messages saying...
Click Here to Expand Forum to Full Width