总结一下typedef和#define的区别1.概念 #define 它在编译预处理时进行简单的替换,不作正确性检查。它是预处理指令。 typedef 它在自己的作用域内给一个已经存在的类型一个别名。它是在是在编译时处理的。 例子:#define:#define DO doubleDO val =....
分类:
其他好文 时间:
2014-07-19 00:33:30
阅读次数:
275
Java语言的关键字有:(所有的关键字都是小写)abstract、boolean、break、byte、case、catch、char、class、continue、default、do、double、else、extends、false、final、finally、float、for、if、imp...
分类:
编程语言 时间:
2014-07-18 16:08:14
阅读次数:
235
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers b...
分类:
其他好文 时间:
2014-07-18 15:17:26
阅读次数:
201
Description
You are not given n non-negative integers
X0, X1,..., Xn-1 less than
220, but they do exist, and their values never change.
I'll gradually provide you some facts about them, and as...
分类:
其他好文 时间:
2014-07-18 13:35:47
阅读次数:
458
在之前的学习中,我们了解到的while循环形如:whileexpression;dostatement...done这种语法结构的循环只要expression符合条件将执行循环体中的statement,否则就会推出循环。接下来将介绍两种特殊while循环while循环特性语法一while:;do循环体done这种循环没有expression,也..
分类:
系统相关 时间:
2014-07-18 13:18:05
阅读次数:
290
until循环语法格式:untilCONDITION
do
statement
done
说明:
until进入循环的条件是:condition不成立时,就执行循环。
until进入循环的条件正好和while相反,while进入循环的条件是:condition成立时,就进入循环。示例1:while循环[root@Server3Learn]#catwhile.sh
#!/bin/b..
分类:
其他好文 时间:
2014-07-18 13:12:34
阅读次数:
196
1.hi/hello!/ Hullo!/How Do you do?(你好)2.(Good)morning/afternoon/evening!(早/下午/晚上(好))3.how are you?/how are you going?/how are you all keeping?(你好吗/最近过...
分类:
其他好文 时间:
2014-07-18 11:36:34
阅读次数:
205
alias ll='ls -alF'一:ls -a --all : do not ignore entries starting with . -A , --almost-all : do not list implied . and .. -l : use a long listing f...
分类:
系统相关 时间:
2014-07-18 10:36:44
阅读次数:
314
官网:http://luvit.io/Luvit is an attempt to do something crazy by taking node.js' awesome architecture and dependencies and seeing how it fits in the Lu...
分类:
其他好文 时间:
2014-07-18 10:03:40
阅读次数:
317
Set Matrix ZeroesGiven amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space?A straight...
分类:
其他好文 时间:
2014-07-17 23:34:02
阅读次数:
486