string &str = *it;
if(it->find(".obj"))
{
cout << " Found Obj ! " << endl;
//Draw Graphics
}
but string::Find can have character matches rather then the hole word itself qouted from
http://www.cplusplus...ng/string/find/
string[color=#000000][font=verdana, arial, helvetica, sans-serif]to be searched for in the object. The entire content of [/font]str[color=#000000][font=verdana, arial, helvetica, sans-serif]
must be matched in some part of the string to be considered a match.[/font][/quote]
I really don't know if there is a way to hack it so it reads the hole word for it to match then just .o or b or j
Has anyone got any experience with this and could give me some hints/tips/anything else.
//for every occurence of .obj check if its not equal the string non value
if(it->find(".obj") != std::string::npos)
{
//then output to cmd that its found obj
cout << "Found .Obj" << endl;
}
figured it out