/*
*Filename: Gauss_Elimination.cpp
*Description a solution to the linear formulations
*author: HouFenglin@物理0605/DUT
*Time: 13/04/2009
*/ |
Archive for April, 2009
April 19, 2009
- type * p 表示当*p出现在一个表达式中,它表示一个type的值。Type是指针p的基类型。
- type * p[] 表示当*p[]将被求值为一个type类型的值。
- type **p **p表示一个type的值。
- type (*p)[] 这个表达式则表示*p表示一个type [] 类型的值。这是因为括号有更高优先级,故求值运算符仅作用在p上,而不是p[]上。
1 2 3 4 5 6 | int atoi (const char *str) { //异常时返回零,觉得不是很合适,但又没想到什么好的方法,标准函数也是这么定义的 //... return result * flag; //确定符号并返回 } |
April 18, 2009
Access specifiers(public, protected, and private) can be used to express and enforce higher-level constraints on how a type may be used. The most common of these techniques is to disallow copying of an object by declaring its copy operations to be private and not defining them: