|
-
May 6th, 2003, 01:03 AM
#1
why i can't compile this in visual c++ 6
#include <cstring>
class Text
{
public:
void bad( const string &parm ) const;
private:
char *_text;
};
void Text::bad( const string &parm ) const
{
_text = parm.c_str();
for( int ix = 0; ix < parm.size(); ++ix )
_text[ix] = parm[ix];
}
int main( int argc, char **argv)
{
return 0;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|