VS debug record

Error message:

error C4996: ‘itoa’: The POSIX name for this item is deprecated

the reason:

The new version of the old vs function itoa conducted security checks, so use the new version vs an error message appears, and the old version is no problem.

Solution:

1, using the new function _itoa

2, if you must use the old function it is also possible, to add macros

_CRT_NONSTDC_NO_DEPRECATE #define
#define _CRT_SECURE_NO_WARNINGS
Note: Before writing #include

Published 23 original articles · won praise 34 · views 30000 +

Guess you like

Origin blog.csdn.net/alangaixiaoxiao/article/details/103699404
Recommended