c++ - Multiple times input a file to a executable file -
i working on learning algorithm, , giving inputs command line using input file, following:- c:\user\document> sbp < input.txt
but want input file multiple times(not definite) till training error not below threshold, how can it..
you can either give multiple times on command line,
./command.exe input.txt input.txt input.txt
or give once
./command.exe input.txt
and open multiple times when need
int main(int argc, char **argv) { (int = 0; < 3; ++i) { std::ifstream f(argv[1]); // process input } }
Comments
Post a Comment