i have a question......i have a program that i am using two dimensional arrays to store words. for example for an array[10][10], the first subscript will contain a word and the second subscript will contain the characters of trhe word. i have decided that i would rather be using a linked list instead of an array, is there any way to take the words stored in each subscript and put them into one place in a linked list. here is some example code that i came up with trying to do this.
#include <iostream.h>
#include <fstream.h>
#include <string>
struct StackFrame
{
char data;
StackFrame *link;
};
typedef StackFrame* StackFramePtr;
void main()
{
char array[1][5];
array[0][0] = 'h';
array[0][1] = 'e';
array[0][2] = 'l';
array[0][3] = 'l';
array[0][4] = 'o';
StackFramePtr top;
top = new StackFrame;
top->data = array[0];
top->link = NULL;
cout << top->data;
}