text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

writeString212.cpp

Go to the documentation of this file.
00001 
00018 struct Node
00019 {  char  item;
00020    Node *next;
00021 }; // end Node
00022 
00023 Node *stringPtr;
00024 
00030 void writeString(Node *stringPtr)
00031 {
00032    if (stringPtr != NULL)
00033    {  // write the first character
00034       cout << stringPtr->item;
00035       // write the string minus its first character
00036       writeString(stringPtr->next);
00037    }  // end if
00038 }  // end writeString

Generated on Sun Aug 27 13:05:37 2006 for AWLogo by  doxygen 1.4.6