随笔分类 -  数据结构与算法(C++)

摘要:1 #include<iostream> 2 #define Max 50 3 using namespace std; 4 typedef char ElemType; 5 6 typedef struct 7 { 8 ElemType data[Max]; 9 int length; 10 }s 阅读全文
posted @ 2020-03-18 22:23 Arielsixsixsix 阅读(147) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 using namespace std; 3 typedef struct { 4 double real; //复数的实部 5 double imag; //复数的虚部 6 } Complex; 7 8 //复数的初始化 9 void initial 阅读全文
posted @ 2020-03-13 17:26 Arielsixsixsix 阅读(571) 评论(0) 推荐(0)