自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 1001 A+B Format

#include<iostream>#include<cstring>#include<sstream>using namespace std;int main(){ int a, b; stringstream ss; string s; cin >> a >&amp

2019-02-26 23:26:18 160

原创 1002 A+B for Polynomialsde的链表实现

题目:This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the infor...

2019-02-26 23:22:43 163

原创 静态链表实现集合运算(A-B)∪(B-A)

用静态链表实现(A-B)∪(B-A)分析可知问题就是把A和B都有的元素从A中删去,把B有而A没有的加到A中,最后得到的A就是结果了//// Created by dgm on 19-2-25.//#include <iostream>using namespace std;#define MAXSIZE 1000typedef char ElemType;typed...

2019-02-25 17:25:09 2933

原创 单链表建立、插入、删除、合并

//// Created by dgm on 19-2-24.////感觉最麻烦的还是指针移动次数// 和元素的匹配,for循环经常搞不清楚//循环i次还是i-1次#include <iostream>using namespace std;typedef char ElemType;typedef struct LNode{ LNode() :ne...

2019-02-25 11:02:03 708

转载 ubuntu桌面卡住

转载自:https://blog.csdn.net/sunny_580/article/details/78996975 可尝试的解决方法1. 进入TTY终端Ctrl+Alt+F1进入TTY1终端字符界面, 输入用户名和密码以登录输入top命令, 找到可能造成假死的进程, 用kill命令结束掉进程。然后Ctrl+Alt+F7回到桌面...

2019-02-24 17:13:03 1662

原创 顺序表

#include <iostream>using namespace std;#define MaxSize 1000#define Crement 100typedef int ElemType;typedef struct { ElemType *elem; int length; int listsize;}Sqlist;bool InitL...

2019-02-24 11:39:15 182

原创 ‘typedef’ was ignored in this declaration

typedef struct Elem{ Elem(float N,int E) :e(E), n(N) {} float e; int n;};warning:‘typedef’ was ignored in this declaration原因:结构体没有使用别名解决:去掉typedef或在括号外加别名...

2019-02-23 16:56:29 10946

原创 链表L->next

刚开始看严蔚敏数据结构,到链表算法2.8,一开始对于p指向链表第一个结点的语句p=L->next;不是很明白,认为头指针L指向头结点,头结点的下一个结点才是第一个结点,所以应该是p=L->next->next。现在明白了,L->next=(L).next,而L表示取指针L所指的地址的内容(也就是头结点),所以L->next=(*L).next=头结点.ne

2019-02-22 19:02:59 16943 32

原创 线索二叉树和BST

#include<iostream>#include<cstring>#define ElemType charusing namespace std;typedef enum{ //枚举?emmm,之前不知道 Li

2019-02-20 07:47:59 230

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除