Trying to use Name.size() to find out how many characters the user puts in. Name is a string::std can I not use .size for this? how can I accomplish this feat.
ErrorCode:for (i=*Name.size(); i>0; --i) { //need to bring this to main() *Reverse=*Reverse+*Name[i]; }
what is the '->' that the error is mentioned?Code:c:\documents and settings\administrator\my documents\visual studio 2005\projects\reverseit\reverseit\function.cpp(21) : error C2228: left of '.size' must have class/struct/union type is 'std::string *' did you intend to use '->' instead?




Reply With Quote