編程軟件是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 關注
- 249 瀏覽
添加回答
舉報
0/150
提交
取消