Umm,
570:
turns[foundCount].up = temper.substr( temper.find( "=" )+1,temper.size ( ) );
574:
turns[foundCount].left = temper.substr( temper.find( "=" )+1,temper.size ( ) );
578:
turns[foundCount].right = temper.substr( temper.find( "=" )+1,temper.size ( ) );
582:
turns[foundCount].down = temper.substr( temper.find( "=" )+1,temper.size ( ) );
I'm almost 100% positive that the problem is that up,down,left,right were declared as int and i'm trying to put a std::string into it so i'm messing around with that now.
EDIT: When ever i make the declaration of the struct variables to std::string then i compare values using "==" it says:
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\zombie attack!\zombie attack!\main.cpp(540) : error C2678: binary '==' : no operator found which takes a left-hand operand of type 'std::string' (or there is no acceptable conversion)
1> could be 'built-in C++ operator==(const char [2], const char [2])'
1> c:\program files\microsoft sdks\windows\v6.0a\include\guiddef.h(192): or 'int operator ==(const GUID &,const GUID &)'
1> while trying to match the argument list '(std::string, const char [2])'
and when i try to convert temper it says:
1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\zombie attack!\zombie attack!\main.cpp(571) : error C2440: '<function-style-cast>' : cannot convert from 'std::string' to 'char'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
I'm poetry in motion