码迷,mamicode.com
首页 >  
搜索关键字:show all    ( 41857个结果
立体类的面积和体积--虚函数
/* *Copyright(c)2014,烟台大学计算机学院学生 *All rights reserved. *文件名称: *作者:马广明 *完成日期:2014 年 5 月 27 日 *版本号:v1.0 *问题描述:求各种立体体积。 *输入描述:无。 *程序输出:正方体,球体,圆柱体面积及体积 *问题分析: *算法设计: */ #include using names...
分类:其他好文   时间:2014-06-05 04:30:10    阅读次数:206
每日算法之二十:Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((()))", "(()())", "(())()", "()(())", "()()...
分类:其他好文   时间:2014-06-05 02:15:14    阅读次数:262
时间类--多重继承
/* *Copyright (c) 2013, 烟台大学计算机学院 * All rights reserved. * 作 者:马广明 * 完成日期:2014 年 5 月 19 日 * 版 本 号:v1.0 * 问题描述:日期时间类 */ #include using namespace std; class Date { public: Date(...
分类:其他好文   时间:2014-06-05 02:02:18    阅读次数:176
车辆行驶类
/* *Copyright (c) 2013, 烟台大学计算机学院 * All rights reserved. * 作 者:马广明 * 完成日期:2014 年 5 月 18 日 * 版 本 号:v1.0 * 问题描述:摩托车继承自行车和机动车 */ #include #include #include using namespace std; enum vehi...
分类:其他好文   时间:2014-06-05 01:49:51    阅读次数:319
LeetCode:4Sum
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: ...
分类:其他好文   时间:2014-06-05 00:34:06    阅读次数:240
LeetCode: Valid Number [066]
【题目】 Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before imple...
分类:其他好文   时间:2014-06-04 23:45:09    阅读次数:388
Coreseek:第二步建索引及测试
1,建索引很简单,一行代码 g:/service/coreseek/bin/indexer -c g:/service/coreseek/etc/csft_mysql.conf   person 前面是你bin目录下的indexer程序 后面-c指后面会跟配置文件 然后是配置文件地址 最好都用绝对地址 在后面是索引 也可以用--all 即对配置文件的所有部分都做索引 然后写成一个批处理文...
分类:其他好文   时间:2014-06-04 23:22:13    阅读次数:256
动物应该这么叫---虚函数
/* * Copyright (c) 2013, 烟台大学计算机学院 * All rights reserved. * 作 者:马广明 * 完成日期:2014 年 5 月 27 日 * 版 本 号:v1.0 * 问题描述:动物这样叫 */ #include using namespace std; class Animal { public: vi...
分类:其他好文   时间:2014-06-04 23:18:59    阅读次数:294
利用rman自动备份转储spfile
利用rman自动备份转储spfile   【情景简介】 生产环境丢失了服务器的参数文件,rman已开启自动备份设置。 【操作过程简述】 ----启动rman $rman target / ----检查rman设置 RMAN> show all; ----配置一遍rman自动备份控制文件,模拟初次设置rman自动备份控制文件 RMAN>CONFIGURE CONTROLFILEA...
分类:其他好文   时间:2014-06-04 22:54:12    阅读次数:257
形状类的纯虚函数
/* * Copyright (c) 2013, 烟台大学计算机学院 * All rights reserved. * 作 者:马广明 * 完成日期:2014 年 5 月 27 日 * 版 本 号:v1.0 * 问题描述:形状类中的纯虚函数 */ #include using namespace std; const double PI=3.14; class Sha...
分类:其他好文   时间:2014-06-04 22:02:45    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!