T
Tayfun Ozdemir
Hello there,
In my program If user enters console parameters I will use first
parameter as input file. If user does not enter anything I will use
default (cin).
If I were programming in C I would do that by using global FILE
pointers. Is there any better C++ looking way to that?
Example:
..
..
..
if (argc > 1) {
// use argv[1] file in all modules(cpp files)
}
else {
// continue using cin
}
Thank you so much for your time.
Tayfun Ozdemir.
In my program If user enters console parameters I will use first
parameter as input file. If user does not enter anything I will use
default (cin).
If I were programming in C I would do that by using global FILE
pointers. Is there any better C++ looking way to that?
Example:
..
..
..
if (argc > 1) {
// use argv[1] file in all modules(cpp files)
}
else {
// continue using cin
}
Thank you so much for your time.
Tayfun Ozdemir.