C++?к??м???????
???????????? ???????[ 2014/3/12 9:49:01 ] ????????C++ ????
????atoi
??????:
????#include <stdlib.h>
????int atoi( const char *str );
????????????????str??????????????????????????str ??????????????????str ?ж???????????????????????????????????磬
????i = atoi( "512.035" );
????i ???? 512??
????atol
??????:
????#include <stdlib.h>
????long atol( const char *str );
??????????????????????????????????????????????????str??????????????????????????????????????????????????????????????????????????????????????????????????????磬
????x = atol( "1024.0001" );
????x????1024L??
????memset
??????:
????#include <string.h>
????void *memset( void *buffer?? int ch?? size_t count );
????????: ????????ch ??buffer ????????count ??????? ??????buffer??? memset() ??????????????????????????????磺
????memset( the_array?? '