b**********r 发帖数: 1 | 1 Hi, guys,
I am new to C#.
but in C++, there are a lot of function of function usage, how is done in C#?
for example:
double f(double a);
double g(double a);
typedef double (* ptr_func)(double a);
double func_integrator( ptr_func ptr1, double x0, double x1, double
precision);
this should be a very common use, is it still possible in C#? | d*r 发帖数: 238 | 2 delegate
【在 b**********r 的大作中提到】 : Hi, guys, : I am new to C#. : but in C++, there are a lot of function of function usage, how is done in C#? : for example: : double f(double a); : double g(double a); : typedef double (* ptr_func)(double a); : double func_integrator( ptr_func ptr1, double x0, double x1, double : precision); : this should be a very common use, is it still possible in C#?
| b******n 发帖数: 592 | 3 it is very easy to use. C# rulez
【在 d*r 的大作中提到】 : delegate
|
|