A.cpp void fun1(){ static int num = 0; //靜態區域變數 num++; std::cout << num << std::endl; } // B.cpp int main(){ fun1(); //輸出1 fun1(); ...
確定! 回上一頁