Right, It's just example code here. The real code is exteremy big and messy, and both the ApplePie class and Apple class are based on some fundamental classes, they use someother libraries. So I can...
Type: Posts; User: pingpangpang
Right, It's just example code here. The real code is exteremy big and messy, and both the ApplePie class and Apple class are based on some fundamental classes, they use someother libraries. So I can...
I tried to generate a “applepie.dll”, which used some functions defined in a header file called ‘Apple.h’. But the compiler showed error in linking process as below:
applepie.obj : error LNK2001:...
Sorry for late response, I have just been too absorbed in programming.
I need to run the program for thousands of times, and one run may takes around 40 mins. The output file size, as I could...
Well, I used fprintf in my current program. The program opens a file frequently, write something into it, and then close it. I just wanted to see if I can improve speed by using another output...
I am using WinXP
what's the fastest way to write data into a file?
cout or fprintf?
Is there any even faster way to do this?
Ok, this problem is settled, a redefination of the operator '<' in the struct mytemp
will work.
it's simple code, but I got errors.
insert
#include <stdio.h>
#include <set>
struct mytemp
{
int a;
Could you please explain how you know it's a pointer problem?
I am working on a simulation program, which simulates a complex dynamic environment with lots of class
construction and destructions. I used <vector> to store pointers to these classes.
The...
Thank you, I solved this problem.
I used an array in my code, such as Array[i]. I initialzed the array for i= 0 to 3, but I used Array[4] by mistake. I guess in the debug mode, the Array[4] is...
I wrote a c++ code using Microsoft visual c++. Now I have some weird problems
I wrote the code on computer A, and runs well.
Then I cope it to computer B. The source code can be compiled, but...