Last active
August 29, 2015 14:16
-
-
Save duyet/1547879324a8850495ae to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #include "ex.h" | |
| #include <iostream> | |
| using namespace std; | |
| class ex | |
| { | |
| void Chao() | |
| { | |
| cout<<"Hello"; | |
| } | |
| }; | |
This file contains hidden or 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
| #ifndef EX_H | |
| #define EX_H | |
| class ex | |
| { | |
| void Chao(); | |
| }; | |
| #endif |
This file contains hidden or 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
| #include "ex.h" | |
| #include <iostream> | |
| using namespace std; | |
| /* run this program using the console pauser or add your own getch, system("pause") or input loop */ | |
| int main() { | |
| Chao t = new ex(); | |
| t.Chao(); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment