Skip to content

Instantly share code, notes, and snippets.

@segfo
Created October 11, 2015 12:22
Show Gist options
  • Save segfo/a827df8ffcb1d0e70ba2 to your computer and use it in GitHub Desktop.
Save segfo/a827df8ffcb1d0e70ba2 to your computer and use it in GitHub Desktop.
#include "TestClass.h"
#include<iostream>
using namespace std;
TestClass::TestClass(){}
TestClass::TestClass(char *s)
{
this->s = s;
}
TestClass::~TestClass()
{
}
void TestClass::Print()
{
if (this->s != nullptr) {
cout << hex << this << ":";
cout << &this->s << " : ";
cout << &this->sn << ":";
cout << this->s << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment