All pastes #185614 Raw Edit

Mine

public text v1 · immutable
#185614 ·published 2006-09-29 03:41 UTC
rendered paste body
// in bar.h
class bar {
private:
  char* endofroad = 'a';
public:
  char* getEndofRoad() { return endofroad; };
};

// in foo.h
class foo {
private:
  bar* test;
public:
  char* getTest() { test->getEndofRoad(); };
};

// in test.cpp
#include <iostream>
#include "bar.h"
#include "foo.h"

using namespace std;

int main( int argc, char* argv[] ) {

  cout << foo::getTest() << endl;

  return 0;

}