i cant find my problem, it says "missing ) before string"
but i think i have all my ')' 's
Code:
if((convert == "edit") || (convert == "Edit") || (convert == "EDIT"))
{
edit_file.open(tfilename.c_str(), ios::app);
cho = 1;
goto theend;
}
else if((convert == "new") || (convert == "New") || (convert == "NEW"))
{
new_file.open(tfilename.c_str());
cho = 2;
goto theend;
}
else if((convert == "read") || (convert == "Read") || (convert "READ"))
{
read_file.open(tfilename.c_str(), ios::in);
cho = 3;
goto theend;
}
else if((convert == "exit") || (convert =="Exit") || (convert == "EXIT"))
{
cho = 4;
goto theend;
}
o yea, on a side note,,,would this work , right after this
Code:
cho = (int)convert.c_str()[0];