Re: c++ hello world help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thus spake Kevin Mark:
# gcc works with C programs.
# but c++ programs cant find the libs.
# =====================================================
#
# ~/cpluscplus\% cat page23.cpp
# #include <iostream.h>
# int main() { cout << "Hello, World!\n"; return 0; }
Try this instead:
#include <iostream>
using namespace std;
int main() { cout << "Hello, World!\n"; return 0; }
This should solve your problems.
HTH and HAND,
PRINCE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAtcyCAl2SNUPt1I8RAmN8AJoD4M03VkA0yk9fwW2cMPoKiwPPJwCfWI2O
BOLO+5FnWdLTJ4CJJ9FeG40=
=CBnK
-----END PGP SIGNATURE-----
Reply to: