typedef std::vecotr<MyClass*> MyVec; typedef std::map<string, MyVec> MyMap; MyVec* myVec1 = new MyVec(); myVec1->push_back(new MyClass("1_1"));...
Salem, thank you very much for the explanation. Shabbir and others, also thanks for your comments.
Salem, do you mean if the cpp file does not include the corresponding header file in the first line (e.g. include other .h files, then its...
Salem, thanks for your answer. But it seems you explained the advantage of making the header file "self-contained". My question is: Why "a...
In many articles, there is such a coding guideline: >> On a .cpp file always include the corresponding header file first, like this: // This...
I didn't find a good place to submit my thread. Hope I can get some answers here. Thanks in advance! --------------------- When I power on the...
Bernoulli number Is there any resource where I can get the C program for Bernoulli number algorithm? Thanks.
Separate names with a comma.