[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] c++ & mem
On Thu, Dec 07, 2000 at 07:52:06PM -0000, Alex Hudson wrote:
> >Hi there, I am using Mandrake v7.1.
> >I have two hopefully easy questions:-
> >1). when I compile a c++ file e.g.
> >#include <stdio.h>
> >
> >int main ()
> >{
> >printf("hi there/n");
> >return 0;
> >}
>
> Nope, sorry, that's C ;) C++ is...
>
> #include <iostream.h>
>
> int main()
> {
> cout << "Hi there!\n";
> return (0);
> }
>
> . and even that's "C-like" C++ ;)
>
Actually, as C++ is defined as a superset of C, both of those
programs _are_ C++. It's just that one of them is also C ;)
A.D.
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.