SyntaxFix
Write A Post
Hire A Developer
Questions
You shouldn't use strcpy() to copy a std::string, only use it for C-Style strings.
strcpy()
std::string
If you want to copy a to b then just use the = operator.
a
b
=
string a = "text"; string b = "image"; b = a;