X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=pom.git;a=blobdiff_plain;f=pom.cc;h=0f4a91ba4752c00160629b17afb2400a3c268d1c;hp=0299b8b90c851b82c6a633cb6469505e77aa0b0d;hb=HEAD;hpb=12b332fa8c9cabbc8848b9507aa4bc4f58a60dd1 diff --git a/pom.cc b/pom.cc index 0299b8b..0f4a91b 100644 --- a/pom.cc +++ b/pom.cc @@ -52,7 +52,7 @@ int main(int argc, char **argv) { << 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 printout on the" << + << " 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); } }