2016年12月12日

冒泡排序较优解

摘要: 1 #include 2 3 void swap(int *a,int *b); 4 int main(int argc, const char * argv[]) { 5 6 int a[6] = {1,6,8,1,6,8}; 7 int length = sizeof(a)/sizeof(a[0]); 8 _Bool flag = 1; ... 阅读全文

posted @ 2016-12-12 19:27 ITCoderW 阅读(187) 评论(0) 推荐(0)

字符串的旋转

摘要: 1 //参考书籍:编程之法 2 3 #include 4 char* leftRotateString(char *s, int n, int m); 5 int main(int argc, const char * argv[]) { 6 7 char s[] = "abcde"; 8 printf("旋转2位字符串位为%s\n",leftRot... 阅读全文

posted @ 2016-12-12 08:43 ITCoderW 阅读(240) 评论(0) 推荐(0)

导航