会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Live2D
仁昌
博客园
首页
新随笔
联系
订阅
管理
2019年4月23日
实验3
摘要: part2 #ifndef GRAPH_H #define GRAPH_H // 类Graph的声明 class Graph { public: Graph(char ch, int n); // 带有参数的构造函数 void draw(); // 绘制图形 private: char symbol
阅读全文
posted @ 2019-04-23 21:29 仁昌
阅读(96)
评论(0)
推荐(0)
2019年4月2日
设计、定义并实现COMPLEX类
摘要: #include #include using namespace std; class Complex{ public: Complex(double a=0,double b=0) ; Complex(Complex &x); void add(Complex x); void show(); double mod(); private...
阅读全文
posted @ 2019-04-02 23:26 仁昌
阅读(147)
评论(0)
推荐(0)
2019年3月26日
实验2
摘要: 1.函数重载add() 2.快速排序 #include<iostream>using namespace std;template<class X>X Quicksort(X a[],int low,int high){ if(low>=high) { return 0; } int n1=low;
阅读全文
posted @ 2019-03-26 22:30 仁昌
阅读(122)
评论(1)
推荐(0)
2019年3月19日
实验1
摘要: 2-28 if-else语句 switch语句 2-29 while语句 #include<iostream>using namespace std;int main(){ int i=1,j; while(i<=100){ for(j=2;j<i;j++){ if(i%j==0)break;}if
阅读全文
posted @ 2019-03-19 22:09 仁昌
阅读(128)
评论(1)
推荐(0)
公告