View Single Post
Old 03-24-2003, 07:04 PM   #3 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
snippets

Declaring a string vector is simple:
Code:
vector <string>vecStringTabooWords;
The size of a vector is determined by: vecStringTabooWords.size();

So iterating a vector goes like:
Code:
for(int i = 0; i < vecStringTabooWords.size(); i++)
Comparing goes like: vecStringTabooWords.[i] ==some_string

Well, I don't know what else to type. Just post the code and the error messages if any.
Valmont is offline   Reply With Quote