C or C++?

Jeff Macdonald macfisherman at gmail.com
Fri May 27 14:57:00 EDT 2005


On 5/27/05, Bill Sconce wrote:
> If it were me I'd go with C++.  C++ allows better commenting.

How so?

[jeff at jmacdonald-work mda]$ gcc -Wall -o hello foo.c
[jeff at jmacdonald-work mda]$ cat foo.c
#include <stdio.h>
int main(int argc, char *argv[])
{
  printf("hello world\n");
  // std beginner program
  return(0);
}
[jeff at jmacdonald-work mda]$ gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=i386-redhat-linux
Thread model: posix
gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
[jeff at jmacdonald-work mda]$ ./hello
hello world

-- 
Jeff Macdonald
Ayer, MA



More information about the gnhlug-discuss mailing list