update dir

This commit is contained in:
light-city
2019-07-14 16:52:20 +08:00
commit 57627e0b75
30 changed files with 714 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;
}