复习:1.封装、继承、多态2.里氏替换3.继承中构造函数的问题 :base(xxx,xx,xxx):this(sssss)4.多态:多态是面向对象中的一个特征 虚方法 静态 接口 增加程序的可扩展性5.静态成员-静态类6.访问修饰符7.抽象类 abstract 代码重用 虚方法父类有实现 可以不.....
分类:
Web程序 时间:
2014-07-22 22:53:53
阅读次数:
215
In this article, I gathered up all the dumps, who found. If you see something new table will be updated.If you want to replenish the base - write in c...
分类:
移动开发 时间:
2014-07-19 23:12:35
阅读次数:
867
lua_State *L = lua_open(); //建立一个LUA状态机 luaopen_base(L); // 启动它 const char *buf = "print('hello, world!')"; lua_dostring(buf); //把buf写入到lua中并执行 lu...
分类:
其他好文 时间:
2014-07-19 16:06:34
阅读次数:
252
1 虚构一个电路以上为STM32和外设链接方式#include "stm32f10x.h"#define GPIOA_ODR_A (GPIOA_BASE + 0X0C)#define GPIOA_IDR_A (GPIOA_BASE + 0X08)#define GPIOB_ODR_A (GPIOB_...
分类:
其他好文 时间:
2014-07-19 14:28:35
阅读次数:
275
UVA 11774 - Doom's Day
题目链接
题意:给定一个3^n*3^m的矩阵,要求每次按行优先取出,按列优先放回,问几次能回复原状
思路:没想到怎么推理,找规律答案是(n + m) / gcd(n, m),在topcoder上看到一个证明,如下:
We can associate at each cell a base 3-number, the log3(R...
分类:
其他好文 时间:
2014-07-19 14:06:19
阅读次数:
220
Mobile phonesTime Limit:5000MSMemory Limit:65536KTotal Submissions:14391Accepted:6685DescriptionSuppose that the fourth generation mobile phone base s...
分类:
其他好文 时间:
2014-07-19 09:23:02
阅读次数:
175
#encoding=utf-8from xml.etree import ElementTree as ET#要找出所有人的年龄per=ET.parse('d:\\1.xml')p=per.findall('./STATION')for x in p: print x.attribprintf...
分类:
其他好文 时间:
2014-07-18 15:05:41
阅读次数:
187
1.父配置文件在yii2/base/Application中的$language="en-US", 修改项目的语言可以修改项目的配置文件main.php中加'language'=>'zh-cn',最好还是也加上'sourceLanguage'=>'zh-cn'
分类:
其他好文 时间:
2014-07-18 14:27:54
阅读次数:
204
用网上各种复制粘贴来的base.css,经常忘记某个标签的名称(因为标签多为简写模式),当调用某个class时,不得不去查看css源码,基于此,我写了一套见名知意的base.css源码如下:@charset "utf-8";/* CSS Document *//*CSS reset重置浏览器默认cs...
分类:
Web程序 时间:
2014-07-18 10:07:42
阅读次数:
399
为了访问公有派生类的特定成员,可以通过讲基类指针显示转换为派生类指针。也可以将基类的非静态成员函数定义为虚函数(在函数前加上virtual) 1 #include 2 using namespace std; 3 4 class base{ 5 public: 6 /*virtual*/ ...
分类:
其他好文 时间:
2014-07-17 18:04:41
阅读次数:
300