编程软件是VS2012。。定义static int score=0;char bestScore[20];句子是这样的_itoa (score,bestScore,10);提示出错是error C4996: '_itoa': This function or variable may be unsafe. Consider using _itoa_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.改成_itoa_s (score,bestScore,10);提示错误
1 回答
侃侃无极
TA贡献2051条经验 获得超10个赞
errno_t _itoa_s(
int value,
char *buffer,
size_t sizeInCharacters,
int radix
);
少了一个参数 radix 进制
改成
_itoa_s (score,bestScore,10,10); //10进制显示 支持2-36 进制
- 1 回答
- 0 关注
- 195 浏览
添加回答
举报
0/150
提交
取消