摘要: 1 /* 2 * 3 * test the accuracy change of conversion from float to dobule 4 * 5 */ 6 public class TestFloat{ 7 8 public static void main(String[] args){ 9 float f1 = 2.2f;10 System.out.printf("before conversion float1 : %10.9f \n" , f1);11 float f3 = f1;1... 阅读全文
posted @ 2014-04-12 23:55 Birding 阅读(858) 评论(0) 推荐(1) 编辑
摘要: 在首次登陆伪终端时需要设置伪终端用户密码,否者无法再伪终端中使用root用户。伪终端的表示不知道是否对,请大神纠正。 阅读全文
posted @ 2014-04-12 20:09 Birding 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 struct struct1{ 4 /* 5 struct1(){ 6 cout<<"this is output by struct1 !"; 7 } 8 if add this code block , such errors like 'you must initlizer data number of struct1 9 10 by constructor in g++98' will occor in compile time,11 */12 ... 阅读全文
posted @ 2014-04-12 12:41 Birding 阅读(2659) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class class1 { public: class1(){ } class1(int i ){ } void show(){ coutshow(); return 0;} 总结一下:1. 当使用类的无参构造函数来实例化对象时,... 阅读全文
posted @ 2014-04-12 12:40 Birding 阅读(528) 评论(0) 推荐(0) 编辑