C语言 c++ php mysql nginx linux lnmp lamp lanmp memcache redis 面试 笔记 ppt 设计模式 问题 远程连接

  2015年6月21日
摘要: int a[10]; //是个元素,在windows下回报错,linux会输出一个随机数int a[10]={1,2}; //初始化,其他的为0数组越界:为了调高效率, 编译器不会对数组越界做检查#include using namespace std;int main(){ int ... 阅读全文
posted @ 2015-06-21 23:07 思齐_ 阅读(460) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class common{public: virtual void hello(){couthello(); return 0;}静态联编:在编译时就确定指针指向的类#include using namespace std;cla... 阅读全文
posted @ 2015-06-21 15:21 思齐_ 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 继承#include using namespace std;class father{public: void getHeight(){coutweightheightageusing namespace std;class father{public: int height;};cl... 阅读全文
posted @ 2015-06-21 12:32 思齐_ 阅读(224) 评论(0) 推荐(0) 编辑