Skip to content

Instantly share code, notes, and snippets.

@honux77
Created September 9, 2012 01:11
Show Gist options
  • Save honux77/3681818 to your computer and use it in GitHub Desktop.
Save honux77/3681818 to your computer and use it in GitHub Desktop.
cpp simple test
#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