(1)假设一个名字在派生类的作用域内无法正确解析,则编译器将继续在外层的基类作用域中寻找该名字的定义。(2)派生类的成员将隐藏同名的基类成员。(3)除了覆盖继承而来的虚函数之外,派生类最好不要重用其它定义在基类中的名字。(4)声明在内层作用域的函数并不会重载声明在外层作用域的函数。定义在派生类中的函...
分类:
编程语言 时间:
2014-07-09 22:18:13
阅读次数:
228
概述Nucleus Plus内核(Kernel)的主要目的是管理实时任务的竞争执行(共享CPU),为应用提供各种便利,高速响应外部事件。Nucleus Plus的系统结构如图1所看到的,能够看出线程控制是整个内核的核心,通过邮箱、队列、管道来实现任务之间的通信,通过信号量、事件组和信号实现任务间的同...
分类:
其他好文 时间:
2014-07-06 18:49:16
阅读次数:
285
1.转义字符一般有两种方式:\x后紧跟1个或多个十六进制数字、或\后紧跟1、2、3个八进制数字,当中数字部分是字符相应的数值。#include using namespace std;int main(){ bool b = 10; bool b1 = true; bool b2 = false; ...
分类:
编程语言 时间:
2014-07-06 17:14:08
阅读次数:
293
class Solution {public: vector plusOne(vector &digits) { int carry = 1; int len = digits.size(); vector res; ...
分类:
其他好文 时间:
2014-07-06 16:43:39
阅读次数:
104
5. 1 #include 2 3 int main() 4 { 5 float you_sec; 6 printf("请输入你的年龄:"); 7 scanf("%f", &you_sec); 8 printf("年龄合计:%e 秒!\n", you_sec * ...
分类:
其他好文 时间:
2014-07-06 16:24:54
阅读次数:
162
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-07-06 16:11:35
阅读次数:
170
LWTViewController.m//// LWTViewController.m// 网络编程练习 -- 检测网络状态//// Created by apple on 14-7-2.// Copyright (c) 2014年 lwt. All rights reserved.//#i...
分类:
其他好文 时间:
2014-07-03 22:42:58
阅读次数:
303
??
方法一:
[root@vmrac1 ~]# su - grid
[grid@vmrac1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 3 09:36:27 2014
Copyright (c) 1982, 2011, Oracle. All rights res...
分类:
数据库 时间:
2014-07-03 17:24:25
阅读次数:
238
十三、复制控制
1. 复制构造函数
类中的成员函数都默认为inline类型,所以即使在类定义体内的函数声明显示定义为inline类型,在进行函数定义时也能够将inline进行省略。
// 复制构造函数应该为常量引用类型,如果允许传值参数会造成无限循环调用从而导致内存溢出。
CopyConstruct(const CopyConstruct& a)...
分类:
编程语言 时间:
2014-07-03 16:07:26
阅读次数:
255
Iwanttostudyitallthetime,andnowIamreadytostudythisbookinthenextmouth.Time:2014/07/02先看一个程序体验一下:#include<iostream>
intmain()
{
/*Thisisatestexample*/
std::cout<<"Entertwonumbers:"<<std::endl;
intv1,v2;
std::cin>>v1>>v..
分类:
编程语言 时间:
2014-07-03 15:24:04
阅读次数:
221