Created
September 9, 2012 01:11
-
-
Save honux77/3681818 to your computer and use it in GitHub Desktop.
cpp simple test
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
#ifndef __EMP_H_ | |
#define __EMP_H_ | |
/** | |
This class is for testing copy constructor of cpp | |
**/ | |
class Emp | |
{ | |
private: | |
int id; | |
char* name; | |
public: | |
Emp(Emp& copy); | |
Emp(int id, const char * name); | |
void show() const; | |
void set(const char * name, int id=-1); | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment