mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-10 14:05:28 +08:00
update
This commit is contained in:
11
basic_content/const/extern_const/file2.cpp
Normal file
11
basic_content/const/extern_const/file2.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include<iostream>
|
||||
/**
|
||||
* by 光城
|
||||
* compile: g++ -o file file2.cpp file1.cpp
|
||||
* execute: ./file
|
||||
*/
|
||||
extern int ext;
|
||||
int main(){
|
||||
|
||||
std::cout<<(ext+10)<<std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user