C/C++编程
使用itoa转换为字符串后outtextxy输出转换过的数字部分会乱码
有什么其他的函数能输出整数型吗?
补充:
设定字符集是多字节字符集
部分代码大概是这样
int x=0;
char s[64]="0",s1[16]="0";
if(...)
{
x+=1;
}
for(...)
{
memset(s,0,64);
memset(s1,0,16);
itoa(s1,x,10);
sprintf(s,"输出:");
strcat(s,s1);
outtextxy(0,0,s);
}
这样输出就会变成:
输出:(随机数字)
itow 函数好像是转换为 wchar 宽字符,这样可以用 outtextxy 输出吗?