比如string str = "test_01";
如何转成DWORD类型
C++ 不一定是数值字符串string如何转换成DWORD类型
答案:3 悬赏:0
解决时间 2021-02-19 22:27
- 提问者网友:你在我心中是最美
- 2021-02-19 07:40
最佳答案
- 二级知识专家网友:情战凌云蔡小葵
- 2021-02-19 08:39
Platform SDK: Windows API
Windows Data Types:
DWORD 32-bit unsigned integer.//32bit无符号整形
string怎么转换成无符号整形.....那么我想刀的办法只有强制类型转换了..别无他法
Windows Data Types:
DWORD 32-bit unsigned integer.//32bit无符号整形
string怎么转换成无符号整形.....那么我想刀的办法只有强制类型转换了..别无他法
全部回答
- 1楼网友:一起来看看吧
- 2021-02-19 11:07
DWORD 是无符号整数
DWORD 在#include《windows.h》 中定义
即 其实是 :typedef unsigned int DWORD;
你的意思是将字符转为DWORD吧;
提示一下;将字符转为整数 用atoi()函数
自己搜索相关函数吧,应该有的;
- 2楼网友:我叫很个性
- 2021-02-19 09:57
//---------------------------------------------------------------------------
#include
#include
using namespace std;
int main(void)
{
string a="abc";
string b=".txt";
a+=b;
cout<
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯