c++传递函数看成对象传递

c++中函数看成对象来传递,相似c#中的指针操做如:html #include <iostream> using namespace std; int tst(int a){ cout<<a<<endl; return 5; } //类型 +(* +变量名)(+ 函数须要参数) void BigTest(int (* test)(int a)){ int c= test
相关文章
相关标签/搜索