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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -