![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
writeString212.cppGo 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 |