Home » Community » Coffee corner » Strange program crash
Re: Strange program crash [message #39179 is a reply to message #39178] |
Sat, 23 February 2013 05:25 |
Lance
Messages: 527 Registered: March 2007
|
Contributor |
|
|
Vector<Node> *RootHeader;
Here RootHeader is a pointer to a Vector<Node> object. eg.
Vector<Node> nodes;
Vector<Node>* RootHeader=&nodes;
//or
Vector<Node>* p=new Vector<Node>();
while
Vector<Node*> RootHeader;
// here on the other hand, RootHeader if a Vector of pointer to Node objects. Vector can be thought of as dynamic array.
|
|
|
Goto Forum:
Current Time: Mon Apr 29 08:17:59 CEST 2024
Total time taken to generate the page: 0.03288 seconds
|