写一个vector 时候,当写到operator= 时候,总是出现一个运行时错误,如下:Windows has triggered a breakpoint in myVector.exe.This may be due to a corruption of the heap, which indicates a bug in myVector.exe or any of the DLLs it has loaded.This may also be due to the user pressing F12 while myVector.exe has focus.The output win Read More
posted @ 2011-09-09 14:43
jc24
Views(1789)
Comments(0)
Diggs(0)
double* p0; //uninitialized:likely troubledouble* p1 = new double; //get(allocate)an unintialized doubledouble* p2 = new double(5.5); //get a double initialized to 5.5double* p3 = new double[5]; //get(allocate)5 uninitialized doubles Read More
posted @ 2011-09-09 12:30
jc24
Views(142)
Comments(0)
Diggs(0)
sizeof 用于用于一个类型名 或 表达式。对一个类型名来说,sizeof给出这种类型对象的大小;对于一个表达式来说,sizeof给出表达式结果的大小。sizeof 结果是一个正整数,sizeof(char) 单元大小被定义为1。 Read More
posted @ 2011-09-09 12:18
jc24
Views(196)
Comments(0)
Diggs(1)

浙公网安备 33010602011771号