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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -