How can i release the memory?I write a program like this: [code]class OBJ { public: OBJ(int n):a(n){cout<<"ctor"<<'\n'; } ...
a pointer to a function ?Hi, this code is confusing me, I think the code is illegal, but it can works. Can any body explains ...
Is this code look weird?I wrote a class and use the vector<> container as members of this class. I have never see this code ...
How to learn OpenGL? I'm planning to write apps using opengl, just to illustrate some demos. Is there any good resour...
memory alocated problem[quote]You should address the tmp reference too.[/quote] why tmp reference is not appropriate here?...