I have a program that takes input from stdin and also takes some parameters from command line. It looks like this: cat input.txt > mypr
I have a program that takes input from stdin and also takes some parameters from command line. It looks like this:
cat input.txt > mypr
For completeness' sake upon starting a debugging session there is also the --args option. ie)
gdb gdbarg1 gdbarg2 --args yourprog arg1 arg2 -x arg3