摘要: 写了个小游戏,画面非常简陋,但基本的功能实现了 下面是学习WindowsAPI时参考的文章,虽说几乎没看懂。。。 [https://blog.csdn.net/farmwang/article/details/50603608] [https://blog.csdn.net/celte/articl 阅读全文
posted @ 2018-06-24 21:30 BuluGuy 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1.编程练习(1)源代码及运行结果截图: 2.编程练习(2)源代码及运行结果截图: 这只是两个非常基础的C++程序,仅仅涉及到switch_case语句和while/do_while语句的运用。 但是,这两个程序也不能随便应付,因为第二个程序我改了五遍才发现其中的错误哭(语法没有错误),即while 阅读全文
posted @ 2018-06-21 16:36 BuluGuy 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目来源: C++语言程序设计 郑莉 董渊 何江舟 编著 清华大学出版社 软件:codeblocks 2 28.代码: include using namespace std; int main() { cout cv; if(cv=='Q')break; else { switch(cv) { c 阅读全文
posted @ 2018-06-21 16:14 BuluGuy 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 今天写了一些函数(有些是直接嫁接过来的),为了防止以后找不到,就发出来吧 include include include include include include include include include include include include include include i 阅读全文
posted @ 2018-06-14 20:12 BuluGuy 阅读(230) 评论(2) 推荐(0) 编辑
摘要: 11 3 | 4 | 7 Collection : include include include include include using namespace std; void scanall(string n,int p) { string k,s,a; n+=".txt"; ifstrea 阅读全文
posted @ 2018-06-12 22:22 BuluGuy 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 实验内容 1 chip include using namespace std; class Cores { private: int m,n; public: Cores(int ,int ); int getm(){return m;} int getn(){return n;} int add 阅读全文
posted @ 2018-05-29 22:05 BuluGuy 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 实验内容1: User.h: User.cpp: Book.cpp: include "Book.h" Book::Book(string a,string b,float c):isbn(a),title(b),price(c){} void Book::print() { cout 阅读全文
posted @ 2018-05-19 16:07 BuluGuy 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Complex类就不发出来了,相对于下面而言过于简单。 下面两个实验都做了扩展,并加入了一些自己的想法; //!!!!!!!!重新写了Graph类(代码跟在旧的下面(hash_type没有变动)图片没有更新因为太麻烦了,想看实际效果的,还是自己运行吧) 提供一个贪吃蛇小游戏博客链接,可以从里面学到很 阅读全文
posted @ 2018-04-20 15:10 BuluGuy 阅读(184) 评论(2) 推荐(1) 编辑
摘要: 不知是什么原因,对于某些数值,计算结果的精度相对于计算器总会缺少一位(四舍五入) 上面两个程序的功能可以用非常简单的代码实现,但是通过实际编写可以知晓 类中的变量是无法直接使用的,这也是类最大的作用 这实现了实现与使用的分离,一定程度上也增强程序的安全性 阅读全文
posted @ 2018-04-03 21:52 BuluGuy 阅读(171) 评论(1) 推荐(0) 编辑