Fork me on GitHub
摘要: Welcome Visitors! I feel glad that you come to my blog. But before you have a look, here are somethings you need to know! First, if you are not Chines 阅读全文
posted @ 2024-12-17 03:00 宇白顺 阅读(45) 评论(0) 推荐(0)
摘要: Today, my friend – Hikori (Don’t ask me why his name is Japanese because he created this name by himself) in Japan told me that he succeeded in gettin 阅读全文
posted @ 2024-12-17 01:17 宇白顺 阅读(51) 评论(0) 推荐(0)
摘要: # 六. 函数 ## 6.1 函数基础 一个典型的函数(function)定义包括:返回类型(return type)、函数名字,由0或多个形参(parameter)组成的列表以及函数体。我们通过调用运算符来执行函数,形式为"()"。 函数调用完成两项工作: 一是用实参初始化函数对应的形参,二是将控 阅读全文
posted @ 2023-07-17 18:23 宇白顺 阅读(128) 评论(1) 推荐(0)
摘要: C#和C++的部分面向对象方式类似,只记录不同点。 定义类与关键字: 下面是C++类的定义方式与C++关键字public和private的表达方式: class Box { private: // 私有成员 public: // 公共成员 }; 函数: 在类内定义的函数被隐式声明为内联函数 构造函数 阅读全文
posted @ 2022-09-10 14:42 宇白顺 阅读(66) 评论(0) 推荐(0)
Back