for some odd reason when i compile this c++ program i get errors
#include <iostream.h>
int main()
{
system("telnet localhost");
return 0;
}
any ideas?
(using g++)
This is a discussion on system() within the Linux Programming forums, part of the Platform Specific Boards category; for some odd reason when i compile this c++ program i get errors #include <iostream.h> int main() { system("telnet localhost"); ...
for some odd reason when i compile this c++ program i get errors
#include <iostream.h>
int main()
{
system("telnet localhost");
return 0;
}
any ideas?
(using g++)
--== www.NuclearWasteSite.com==--
You need to include <cstdlib> or <stdlib.h> depending on which one your compiler will accept.
-Prelude
My best code is written with the delete key.