This commit is contained in:
xliu79
2020-07-18 17:09:29 +08:00
parent 5354c10742
commit 31c5da6aa2
28 changed files with 674 additions and 0 deletions

View File

@@ -0,0 +1 @@
extern const int ext=12;

View File

@@ -0,0 +1,11 @@
#include<iostream>
/**
* by 光城
* compile: g++ -o file const_file2.cpp const_file1.cpp
* execute: ./file
*/
extern const int ext;
int main(){
std::cout<<ext<<std::endl;
}

View File

@@ -0,0 +1 @@
int ext;

View 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;
}