template example
Alfred Perlstein
bright at mu.org
Sat Dec 28 08:39:59 UTC 2013
On 12/27/13 7:41 PM, Joe Nosay wrote:
> I need a working example of C and C++ that will run using clang. I have to
> go head first into code and I learn by using an example, replacing
> variables, and then running. The standard "Hello World!" doesn't seem to
> work. What I would like to do is run commands from within the file.
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
#include <iostream>
#include <stdlib.h>
int
main(int Argc, char **Argv)
{
int rv;
rv = system("echo hello world");
std::cout << "return status from system call is: " << rv << std::endl;
return (rv);
}
?
--
Alfred Perlstein
More information about the freebsd-hackers
mailing list