
Want to ask next group bosses how this exe executable program implementation, to read the file directly into the line

How do I write my own code to modify to achieve the above in that way, you don't have to write file location in application to death
CodePudding user response:
Define a string, read from the input stream path defined ifstream is initialization parameters for the stringCodePudding user response:
String s;Cout<" Input laser file path: ";
Cin> s;
Ifstream iFilel (s);
CodePudding user response:

Command line input program very basic introduction, gets the scanf and so on
CodePudding user response:
String s input s againCodePudding user response:
The string filename.Cin & gt; & gt; The filename.
Ifstream infile.
Infile. Open (filename, "r");
CodePudding user response: