Re: getting started help!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This works (on my Linux box)

[fwyzard@localhost test]$ cat test.cc
#include <iostream>
int main (void)
{
  std::cout << "It works!" << std::endl;
  return 0;
}

[fwyzard@localhost test]$ g++ test.cc -o test
[fwyzard@localhost test]$ ./test
It works!
[fwyzard@localhost test]$

Note: the changes I've made to your code are purely aesthetycal - a "\n" after the cout and an exit coe of 0 indicating success...



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux