摘要: 改写要求1:改写为以单链表和双向链表存储二维数组改写要求2:添加函数SingleLinkProcess()实现互换单链表中最大结点和头结点位置,最小结点和尾结点位置改写要求3:添加函数DoubleLinkProcess()实现互换双向链表中最大结点和头结点位置,最小结点和尾结点位置#include ... 阅读全文
posted @ 2015-02-09 00:14 Dior12345 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 改写要求1:将以上程序改写为适合超长整数改写要求2:将以上程序改写为适合超长数列改写要求3:将数列中指定位置m开始的n个结点重新按降序排序改写要求4:输出指定位置m开始的n个结点的超长整数#include #include #include using namespace std;struct Lo... 阅读全文
posted @ 2015-02-05 12:16 Dior12345 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 改写要求1:用单链表实现#include #include using namespace std;struct LinkNode{ int data; LinkNode *next;};class PALINDROME{ int low,up; int ... 阅读全文
posted @ 2015-02-11 17:48 Dior12345 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 改写要求:1:以指针为数据结构开辟存储空间改写要求2:被插入字符串和插入字符串不等长,设计程序间隔插入 如被插入字符串长度为12,待插入字符串长度为5 则插入间隔为2改写要求3:添加函数InsertInOrder() 先将被插入字符串中的字母按照ASCII表顺序排序 再将插入字符串插入并保证原来的字... 阅读全文
posted @ 2015-02-10 21:47 Dior12345 阅读(458) 评论(1) 推荐(0) 编辑
摘要: 改写要求1:用单链表实现改写要求2:析构函数中依次将链表结点删除#include #include using namespace std;struct LinkNode{ int data; LinkNode* next;};class NOPRIME{ frie... 阅读全文
posted @ 2015-02-09 22:55 Dior12345 阅读(304) 评论(1) 推荐(0) 编辑
摘要: 改写要求1:分别用指针pa、pb代替数组改写要求2:从键盘输入data元素 元素个数任意,输入0结束#include #include using namespace std;class DATA{ double *pa,*pb; double max,min; dou... 阅读全文
posted @ 2015-02-09 18:01 Dior12345 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 改写要求1:将字符数组str改为字符指针p,动态开辟存储空间改写要求2:增加统计关键字个数的函数void CountKeyWords()改写要求3: 增加替换函数void FindKeyWords()#include #include #include using namespace std;cla... 阅读全文
posted @ 2015-02-07 13:40 Dior12345 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 改写要求1:以指针为数据结构动态开辟存储空间#include #include using namespace std;class PRIMENUM{ int *p; int span1,span2; int num; public: PRIMENUM(i... 阅读全文
posted @ 2015-02-05 13:54 Dior12345 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 改写要求:重载>>和#include using namespace std;class Fract{ int num,den; public: friend ostream& operator > (istream& int... 阅读全文
posted @ 2015-02-04 12:03 Dior12345 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 改写要求1:改写为单链表结构可以对任意长度整数集合求并集#include #include using namespace std;struct LinkNode{ int data; LinkNode* next; };class SET{ public: ... 阅读全文
posted @ 2015-02-04 12:01 Dior12345 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 改写要求1:改为适合处理超长整数#include #include #include using namespace std;struct LinkNode{ short int data; LinkNode *next;};class STR{ string st... 阅读全文
posted @ 2015-02-04 11:47 Dior12345 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 改写要求1:动态生成单链表存储#include #include using namespace std;struct LinkNode{ int data; struct LinkNode *next;};class NUM{ int n; public:... 阅读全文
posted @ 2015-02-04 11:27 Dior12345 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 改写要求1:改写为以单链表表示二维数组#include #include using namespace std; struct LinkNode { int Row; int Column; int Data;... 阅读全文
posted @ 2015-02-04 11:20 Dior12345 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 改写要求1:改写为以指针为数据结构#include #include using namespace std; class ARP { int m; int* p; int count[10]; public: ARP(int x[],int size... 阅读全文
posted @ 2015-02-04 11:18 Dior12345 阅读(325) 评论(0) 推荐(0) 编辑