執行 ❯
建立您
自己的
網站
×
更改方向
更改主題,深色/淺色
前往 Spaces
#include <iostream> using namespace std; // Global variable x int x = 5; void myFunction() { // We can use x here cout << x << "\n"; } int main() { myFunction(); // We can also use x here cout << x; return 0; }
5
5