
C++函数
文章平均质量分 77
_冬夜里的篝火
这个作者很懒,什么都没留下…
展开
-
atoi
functionatoiint atoi (const char * str);Convert string to integerParses the C-string str interpreting its content as an integral number, which is returned as a value of type int.转载 2014-04-13 08:28:51 · 692 阅读 · 0 评论 -
itoa
functionitoachar * itoa ( int value, char * str, int base );Convert integer to string (non-standard function)Converts an integer value to a null-terminated string using the specif转载 2014-04-13 08:29:38 · 907 阅读 · 0 评论 -
std::stringstream::str和ss
public member functionstd::stringstream::strstring str() const;void str (const string& s);Get/set contentThe first form (1) returns a string object with a copy of the current cont转载 2014-04-13 08:59:58 · 2485 阅读 · 0 评论 -
sprintf
int sprintf ( char * str, const char * format, ... );Write formatted data to stringComposes a string with the same text that would be printed if format was used on printf, but instead of being转载 2014-04-13 09:51:51 · 849 阅读 · 0 评论 -
memset
functionmemsetvoid * memset ( void * ptr, int value, size_t num );Fill block of memorySets the first num bytes of the block of memory pointed by ptr to the specified value (interpr转载 2014-04-13 14:51:38 · 671 阅读 · 0 评论