D
Daqian Yang
Hi all,
----code-----
int main(){
xf::Xfile x;
cout <<"before compressing"<<endl;
x.stats();
cout <<"after compressing"<<endl;
x.compress();
x.stats();
xf::Xfile x2 = xf::Xfile("mydata",3,2);
xf::Xfile x3(x2);
x3.stats();
// xf::Xfile* p = new xf::Xfile("mydata2,5,5); //problem is here
// p->stats();
return 0;
}
---code----------
without this line "xf::Xfile* p = new xf::Xfile("mydata2,5,5);" , the
program works perfectly.
but after I insert a pointer here, the compiler gives me this error:
x-main_a2.cpp:22:32: missing terminating " character
x-main_a2.cpp: In function `int main()':
x-main_a2.cpp:25: error: parse error before `return'
x-main_a2.cpp:22: warning: unused variable `xf::Xfile*p'
anyone knoews why? thx
----code-----
int main(){
xf::Xfile x;
cout <<"before compressing"<<endl;
x.stats();
cout <<"after compressing"<<endl;
x.compress();
x.stats();
xf::Xfile x2 = xf::Xfile("mydata",3,2);
xf::Xfile x3(x2);
x3.stats();
// xf::Xfile* p = new xf::Xfile("mydata2,5,5); //problem is here
// p->stats();
return 0;
}
---code----------
without this line "xf::Xfile* p = new xf::Xfile("mydata2,5,5);" , the
program works perfectly.
but after I insert a pointer here, the compiler gives me this error:
x-main_a2.cpp:22:32: missing terminating " character
x-main_a2.cpp: In function `int main()':
x-main_a2.cpp:25: error: parse error before `return'
x-main_a2.cpp:22: warning: unused variable `xf::Xfile*p'
anyone knoews why? thx