So, I've been using C++ for a little bit now and I love a lot of the language. But there's one thing I've noticed about C++ that's kind of weak when compared to C and it's mostly when I debug.
I'm one of those guys like std100something or w/e who prefers to use print statements to debug code. For me, I don't type anything until I have a good idea of what's gonna happen and if my code should fail, I like to use print flags to narrow it all down and it works well. I hate IDEs.
So, the more I use C++ and am encountering more complex errors, I find myself using printf() simply because it's easier for me to type,
in lieu of
printf("(%f, %f, %f)\n", p->x, p->y, p->z);
Yeah, guess which one is easier to type? The answer is the first one!
cout << "(" << p->x << ", " << p->y ", " << p->z << ")" << endl;
cout's useful because it'll just print anything but that's also a curse at the same time.
When it comes printing things, I think I prefer printf() a lot more than cout even though cout makes things look soooo sexy.