|
-
August 22nd, 2007, 01:04 PM
#1
run programs from command prompt
Is there a way to run programs from C++ so that it executes a command in a linux command prompt?
say I wanted to execute several lines of code in the linux command prompt:
> myprogram.exe
> dot -o run.jpg run.dot
> xemacs file.cc
> ...etc...
and I wanted to do these hypothetical commands by running a C++ file:
> g++ -o runthis.exe runthis.cc
> runthis.exe
What is the syntax that I should use to be able to do this? And is there a way?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|