/*************************************************************************** |FILENAME narytree.txt| N-ary Tree Traversal Logic ------------------- begin : |DATE 23/2/2005| copyright : (C) |YEAR 2005| by |Co-AUTHOR K. Manigandan| email : |EMAIL manik762002@yahoo.com| ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #include struct NODE { int Child; int Friend; int Parent; int PayLoad[30]; } void main(void) { int NumOfNodes = 0, tempIndex = 0; struct NODE naryTree[10] = {{ 2,-1,-1,"a"}, {5,3,1,"b"},{7,4,1,"c"},{},{} } whie (tempIndex < 10) { cout << tempIndex << " th data is :"; cout << naryTree[tempIndex].PayLoad<