User Profile
Collapse
-
Thanks for both of the reply. I have make used of the functor in my code. Thanks for the example Banfa. -
Pointer to Member Function
Trying to built a program but meet some problem in it about the pointer to use.
I have created this
...Code:double runge_kutta_4th(double(*equation)(double,double), double initial, double t, double dt){ double k1 = equation(initial, t); double k2 = equation(initial + 0.5 * k1 * dt, t + 0.5 *dt); double k3 = equation(initial + 0.5 * k2 * dt, t + 0.5 *dt); double k4 = equation(initial + k3 * dt, -
Just found the book in my local library. Will look through it and see how it goes.Leave a comment:
-
Thanks for the reply. I am new to programming in windows, so I am trying out few things for the program. Will try to use HeapCreate to see how it goes.Leave a comment:
-
cli::array and c++ dynamic array
I am new to CLI/c++ and have some question on the 2 type of array stated above. I am doing some numerical calculation on large number of sample and face some problem with the speed on accessing the data in array.
As example, accessing data from
is far slower...Code:array<int>^ data = gcnew array<int>(1000000); for(int i = 0; i < data->GetLength(0); i++){[INDENT]data[i] = i;[/INDENT] }
No activity results to display
Show More
Leave a comment: