Re: Did Microsoft slightly change C++ language in 2008?
Re to your subject: Impossible. The C++ language is an ISO standard and not
controlled by a single company.
ericmatteson2003november@hotmail.com wrote:
The textbook for the traditional C++ class that I had
in Fall of 2001 at communnity college for
the Microsoft Visual C++ 6.0
C++ compiler had examples like
cout << endl;
that worked with Microsoft Visual C++ 6.0
In 2008 the new Microsoft Visual Studio 2008 Express Edition
C++ no longer supports traditional cout by itself.
Well, the ten years old, pre-standard implementation has been replaced with
something that is closer to the standard.
On the Microsoft website they had an example similar to
std::cout << std::endl
Then after changing this old C++ calculator program
by using a std:: before every member of the iostream
class it started working.
Yes, and that is what is required by the standard. If you happen to have any
book that doesn't teach you this, it is probably seriously outdated. Check
it against the reviews at http://accu.org, which is also a good source for
reviews before buying a book.
<iostream.h> was also changed to <iostream>
Similarly to the 'std::' namespace qualification, <iostream.h> is
pre-standard C++.
// zackint is class of 256 bit integer arithmetic
// in slow motion on a 32-bit CPU
class zackint
{
[snip 1k5 lines of code. ]
Two things:
1. If you want help on code, condense your code to a minimal example.
Dumping that amount of code at an audience just helps to piss off people,
because it looks like you are just lazy.
2. The code is horrible. You need to get a good(!) book that teaches C++.
Also consider reading alt.comp.lang.learn.c-c++, but firstly make yourself
familiar with Usenet etiquette.
Uli
--
C++ FAQ: http://parashift.com/c++-faq-lite
Sator Laser GmbH
Gesch??ftsf??hrer: Thorsten F??cking, Amtsgericht Hamburg HR B62 932