Redhead and Valmont, Thank you both for yourhelp with trying to get this program running. Unfortunately I could not work with vectors b/c Icould not find out how to make the char vector hold more then one value? But , i did go back to orignal code and worked it out. What my whole problem was is that I was not creating a new struct to add data too.
Code:
if(found==0)
{
newTable[codeCntr+1].code=codeCntr+1;
newTable[codeCntr+1].key=buffer;
//strcpy(buffer,emptyArray);
tempString=c;
cout<<"in !found statement" <<endl;
cout<<newTable[codeCntr+1].code<<"<--added to dictionary"<<endl;
cout<<newTable[codeCntr+1].key<<"<--added to dictionary"<<endl;
codeCntr++;
strcpy(buffer,emptyArray);
}
I know this does not make sense most likely, but it was just an elementary item such as not creating a 'new' struct that prevented this guy from running right. I will post the code revised and working correctly sometime next week. I really hope you two did not get overally envolved with translating the code from Mark Nelson b/c I got mine to work, thank you again and take care. Is there anything I can do to help you guys out ,besides vote for your reputation? (Can't send you guys money b/c i'm poor college dude).