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
相關文章
相關標籤/搜索