static關鍵字作用

apple.h中定義了方法: static void testFunction(); apple.cpp實現了該方法 static void testFunction() { std::cout<<"hello,i am apple!"<<std::endl; } /Users/taohu/project/self_study/tutorial_04/src/apple.h:9:13:
相關文章
相關標籤/搜索