Home > Back-end > What we call the string class in C and what is the difference between the string class?
What we call the string class in C and what is the difference between the string class?
Time:10-22
in the MSDN only String class, but I always use the syntax String is a What do you want to uppercase?
CodePudding user response:
String is in the STL string class, the string is a string class in VCL,
Can use the string and string class in c + + Builder Vc + + can be used in the string class Can use in Delphi String class
The c + + Builder, default VCL engineering can directly use the String class, if you want to use the String class, need to like this:
# include & lt; String> using namespace std;
Then you can use, such as: String a;
CodePudding user response:
To learn, ha ha
CodePudding user response:
Supplement: String prototype defined in sysmac. H file... Depending on the c + + Builder system definition can be specified or
# if defined (_DELPHI_STRING_UNICODE) Typedef UnicodeString String;// # the else Typedef AnsiString String;// # endif
In addition the STL string class for wstring wide
CodePudding user response:
CodePudding user response:
CodePudding user response:
Visual this post will be boondoggle,
CodePudding user response:
Demon elder brother, why have a lot of VC in BCB Posting?
CodePudding user response:
There are many beginners can't distinguish the concept of c + + and VC/c + + Builder, understanding them,
CodePudding user response:
Oh ~ with all refer to the MSDN! VC and MFC besides cstrings class... Does a String class... At first glance will think is corresponding to c + + Builder
CodePudding user response:
String only in Delphi, and used by c + + Builder VCL is all Delphi move in the past, most of its source code is pas files, also is what Pascal language, so in theory is to be able to compile BCB now basically all Pascal, and BCB is essentially to c + +, so in order to correspond to the Delphi String class, make an AnsiString type in BCB, namely String class, and it is the default VCL components, careful is not hard to find, a lot of component properties are of this type, because the BCB can compile the Delphi program, so you also can be operated by the String class String, in the VC is not this thing, of course, you can make a, VC is used in the standard c + + String class, which is a String, because the String is language, the use of BCB c + + and Pascal two languages, so can also be used as in VC in BCB String, just don't forget to # include & lt; String. H> And don't know is there any help to you,