11 2018 档案

摘要:17.3 Input with cin Typically, you use as follows: C++ redefines for handling input with . It is overloaded for the basic types of C++, as well as the 阅读全文
posted @ 2018-11-28 16:16 Gabriel_Ham 阅读(230) 评论(0) 推荐(0)
摘要:17.1 An Overview of C++ Input and Output Unlike other languages that place I/O in keywords, C and C++ leaves I/O purely to implementers. C++'s solutio 阅读全文
posted @ 2018-11-27 20:15 Gabriel_Ham 阅读(286) 评论(0) 推荐(0)
摘要:16.4 Generic programming A goal of generic programming is to write code that is independent of data types. The STL goes further by providing a generic 阅读全文
posted @ 2018-11-22 14:44 Gabriel_Ham 阅读(182) 评论(0) 推荐(0)
摘要:(这已经是第二次博客园吞我东西了,有点心态爆炸) 16.1 The string Class ) Constructing a string Here is a table which shows the seven form of constructors that the class has: 阅读全文
posted @ 2018-11-20 15:36 Gabriel_Ham 阅读(205) 评论(0) 推荐(0)
摘要:// 这个part因为网络问题被吞了一部分 15.3 Exceptions ) Calling When you already know the conditions of failure, you may detect them and call if true to terminate the 阅读全文
posted @ 2018-11-17 15:30 Gabriel_Ham 阅读(146) 评论(0) 推荐(0)
摘要:15.1 Friends ) When you want to make class A's private members accessible to class B, let B be a friend class of A by declaring `friend class B;': Sup 阅读全文
posted @ 2018-11-15 22:03 Gabriel_Ham 阅读(183) 评论(0) 推荐(0)
摘要:14.4 Class Templates ) Templates provide parameterized types, which is capable of passing a type name as a recipe for building a class or a function. 阅读全文
posted @ 2018-11-15 14:25 Gabriel_Ham 阅读(163) 评论(0) 推荐(0)
摘要:14.1 Classes with object members ) The valarray class To declare an object, you follow the identifier with angle brackets that contain the desired typ 阅读全文
posted @ 2018-11-13 23:19 Gabriel_Ham 阅读(265) 评论(0) 推荐(0)
摘要:好久没更博了,最近在忙着各种期中考试 在这里发一下我的python结课大作业的代码把,是一个类似于“打飞机”的弹球游戏,要在大量球的反弹中不被撞击活下来并且发射子弹攻击球,还是有点难度的hahahahaha 附上一张游戏图片: 阅读全文
posted @ 2018-11-06 22:31 Gabriel_Ham 阅读(2743) 评论(0) 推荐(0)