2019年5月4日

摘要: 一.题目要求 我们在刚开始上课的时候介绍过一个小学四则运算自动生成程序的例子,请实现它,要求: 1.能够自动生成四则运算练习题 2.可以定制题目要求 3.用户设置最大数(如十以内、百以内等) 4.用户选择是否有括号、是否有小数 5.用户选择输出方式(如输出到文件、打印机等) 6.最好能提供图形用户界 阅读全文
posted @ 2019-05-04 23:18 无敌小那 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #include "pch.h" #include #include #include using namespace std; char theoperator[10]; int Addition = 0; int subtraction = 0; int multiplication = 0; int division = 0; int parentheses = 0; int Float... 阅读全文
posted @ 2019-05-04 22:58 无敌小那 阅读(107) 评论(0) 推荐(0) 编辑

2019年4月25日

摘要: 1.代码地址 https://www.cnblogs.com/19940630naxubo/p/10768219.html 2.代码审查表 功能模块名称 3.代码缺点 无故空行 4.总结 通过这次代码审查,我初步领悟到了结对编程的特点之代码审查。读别人的代码,不仅是一个相互学习的过程,更是一个相互了 阅读全文
posted @ 2019-04-25 15:28 无敌小那 阅读(129) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; # define Maxsize 100 struct Node // 以表的形式存储的树结点 { char data; int parent; int lchild; int rchild; }; ... 阅读全文
posted @ 2019-04-25 14:20 无敌小那 阅读(108) 评论(0) 推荐(0) 编辑
摘要: #include #include typedef struct term{//项的表示 float coef;//系数 int expn;//指数 struct term *next,*pre; }*ElemType; void createPolyn(ElemType &polyn)//创建一个多项式链表 { polyn=(ElemType)malloc(... 阅读全文
posted @ 2019-04-25 12:57 无敌小那 阅读(95) 评论(0) 推荐(0) 编辑

2019年4月21日

摘要: 一.题目的重述 1.题目背景 问题: 给定n个整数(可能为负数)组成的序列a[1],a[2],a[3],…,a[n],求该序列如a[i]+a[i+1]+…+a[j]的子段和的最大值。当所给的整数均为负数时定义子段和为0,依此定义,所求的最优值为: Max{0,a[i]+a[i+1]+…+a[j]}, 阅读全文
posted @ 2019-04-21 19:43 无敌小那 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; #define num 1024 int arr[num]; int MaxSum(int n, int &Maxi, int &Maxj) { int Sum = 0; int S = 0; int begin = 0; for (int i = 1;i 0) S += arr[i]; ... 阅读全文
posted @ 2019-04-21 19:08 无敌小那 阅读(63) 评论(0) 推荐(0) 编辑

2019年4月13日

摘要: 一.选择开发工具 经过团队商讨之后,我们决定使用c++语言。因为相对于其他语言,我们对c++语言更为熟悉。 我是在百度上搜索的下载地址:https://www.visualstudio.com/downloads/ 下面是我下载Visual Studio 2015的过程的截图: 下面是下载成功后的页 阅读全文
posted @ 2019-04-13 14:55 无敌小那 阅读(108) 评论(0) 推荐(0) 编辑

2019年4月8日

摘要: (1)回顾你过去将近3年的学习经历 当初你报考的时候,是真正喜欢计算机这个专业吗? 其实我本科并不是学的计算机专业,而是信息与计算科学,当初报考时还以为事计算机有关的专业,结果不是。其实还是挺想学计算机的,也挺喜欢计算机的,于是今年考研跨考的计算机专业,并已经被华北电力大学(北京)录取。 你现在后悔 阅读全文
posted @ 2019-04-08 15:55 无敌小那 阅读(140) 评论(2) 推荐(0) 编辑

导航