
tips
matthewyu_nju
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【c++】知识点
*关于两个不同类型的操作数进行运算时的默认类型转换:C在以下四种情况下会进行隐式转换: 1、算术运算式中,低类型能够转换为高类型。2、赋值表达式中,右边表达式的值自动隐式转换为左边变量的类型,并赋值给他。3、函数调用中参数传递时,系统隐式地将实参转换为形参的类型后,赋给形参。4、函数有返回值时,系统将隐式地将返回表达式类型转换为返...原创 2019-02-28 20:50:30 · 165 阅读 · 0 评论 -
【c++】在MFC中将CString和string类型进行转换
string str;Cstring cstr;将string类型转换为CString:cstr=CString(str.c_str());将CString类型转换为string:CString cstr;std::string str(CW2A(cstr.GetString()));原创 2019-04-01 11:10:56 · 1896 阅读 · 0 评论