H
Hagar
I am currently learning C++ and am into a project for the end of the
semester finals. Everything is rosy except for one feature that I want
to include and can't find in my very large and expensive C++ books. Plus,
I don't want to ask the instructor because that will give my project away.
How do you call an external non C++ program, or possibly a system
function? For instance, I have some very good Perl modules from my last
class that parse text files and I would like to call them from a menu in
my C program. (Why the heck, you say? Because in theory, my program can
call external scripts that can be changed by the assumed user and if they
were compiled into MAIN then they would be fixed functions. Remember,
this is for credit, not deployment.)
But I don't find anything (or maybe don't recognize it) in
my manuals - calling, external calls, external functions, system, system
calls, etc - apparently none of the above. I even spent some time in the
local Booksamillion looking through their stacks (for free, I admit it)
and didn't find the keyword I am looking for.
What is interesting is that I can easily call a C program from a Perl
script, but not the other way around.
Anybody?
Thanks all
Hagar (but not too horrible).
semester finals. Everything is rosy except for one feature that I want
to include and can't find in my very large and expensive C++ books. Plus,
I don't want to ask the instructor because that will give my project away.
How do you call an external non C++ program, or possibly a system
function? For instance, I have some very good Perl modules from my last
class that parse text files and I would like to call them from a menu in
my C program. (Why the heck, you say? Because in theory, my program can
call external scripts that can be changed by the assumed user and if they
were compiled into MAIN then they would be fixed functions. Remember,
this is for credit, not deployment.)
But I don't find anything (or maybe don't recognize it) in
my manuals - calling, external calls, external functions, system, system
calls, etc - apparently none of the above. I even spent some time in the
local Booksamillion looking through their stacks (for free, I admit it)
and didn't find the keyword I am looking for.
What is interesting is that I can easily call a C program from a Perl
script, but not the other way around.
Anybody?
Thanks all
Hagar (but not too horrible).