1、作业要求
GIT地址 | https://github.com/FreshFighter |
GIT用户名 | FreshFighter |
学号后五位 | 062523 |
博客地址 | https://www.cnblogs.com/lfq4588/ |
作业链接 | https://edu.cnblogs.com/campus/xnsy/SoftwareEngineeringClass2/homework/2795 |
2、开始项目
首先是环境配置,由于上学期在学面向对象程序设计的时候就已经安装了visual studio,当时的安装配置也比较顺利,就是使用的时候不怎么熟练,现在还是可以基本使用了。
fork作业项目
克隆项目,这一项目比较简单,只需要根据引导来做还是没问题的。申请找好登录过后按照引导成功fork
然后是在电脑中创建一个和这个仓库名字相同的文件,首先复制仓库地址
,
然后打开git命令窗口,用git clone https://github.com/FreshFighter/AchaoCalculator.git(仓库地址),创建成功
这个是创建好的同名文件,里边有一个和github用户名同名的文件(FreshFighter)
项目设计
接下来就是项目设计,这里我就只是用了一个C#控制台程序来实现四则运算,是非常简单的一个程序,用了switch结构,程序中有一个类Class1用来生成并输出四则运算表达式。以下为部分代码
switch结构
Class1类
主函数
创建了单元测试,但是不知道搞到哪儿去了,弄了很久都没弄好。