摘要: 引用StackOverFlow中的例子: This fails to compile. I said that the constructor for Foo(double) is explicit, and the above only chooses to call constructors t 阅读全文
posted @ 2017-10-14 17:46 Zhongzhi 阅读(190) 评论(0) 推荐(0) 编辑
摘要: C/C++里指针通常是指向一个对象的,所以不能指向某一变量(Object i,i为某个变量),不过在Java中所有变量都是对象 举个例子: int a=1; int *p=a; 报错:invalid conversion from 'int' to ' int* '; int *a = new in 阅读全文
posted @ 2017-10-14 16:05 Zhongzhi 阅读(1334) 评论(0) 推荐(0) 编辑