Thread: pointer help
View Single Post
Old Apr 4th, 2006, 5:28 PM   #57
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 824
Rep Power: 4 The Dark is on a distinguished road
Well done!

If you just want to indent by the number of levels a simple way would be:
for(int i = 0; i < level; i++)
  cout << "\t"
Just put that before printing the data. (I just copied this from your commented out bits).
The Dark is offline   Reply With Quote