上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 121 下一页
摘要: 函数体=0的虚函数称为“纯虚函数”。包含纯虚函数的类称为“抽象类” #include class Animal // This Animal is an abstract base class { protected: std::string m_name; public: Animal(std::string name) : m_name(name) ... 阅读全文
posted @ 2019-06-10 17:40 wdliming 阅读(289) 评论(0) 推荐(0)
摘要: input cmdMinput name and levelli 3input cmdminput name and levelrr4input cmdeinput namebffdinput cmdeinput namesdfsdfsdfinput cmds3 li4 rrbffdsdfsdfsd 阅读全文
posted @ 2019-06-10 16:29 wdliming 阅读(932) 评论(0) 推荐(1)
摘要: 0 h1 e2 l3 l4 w5 o6 r7 l8 !0 h1 e2 l3 l4 w5 o6 r7 l8 !Number of students: 3Enter marks for student #1:3Enter marks for student #2:2Enter marks for stu 阅读全文
posted @ 2019-06-10 15:37 wdliming 阅读(324) 评论(0) 推荐(0)
摘要: s1 is: Anatoliys2 is: hellos3 is: Anatoliys4 is: this is aCs5 is: s aCs6 is: ***************s7 is: thiss8 is: Anatoliys9 is: Anatoliyhellohello 阅读全文
posted @ 2019-06-10 15:22 wdliming 阅读(1762) 评论(0) 推荐(0)
摘要: 运行结果: 构造函数,申请了100个char元素的动态空间拷贝构造函数,保证name指向的是自己单独的内存块构造函数,申请了100个char元素的动态空间lill, age 666赋值函数,保证name指向的是自己单独的内存块John, age 56John, age 56析构函数,释放了100个c 阅读全文
posted @ 2019-06-10 15:14 wdliming 阅读(572) 评论(0) 推荐(0)
摘要: 计算机显示模式[编辑] 24比特模式[编辑] 每像素24位(比特s per pixel,bpp)编码的RGB值:使用三个8位无符号整数(0到255)表示红色、绿色和蓝色的强度。这是当前主流的标准表示方法,用于真彩色和JPEG或者TIFF等图像文件格式里的通用颜色交换。它可以产生一千六百万种颜色组合, 阅读全文
posted @ 2019-06-09 17:09 wdliming 阅读(2116) 评论(0) 推荐(0)
摘要: 函数的返回主要分为以下几种情况: 1、主函数main的返回值: 允许主函数main没有返回值就可结束;可将主函数main返回的值视为状态指示器,返回0表示程序运行成功,其他大部分返回值则表示失败。 2、返回非引用类型: 函数的返回值用于初始化在调用函数时创建的临时对象(temporary objec 阅读全文
posted @ 2019-06-09 10:51 wdliming 阅读(7501) 评论(1) 推荐(0)
摘要: 文件——首选项——设置 阅读全文
posted @ 2019-06-09 10:45 wdliming 阅读(4335) 评论(0) 推荐(0)
摘要: 安装vscdoe,安装tdm-gcc-64编译器,这样可以自动把mingw的目录添加到环境变量中,其实安装其他编译器本版都可以,只要手动添加环境变量即可。平台win10-64位。此文参考了哔哩哔哩的配置教程:https://www.bilibili.com/video/av11134188/?p=3 阅读全文
posted @ 2019-06-09 10:39 wdliming 阅读(5034) 评论(0) 推荐(0)
摘要: 输出: Hello, Hal. I don't like your Girlfriend. I know her address: 0x1b1b70 Where's 4? Oh, here it is: 0x72fc6c ps=0x72fbb0 pd=0x72fc08 pi=0x72fc3c 添加另 阅读全文
posted @ 2019-06-08 22:51 wdliming 阅读(477) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 121 下一页