C++中對象與成員函數的聯繫

#include <iostream> using namespace std; class Test { public: void func() { cout << "test" << endl; } }; int main() { Test a; a.func(); return 0; }
相關文章
相關標籤/搜索