I wonder how to interface octave with c++
I already have m-file that can run on octave but I want to run a C++ program that can get/send command from/to octave

Anyone can guid me? Is there any link for the tutorial or example code?

I haven't yet, but I think may be some of community have experienced with it.

When working with something as specialized as that it's best to start with their own forums and mailing lists. Posting such questions on public forums like DaniWeb is a little like trying to hit the moon with a BB gun