The code is not quite on Dee. I want to ask if you can somehow arrange the following code through the switch block. I think it would make the code more beautiful. Or tell me any other option, as the same could be written:
if( (command == 1) && openFile(&file, "r") ) { readFile(file, &dataArray, selectSpecifier()); // считали данные из файла if( ! checkData(&dataArray) ) { // проверяем файл writeln("Erroneous file content! "); } If anything, you can set an example in C # or C ++, I will try to rewrite your decision on Di.