Skip to content

Instantly share code, notes, and snippets.

@duyet
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save duyet/1547879324a8850495ae to your computer and use it in GitHub Desktop.

Select an option

Save duyet/1547879324a8850495ae to your computer and use it in GitHub Desktop.
#include "ex.h"
#include <iostream>
using namespace std;
class ex
{
void Chao()
{
cout<<"Hello";
}
};
#ifndef EX_H
#define EX_H
class ex
{
void Chao();
};
#endif
#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