定义:AnsiString,WideString,String,char [],char *,BSTR, [英] Definitions of: AnsiString, WideString, String, char[], char*, BSTR,

查看:259
本文介绍了定义:AnsiString,WideString,String,char [],char *,BSTR,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是对此问题的跟进。

AnsiString 是一个类吗? string ?这是一个类吗?和 char []

AnsiString is a class, too? And string? It is a class? And a char[]?

我们可以说 WideString 是双字节字符的包装器, AnsiString 是单字节字符的包装, char [] 是单字节字符的数组? string 不确定是什么...

Can we say a WideString is a wrapper over double-byte characters, AnsiString is a wrapper over single-byte characters, and char[] is an array of single-byte characters? string not so sure what it is...

不知道我有不同类型的字符串类型

Not sure about the diferent kind of string types I have in Code Builder C++ 2007 available and its portability.

推荐答案


  • AnsiString 是一个类提供的C ++ Builder, / li>
  • std :: string 是由C ++标准库提供的类,

  • char []

  • a href =http://msdn.microsoft.com/en-us/library/windows/desktop/ms221069%28v=vs.85%29.aspx =nofollow> BSTR 是Windows COM特定的字符串类。

    • AnsiString is a class provided C++ Builder,
    • std::string is class provided by the C++ standard library,
    • char [] creates an array of the type of character,
    • char * creates a pointer to the type character,
    • BSTR is a Windows COM specific string class.
    • code>和 BSTR 不可移植, std :: string char [] char * 完全可移植。

      AnsiString and BSTR are non portable, while std::string, char [] and char* are completely portable.

      这篇关于定义:AnsiString,WideString,String,char [],char *,BSTR,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆