填空題

設(shè)文件f.cpp中的一個(gè)函數(shù)要訪問在另一個(gè)文件中定義的int型變量x,則在f.cpp中x應(yīng)定義為()

答案: extern int x;
微信掃碼免費(fèi)搜題