摘要:
知道了怎么用sort函数,strtok可以分割字符,atoi可以讲字符转换为数字#include <iostream>#include <algorithm>#include <cstring>using namespace std;int main(){ int a[10]={ 1,564,65,4,7,4,7,43 }; sort(a,a+7); for(int i = 0 ; i < 7 ; ++ i) cout << a[i] << ' '; char str[20]="apple is a p 阅读全文
posted @ 2012-11-12 22:08
see_why
阅读(136)
评论(0)
推荐(0)

浙公网安备 33010602011771号