Created
July 24, 2010 22:04
-
-
Save mkoppanen/489018 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "FooBar.hpp" | |
FooBar::FooBar() | |
{ | |
std::cout << "constructor" << std::endl; | |
} | |
FooBar::~FooBar() | |
{ | |
std::cout << "destructor" << std::endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _FOOBAR_HPP_ | |
# define _FOOBAR_HPP_ | |
class FooBar | |
{ | |
public: | |
FooBar(); | |
~FooBar(); | |
}; | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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