CPlusPlusThings/english/basic_content/const/extern_const/const_file2.cpp
2020-07-18 17:09:29 +08:00

12 lines
183 B
C++

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