two questions

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

1)
Is there any free software that can pretty up my C code.

2)
I remember years ago something different happens if the extension on the
code file is .c rather than .cpp.
Is that still the case and if so what is the difference.


Thanks in advance
 
I remember years ago something different happens if the extension on the code file
is .c rather than .cpp.
Is that still the case and if so what is the difference.

Today is still valid...

..c files are compiled like C source files (unless you use /TP compiler flag)
..cpp are compiled like C++ source files (unless you use /TC compiler flag)
 
Isn't C a subset of C++??

Thanks a lot.



Cholo Lennon said:
Today is still valid...

.c files are compiled like C source files (unless you use /TP compiler
flag)
.cpp are compiled like C++ source files (unless you use /TC compiler flag)
 
Frank said:
Very interesting site. I've wondered if he was still active.

Not only is he still active, he's working on the next set of upgrades to the
C++ standard, called C++0x, which will include most of the new things in C99
into the C++ standard. Most compilers already have the extra C99 stuff
already, as vendor extensions to C++.

The major remaining difference between C and C++, that won't go away, is
that C provides a lot of defaults (default int return value, default
prototype) whereas C++ forces the programmer to specify the correct
information.
 
Thanks

Ben Voigt said:
Not only is he still active, he's working on the next set of upgrades to
the C++ standard, called C++0x, which will include most of the new things
in C99 into the C++ standard. Most compilers already have the extra C99
stuff already, as vendor extensions to C++.

The major remaining difference between C and C++, that won't go away, is
that C provides a lot of defaults (default int return value, default
prototype) whereas C++ forces the programmer to specify the correct
information.
 
Back
Top