/*
*Copyright(c)2014,烟台大学计算机学院学生
*All rights reserved.
*文件名称:
*作者:马广明
*完成日期:2014 年 5 月 27 日
*版本号:v1.0
*问题描述:求各种立体体积。
*输入描述:无。
*程序输出:正方体,球体,圆柱体面积及体积
*问题分析:
*算法设计:
*/
#include
using names...
分类:
其他好文 时间:
2014-06-05 04:30:10
阅读次数:
206
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
【题目】
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
/*
* 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已开启自动备份设置。
【操作过程简述】
----启动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
【题目】
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1->1->2->3, return 2->3.
【题意】
给定一个有序链表,删出其中重复出现的值...
分类:
其他好文 时间:
2014-05-31 21:14:11
阅读次数:
333
题目一:CombinationsGiven two integersnandk, return all
possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a
solution is:[ [2,4],....
分类:
其他好文 时间:
2014-05-31 20:01:02
阅读次数:
455