Home > Software engineering >  Type string variable assignment and stitching
Type string variable assignment and stitching

Time:09-22

The diagram below, I face in the constructor of a class type string initialization, why not successful? I copied this project, there are no problems in engineering before!

CodePudding user response:

Did not have a perception problem, Rebuild try!

CodePudding user response:

I also feel puzzled, how can't try in this project, the project is I copied directly, this code doesn't change, don't know why these type string variable assignment will be like this,,

CodePudding user response:

13,14,15 line with wide byte character, the 16 rows with multi-byte character back
Is it possible that the reason here

CodePudding user response:

16 rows with _T ("... Try ")

CodePudding user response:

Unified whole string added _T (" ")

CodePudding user response:

1, confirm your project is Unicode or more bytes
2, the string only supports the standard library multi-byte
3, string concatenation, if=number on the right side of the first class objects
String STR=string (" 123 ") + "5555" + strDev;

CodePudding user response:

Can try to shut down the program again open VS, rebuild

CodePudding user response:

The string class as if does not support uincode?

CodePudding user response:

Lz to engineering properties, instead of a multi-byte character set, compile again
  • Related