CComboBox* ScanTimes = (CComboBox *)GetDlgItem(IDC_COMBO_SCANTIMES);
char TempData[3]="";
for(int i=16;i<65;i++)
{
         itoa(i,TempData,10);//为什么内存错误?为什么加inclue "stdlib.h"//编译器还是报没未声明错误?
 ScanTimes->AddString(TempData);
}

解决方案 »

  1.   

    inclue "stdlib.h"//放在你工程的哪个位置头文件下?可能放了但是位置不对哦
      

  2.   

    inclue "stdlib.h"include吧
    我没问题啊
      

  3.   

    //我在.cpp添加的 stdlib.h呀warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.
    1>        e:\program files\microsoft visual studio 9.0\vc\include\stdlib.h(862) : 参见“itoa”的声明
      

  4.   

    warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.
    =====================
    让你使用  _itoa 去代替  itoa 啦
      

  5.   

    VS2005 以后itoa被_itoa和_itoa_s取代了但是还是可以用,警告别理他就可以了