-
大家帮忙算一算拷贝构造函数的调用次数C/C++code#include<iostream>usingnamespacestd;classMyclass{public:Myclass(intn){number=n;}Myclass(constMyclass&oher){number=other.number;}~Myclass()neolyao 时间:12-17 + 阅读全文
-
在文件下查找文件名A开头的最新的一个的批处理我现在要把D:\TEST\所有PDF文件名中包含A的文件取最新的一个考到E:\test\怎么写?谢谢各位大侠.tian790317 时间:12-17 + 阅读全文
-
怎样利用页面给SQL server创建数据库我新建了一个vs2005工程,需要在页面上建立数据库,该用什么控件,怎样操作,还有怎样将它做成dll文件?nma_123456 时间:12-16 + 阅读全文
-
函数内部的extern为什么会使用全局的变量[code=C/C++][/code]#include<iostream>usingnamespacestd;intx=5;intf(){ intx=3; { externintx; returnx; }}intmain(){ cout<<fDaisy_Chain 时间:12-17 + 阅读全文
-
有关c++中new操作的疑问(1):inta=5;int*p=&a;(2):int*p=newint(5);(3):structnode{stringname;}node*nodeptr=newnode这几个有什么区别?个人感觉就是:第三个是用来申请空间存放结构的,如果不申请是不能赋值的,例如:nodeptr->name="andy",会出现错误(好像是死机)。haolly 时间:12-17 + 阅读全文
-
为什么基类的对象不能给派生类的对象赋值针对这个程序,为什么基类的对象不能非派生类的对象赋值#include<iostream>usingnamespacestd;classB0{public:voiddisplay(){cout<<"B0::display()"<<endl;getchar();}};classD0:publicB0{public:voiddisplY_Ytou 时间:12-17 + 阅读全文