Original Post
hello all, first post... I am having a problem with an example in a book i'm reading (programming principles and practice - stroustrup) I want to compare 2 vectors of words in a loop... vectorwords[2]; words[0]="dog"; words[1]="cat"; words[2]="human"; and vectorbadwords[2]; badwords[0]="hell"; badwords[1]="damn"; so i'll loop through the values if i find a bad word ill replace it with "bad word" if not, print words... I tried using a nested loop but it didn't quite work out as planned... If you want me to post the code I had, I will when I wake up...