Hi All,
Here is the problem: I have done a c++ code in Visual Studio 2010, it's a simple project that only have one main function which takes 2 parameters: an integer and a file that stores data. Now, I am asked to write a shell script in linux to execute my main function. I asked my professor about how to do this, he replies:
"Let's say you've created an executable called �test' that takes two arguments �file' and �id'. Then your script would be:
#!/bin/bash
test $1 $2"
my questions are:
- is "test" the name of my cpp file or the name of my function?
- if I have to pass a file as an argument, where should I place my data file?
overall, I just need some basic idea of how to execute my cpp file using shell script, please provide more detail if possible.
Thanks you all in advance. Greatly appreciated!
Best,
Eason Zhang