随笔分类 -  c++,函数

摘要://atoi()函数将字符串转换成整型数。当第一个字符不能识别为数字时,函数将停止读入输入字符串。char *a1 = "123"; char *a2 = "1 23"; char *a3 = "-123"; char *a4 = "a123"; char *a5 = "123b"; char *a6 = "12a3"; int b1 = atoi(a1);//123 int b2 = atoi... 阅读全文

posted @ 2017-03-15 16:14 czhoud 阅读(260) 评论(0) 推荐(0)

摘要://strtok()函数原型 /*_Check_return_ _CRT_INSECURE_DEPRECATE(strtok_s) _CRTIMP char * __cdecl strtok(_Inout_opt_z_ char * _Str, _In_z_ const char * _Delim) 阅读全文

posted @ 2017-03-15 15:48 czhoud 阅读(33869) 评论(0) 推荐(1)

导航