avatar
function of function in C#?# DotNet - 窗口里的风景
b*r
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#?
avatar
d*r
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#?

avatar
b*n
3
it is very easy to use. C# rulez

【在 d*r 的大作中提到】
: delegate
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。