-
February 3rd, 2013, 04:58 AM
#1
error C2440: '=' : cannot convert from 'const char *' to 'char *
Hi,
I want to do following , but it gives error C2440: '=' : cannot convert from 'const char *' to 'char *.
............
string str("VRML");
char *sss[];
sss[0]=str.c_str();
cout<<"SSS:"<<sss[0]<<endl;
............
Is there anybody who have experienced this problem?
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
|