| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
清华大学杨昉-程序设计基础(2)小学期C++大作业
设计课题题目:每个同学都单独完成1道课题。后面有范题,仅供同学们参考,不列入本次课程设计的课题。
对于程设题目,按照范题的格式。自行虚构软件需求。并按照第4点要求,编写设计文档。基本要求系统中设计的类的数目不少于4个,每个类中要有各自的属性(多于3个成员)和方法(多于3个成员函数);需要定义一个抽象类,采用继承方式派生这些类。并设计一个多重继承的派生类。在程序设计中,引入虚函数的多态性、运算符重载等机制。
考虑了一些系统需求
Alexander Hamilton, We are waiting in the wings for you.
You could never back down.
You never learned to take your time.
Oh, Alexander Hamilton~
When America sings for you,
Will they know what you overcame?
Will they know you rewrote the game?
The world will never be the same, oh~
添加了一个新的类:菜单类-->用于展示菜单
搭建了系统的框架,包括
Raise a glass to freedom,
Something they can never take away,
No matter what they tell you!Raise a glass to the four of us.
Tomorrow there’ll be more of us
Telling the story of tonight!They’ll tell the story of tonight~
搭建了系统的框架,包括
Let me tell you what I wish I’d known,
When I was young and dreamed of glory:
You have no control:
Who lives, who dies, who tells your story.I know that we can win.
I know that greatness lies in you.
But remember from here on in,
History has its eyes on you.
继续完善了main.cpp,添加了许多操纵函数,包括选课、退课、计算GPA等等,预计今天可以完成所有程序的编写,明天开始debug
Look at where you are.
Look at where you started.
The fact that you’re alive is a miracle.
Just stay alive, that would be enough!
And if your wife could share a fraction of your time,
If I could grant you peace of mind,
Would that be enough?
羽毛球害人。
终于把main.cpp搞完了,开始debug
I wrote my way out of hell!
I wrote my way to revolution!
I was louder than the crack in the bell!
I wrote Eliza love letters until she fell!
I wrote about The Constitution and defended it well!
And in the face of ignorance and resistance,
I wrote financial systems into existence!
And when my prayers to God were met with indifference,
I picked up a pen, I wrote my own deliverance!!!
离ddl还有10天,重写一次代码其实还来得及,但是说实话有点懒了……
为啥我会用这么蠢的办法去存取数据?为啥不搜一下C++的多映射库嘞……
重写的话就是删掉登录部分,做一个纯粹的数据管理,然后用一下multimap做课程和学号的映射。
Is the System initiated?
| Back | FazBrowse Home | New Git URL |