文章详情
时间:2010-09-13 来源:tastesweet
std::string char2str( int in_ch=-1) { char ch_buff[4]; memset(ch_buff,0,4); sprintf(ch_buff,"%d",in_ch); //itoa( in_ch,ch_buff,4); std::string str(ch_buff); return str; } char str2char(std::string str) { char ret=0; if( !str.empty() ) { ret= atoi( str.c_str() ); return ret; } return -1; }
辰域智控app
网医联盟app
汇丰汇选App
1970-01-01