Created
February 23, 2012 05:07
-
-
Save Santarh/1890445 to your computer and use it in GitHub Desktop.
Yaba code
This file contains hidden or 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 <vector> | |
class Foo; | |
class Manage | |
{ | |
private: | |
std::vector<Foo> m_vec; | |
public: | |
Manage(){}; | |
~Manage(){}; | |
void PushObj( Foo& obj ){ m_vec.push_back(obj); }; | |
}; | |
int main() | |
{ | |
Manage manager; | |
Foo hoge; | |
manager.PushObj(hoge); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment