Jump to content
7 posts in this topic

Recommended Posts

Well you wouldn't see the Terminal window at all by calling system(), but here's a C++ example of how you can use it:

 

#include <iostream>

int main (int argc, char * const argv[]) 
{
system("echo hi");
return 0;
}

 

To use it, you basically just pass a string that contains whatever you want Terminal to do.

Ahh! Thanks a lot. This will b very helpful, since I am looking into a compiler on mac that compiles programs for the Playstation Portable (more info on that at ps2dev.org). So the only difficult part would be the file browsing on selecting you code and everything.

 

Acourse this would included a GUI :P

 

So, now I need to learn that, and become a bit more familiar with objective-c and cocoa, and I'm on my way :P

×
×
  • Create New...