Click here to Skip to main content
15,900,258 members

Comments by Prasad A (Top 3 by date)

Prasad A 27-Sep-10 6:38am View    
Thank you for your helpful suggestions:)
Prasad A 27-Sep-10 6:30am View    
Thank you... it was helpful :)
i have one more query concerned with the above program.
Before freeing the pNode, it is required to free pNode -> p and pNode -> myMap
delete pNode -> p would work fine but how do i clear the myMap contents.
Does the pNode -> myMap.clear() do the work for me or do i need to free individual elements from map using pNode -> myMap.erase() function.
Prasad A 15-Jun-10 8:11am View    
Since std::set is an associative container, does it mean that it is not possible to print the the contents unsorterd(in input sequence) ??