enum枚举类型的定义方式与某种用法#include using namespace std;int main(){ enum TOT{ zero, one, two, three, four, five };//0,1,2,3,4,5 TOT to1; to1 = five; switch (to...
分类:
编程语言 时间:
2015-04-23 21:39:59
阅读次数:
184
ThreeJS中几个重要对象:场景:三维世界的容器,所有的元素均必须放在场景中才可以被看到,比如:模型、灯光等等;1 var scene = new THREE.Scene();摄相机:可以理解为场景中的人眼,人必须通过摄相机来观察三维场景中的物体;var camera = new THREE.Pe...
分类:
Web程序 时间:
2015-04-23 19:26:57
阅读次数:
165
程序如下:void move(char x,char y){ printf("%c-->%c\n",x,y);}void hanoi(int n,char one,char two,char three){/*将n个盘从one座借助two座,移到three座*/ if(n==1) move(one,...
分类:
其他好文 时间:
2015-04-23 09:32:03
阅读次数:
194
今天在导入一批数据到Oracle时,碰到了一个问题:提示要给一个自定义变量AMP赋值,一开始我很纳闷,数据是一系列的Insert语句,怎么会有自定义变量呢?后来搜索了一下关键字AMP发现,原来是因为在插入数据中有一个字段的内容如下:http://mobile.three.com.hk/3DX?uid...
分类:
数据库 时间:
2015-04-21 12:48:24
阅读次数:
159
3Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input ...
分类:
其他好文 时间:
2015-04-20 14:58:00
阅读次数:
120
After gradution for three years , I suddenly found I did nothing. So decide to settle down and focus on work now. Played enough.This blog is mainly fo...
分类:
其他好文 时间:
2015-04-20 12:52:08
阅读次数:
101
题目链接: HDU - 1501Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings....
分类:
其他好文 时间:
2015-04-19 00:57:26
阅读次数:
207
题目链接:HDU - 1500In China, people use a pair of chopsticks to get food on the table, but Mr. L is a bit different. He uses a set of three chopsticks -- ...
分类:
其他好文 时间:
2015-04-18 06:20:41
阅读次数:
139
一、数组的深浅拷贝在使用JavaScript对数组进行操作的时候,我们经常需要将数组进行备份,事实证明如果只是简单的将它赋予其他变量,那么我们只要更改其中的任何一个,然后其他的也会跟着改变,这就导致了问题的发生。var arr = ["One","Two","Three"];var arrto = ...
分类:
Web程序 时间:
2015-04-17 15:25:27
阅读次数:
150
题目:Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. Yo...
分类:
其他好文 时间:
2015-04-16 19:40:15
阅读次数:
115