Hello forum members
My goal with my code is to design a system of creating a series of XML files based on whether or not a specific XML file exists.
When I attempt to compile, I get these errors from the compiler (Dev-C++).Code:int main(){ int filename=0; ofstream fileobject("1.xml"); if(fileobject.open("1.xml")!=1){ while(filename=0;filename<7;filename++){ fileobject("2.xml"); fileobject("3.xml"); fileobject("4.xml"); fileobject("5.xml"); fileobject("6.xml"); fileobject("7.xml"); } }else{ cout << "The configuration files have already been created."<<"\n" ; } system("PAUSE"); }
" void value not ignored as it ought to be"
" expected `)' before ';' token "
"expected `;' before ')' token "
Any help is appreciated!



3Likes
LinkBack URL
About LinkBacks


