Moderators: phlip, Moderators General, Prelates
print IsContinuumHypothesisTrue();Proginoskes wrote:Interesting that C++ took a nosedive around 2005 ... That was about when some of the standards were changed (including the addition of namespaces).
Proginoskes wrote:Interesting that C++ took a nosedive around 2005 ... That was about when some of the standards were changed (including the addition of namespaces).
And I'm surprised that Perl isn't more popular;
TNorthover wrote:And I'm surprised that Perl isn't more popular;
Not quite the word I'd use. "Gratified" is closer.
Proginoskes wrote:Interesting that C++ took a nosedive around 2005
Wnderer wrote:what happened to Java in 2004
Great Justice wrote:Wnderer wrote:what happened to Java in 2004
Try reading the FAQ on the same page... which basically proves my point - statistics based on google skillz are now ACCURATE TO THREE DECIMAL PLACES!
Q: What happened to Java in April 2004? Did you change your methodology?
A: No, we did not change our methodology at that time. Google changed its methodology. They performed a general sweep action to get rid of all kinds of web sites that had been pushed up. As a consequence, there was a huge drop for languages such as Java and C++. In order to minimize such fluctuations in the future, we added two more search engines (MSN and Yahoo) a few months after this incident.
EvanED wrote:Proginoskes wrote:Interesting that C++ took a nosedive around 2005 ... That was about when some of the standards were changed (including the addition of namespaces).
Um, no?
The first standard was published in 1998 (including namespaces), and the second in 2011. There was a revision around 2003 but those were only minor, and the publication of TR1, but that was only library additions.
#include <iostream.h>
main () {
cout << "C++ programming is fun." << endl;
}Edit had "editions" instead of "additions"
Proginoskes wrote:EvanED wrote:Proginoskes wrote:Interesting that C++ took a nosedive around 2005 ... That was about when some of the standards were changed (including the addition of namespaces).
Um, no?
The first standard was published in 1998 (including namespaces), and the second in 2011. There was a revision around 2003 but those were only minor, and the publication of TR1, but that was only library additions.
The first C++ book I got (C++ by Till Jeske) didn't mention namespaces at all, and it was published in20052002.
It took me a long time to figure out what I was doing wrong; I couldn't even get a "Hello world" program to work in C++. In fact, the very first program mentioned in that book is
- Code: Select all
#include <iostream.h>
main () {
cout << "C++ programming is fun." << endl;
}
phlip wrote:Sounds like the book was just quite out of date when it was printed.
One thing I've seen with some C++ implementations is that eg #include <iostream> will bring in all the iostream declarations in the std namespace, while #include <iostream.h> will bring them in in the global namespace. The with-extension header basically just including the standard header with a bunch of using declarations.
AFAICT that isn't actually specified anywhere in the standard, and those libraries are just doing it for compatibility (with older versions of the implementation that predated the standard proper, and had headers with .h extensions and no namespaces).
EvanED wrote:I don't know for sure that this is true on modern implementations (or if the implementers got tired of maintaining both versions), but I think there are some other technical differences as well regarding error conditions and maybe a couple other things. There at least were between the historical iostreams libraries and the standardized one.
#ifndef _BACKWARD_IOSTREAM_H
#define _BACKWARD_IOSTREAM_H 1
#include "backward_warning.h"
#include <iostream>
using std::iostream;
using std::ostream;
using std::istream;
using std::ios;
using std::streambuf;
using std::cout;
using std::cin;
using std::cerr;
using std::clog;
#ifdef _GLIBCXX_USE_WCHAR_T
using std::wcout;
using std::wcin;
using std::wcerr;
using std::wclog;
#endif
using std::ws;
using std::endl;
using std::ends;
using std::flush;
#endifEvanED wrote:Proginoskes wrote:EvanED wrote:Proginoskes wrote:Interesting that C++ took a nosedive around 2005 ... That was about when some of the standards were changed (including the addition of namespaces).
Um, no?
The first standard was published in 1998 (including namespaces), and the second in 2011. There was a revision around 2003 but those were only minor, and the publication of TR1, but that was only library additions.
The first C++ book I got (C++ by Till Jeske) didn't mention namespaces at all, and it was published in20052002.
Then it wasn't a very good book.(To be fair I'm not sure what proportion of C++ books at that point were good.)
cout << "'num' has a value of " << count << endl;Kitutal wrote: we need one universal standard language
Kitutal wrote:we need one universal standard language, any suggestions..?
Proginoskes wrote:The first C++ book I got (C++ by Till Jeske) didn't mention namespaces at all, and it was published in20052002.
It took me a long time to figure out what I was doing wrong; I couldn't even get a "Hello world" program to work in C++. In fact, the very first program mentioned in that book is
Users browsing this forum: No registered users and 2 guests