摘要: #include<iostream> #include <cstring> #include <fstream> using namespace std; #define MAXLEN 255 /* n个整数存放在数组中,将正数排在负数前,时间复杂度为O(n) */ void change(int 阅读全文
posted @ 2020-11-22 16:27 倔强的不死人 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 1.从输入到存储时就改变存储的顺序 void InvertStore(char a[]){ char ch; static int i = 0; cin >> ch; if(ch != '.'){ InvertStore(a); a[i++] = ch; } a[i] = '\0'; //结束符 } 阅读全文
posted @ 2020-11-22 15:00 倔强的不死人 阅读(390) 评论(0) 推荐(0) 编辑