delete basic_content/const/READ.md extern in line 46
This commit is contained in:
parent
e290e51a4b
commit
f352c05ce4
@ -51,7 +51,7 @@ int ext
|
|||||||
* compile: g++ -o file file2.cpp file1.cpp
|
* compile: g++ -o file file2.cpp file1.cpp
|
||||||
* execute: ./file
|
* execute: ./file
|
||||||
*/
|
*/
|
||||||
int ext;
|
extern int ext;
|
||||||
int main(){
|
int main(){
|
||||||
std::cout<<(ext+10)<<std::endl;
|
std::cout<<(ext+10)<<std::endl;
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ int main(){
|
|||||||
|
|
||||||
```c++
|
```c++
|
||||||
//extern_file1.cpp
|
//extern_file1.cpp
|
||||||
const int ext=12;
|
extern const int ext=12;
|
||||||
//extern_file2.cpp
|
//extern_file2.cpp
|
||||||
#include<iostream>
|
#include<iostream>
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user