I'm trying to convert an int
into a string
by doing this:
int id = 12689;
char snum[MAX];
itoa(id, snum, 10);
I get the following error:
'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _itoa.
itoa
or_itoa
. Unless you are looking for something fancy,snprintf()
should be good enough. – Rachealrachel#define _CRT_NONSTDC_NO_DEPRECATE
before including header files. – Distributary