String 和 string 的区别是什么?
我在MSDN上看到的是:
Platform SDK: Windows User Interface
String
The String structure depicts the organization of data in a file-version resource. It contains a string that describes a specific aspect of a file, for example, a file's version, its copyright notices, or its trademarks.
This structure is not a true C-language structure because it contains variable-length members. This structure was created solely to depict the organization of data in a version resource and does not appear in any of the header files shipped with the Microsoft® Platform Software Development Kit (SDK).
struct String {
WORD wLength;
WORD wValueLength;
WORD wType;
WCHAR szKey[];
WORD Padding[];
WORD Value[];
};
Members
wLength
Specifies the length, in bytes, of this String structure.
wValueLength
Specifies the size, in words, of the Value member.
wType
Specifies the type of data in the version resource. This member is 1 if the version resource contains text data and 0 if the version resource contains binary data.
szKey
Specifies an arbitrary Unicode string. The szKey member can be one or more of the following values. These values are guidelines only.
而 string
string
typedef basic_string<char> string; 这个定义是什么意思?? 告诉一下
关于String的n多方法怎么没有呢?
顺便请说一下:typedef basic_string<char> string; 怎么用?既然是C++的标准东西,我在C++Builder环境中用 string a;怎么提示没有定义呢?