New to Linux, have some simple question

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:

  1. is "test" the name of my cpp file or the name of my function?
  2. 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

It seems you need to create a script which is called "test" which has same function of your c++ program.
your data file needs to be in your current directory where a script is otherwise you need to indicate a absolute path.

Cheers,