-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lee
committed
Apr 20, 2018
1 parent
8a26796
commit eaaeecd
Showing
3 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#include <iostream> | ||
|
||
extern const int finger = 1; //const 声明的外部变量必需使用extern才生效 | ||
extern const int finger = 1; //const 声明的外部变量必需使用extern才生效 | ||
|
||
namespace pers { | ||
void show_my_name(void) | ||
{ | ||
std::cout << "liwei\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef __FILE_H__ | ||
#define __FILE_H__ | ||
|
||
namespace pers { | ||
void show_my_name(void); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters