void error (char *ERROR_STRING, int ERROR_NUMBER) { if (strcmp(ERROR_STRING,"")!=0) printf("Programfehler %2d: %s\n(systemerror %2d: %s)",ERROR_NUMBER, ERROR_STRING,errno,sys_errlist[errno]); else printf("systemerror %2d: %s",errno,sys_errlist[errno]); where=_gettextposition(); taste(where.row+2,1); }
QString Food::writeElement() { QString xml; xml += indent() + "<food>\n"; indent( 2 ); xml += indent() + "<name>" + name() + "</name>\n"; xml += indent() + "<taste>" + taste() + "</taste>\n"; indent( -2 ); xml += indent() + "</food>\n"; return xml; }