X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=pom.git;a=blobdiff_plain;f=pom.cc;h=0f4a91ba4752c00160629b17afb2400a3c268d1c;hp=20498fe7cf975baf7de8cae1de0310022ccc8ba4;hb=HEAD;hpb=97a7e68f234cc09807d2d55f550e2516be0e9093 diff --git a/pom.cc b/pom.cc index 20498fe..0f4a91b 100644 --- a/pom.cc +++ b/pom.cc @@ -50,10 +50,10 @@ int main(int argc, char **argv) { if(strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { cout << argv[0] << " [-h | --help | ]" << endl << endl - << " If a configuration file name is provided, the programs processes it" << endl + << " If a configuration file name is provided, the program processes it" << endl << " and prints information about the files it generates. Otherwise, it" << endl - << " reads the standard input and does not produce any output unless an" << endl - << " error occurs." << endl + << " reads the standard input and does not produce any printout on the" << endl + << " standard output unless an error occurs." << endl << endl; exit(0); } @@ -176,13 +176,14 @@ int main(int argc, char **argv) { else solver.solve(room, &prior, proba_views, &proba_presence, f, 0); - if(strcmp(result_view_format, "") != 0) + if(strcmp(result_view_format, "") != 0) { for(int c = 0; c < room->nb_cameras(); c++) { pomsprintf(buffer, buffer_size, result_view_format, c, f, 0); if(configuration_file) cout << "Saving " << buffer << endl; room->save_stochastic_view(buffer, c, (*proba_views)[c], &proba_presence); } + } if(strcmp(result_format, "") != 0) { pomsprintf(buffer, buffer_size, result_format, 0, f, 0); @@ -302,7 +303,7 @@ int main(int argc, char **argv) { else if(strcmp(buffer, "") == 0 || buffer[0] == '#') { } else { - cerr << "Unknown token " << token << "."; + cerr << "Unknown token " << token << "." << endl; exit(1); } }