User Profile

Collapse

Profile Sidebar

Collapse
rahxephon
rahxephon
Last Activity: Sep 7 '09, 03:13 AM
Joined: Mar 18 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rahxephon
    replied to Pointer to Member Function
    in C
    Thanks for both of the reply. I have make used of the functor in my code. Thanks for the example Banfa.
    See more | Go to post

    Leave a comment:


  • rahxephon
    started a topic Pointer to Member Function
    in C

    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,
    ...
    See more | Go to post

  • rahxephon
    replied to cli::array and c++ dynamic array
    in C
    Just found the book in my local library. Will look through it and see how it goes.
    See more | Go to post

    Leave a comment:


  • rahxephon
    replied to cli::array and c++ dynamic array
    in C
    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.
    See more | Go to post

    Leave a comment:


  • rahxephon
    started a topic cli::array and c++ dynamic array
    in C

    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
    Code:
    array<int>^ data = gcnew array<int>(1000000);
    for(int i = 0; i < data->GetLength(0); i++){[INDENT]data[i] = i;[/INDENT]
    }
    is far slower...
    See more | Go to post
No activity results to display
Show More
Working...