Hello I'm a BME student and don't have so much information on programming. I found a simple program on the internet that I could perfectly use to run my data but it only accepts input by hand. I want to make it automated with the data files I have as it takes so much time entering all the values one by one. Could you please help me to integrate some module to make that possible? I did not want to put the entire program as the code is very long, but the input part is below:
int m;
cout << "Enter the MRI number" << endl;
cin >> m;
cout << "Enter the extensions one by one" << endl;
for (i=1; i<=m; i++)
cin >> a[i];
So the main logic of the program is:
1) Enter the total number of MRI extensions >> 4
2) Enter the MRI extensions >> 12131415 12131411 12131419 12131421
3) Run the algorithm and get the output
And my data file will be like this:
4
12131415
12131411
12131419
12131421
Roughly this is the process, but my data files contain around 70-75 extensions each but not 4 as it is in the example above.
Any kind of help will be much appreciated. Thanks!
p/s if my question somehow violates the rules of asking question, I am really sorry. I read that my question should be including some work done by me, but I really do not know how to handle this.