Skip to content

Instantly share code, notes, and snippets.

@mkoppanen
Created July 24, 2010 22:04
Show Gist options
  • Save mkoppanen/489018 to your computer and use it in GitHub Desktop.
Save mkoppanen/489018 to your computer and use it in GitHub Desktop.
#include <iostream>
#include "FooBar.hpp"
FooBar::FooBar()
{
std::cout << "constructor" << std::endl;
}
FooBar::~FooBar()
{
std::cout << "destructor" << std::endl;
}
#ifndef _FOOBAR_HPP_
# define _FOOBAR_HPP_
class FooBar
{
public:
FooBar();
~FooBar();
};
#endif
#include "FooBar.hpp"
int main()
{
FooBar test;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment