面试必备
文章平均质量分 71
xiaoju1986
一个飘荡在人世间的魂魄......
展开
-
【一】统计一个字符串中字母的个数
一、统计一个字符串中字母的个数,[不]区分大小写!#include using namespace std;int main(){ char a[] = "What is that"; //要统计的字符串 int count[26];原创 2011-10-11 22:36:04 · 2549 阅读 · 0 评论 -
数组原地逆置
如一个整数数组,原地逆置。 #include #define ARR_LEN 20static int ReverseArray(int arr[], int n);int main(){ int arr[ARR_LEN]; int i,n原创 2011-10-11 22:55:54 · 753 阅读 · 0 评论