1. itoa是广泛应用的非标准C语言扩展函数。由于它不是标准C语言函数,所以不能在所有的编译器中使用。但是,大多数的编译器(如Windows上的)通常在<stdlib.h>头文件中包含这个函数。函数标签:
char* itoa(int value, char*str , int radix);
int value 被转换的整数,char *str 转换后储存的字符数组,int radix 转换进制数,如2,8,10,16 进制等。在<stdlib.h>中与之有相反功能的函数是atoi。
2. 二进制“<<”: 没有找到接受“std::string”类型的右操作数的运算符(或没有可接受),添加:
#include <string> //而不是#include <string.h>
3. c++中的 wait()函数:
作用:暂停当前指定时间
函数标签 :
_CRTIMP void __cdecl wait(unsigned int _Milliseconds);
头文件: concrt.h
命名空间: Concurrency 命名空间