sorry about that must have pressed enter or something, my message was posted before i'd finished! here's the code i need help with
main()
{
BSTreeADT t;
char buffer[15];
t = createBSTree();
/*this is an example of manual input into the program
t = insertItem(createItem("apples"), t);
however I want the "apples" string to be entered by the user at the following prompt
*/
while (buffer != "****last")
{
printf("Enter first word:");
scanf("%s", buffer);
t = insertItem(createItem(buffer), t);
}
}
please, please help I keep getting a segmentation fault and I am in danger of hurting my computer!
andy d