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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -