Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++

Name: Anonymous 2009-02-08 17:37

Why is it bad?

Name: Anonymous 2009-02-09 1:25

>>20
are you sure?

#include <iostream>

using std::cout;
using std::endl;

int main() {
   cout << "Testing bad()" << endl;
   cout << cout.bad() << endl;

   return 0;
}


$ g++ ./testBad.cpp -o ./testBad

$ ./testBad
Testing bad()
0

Name: Anonymous 2009-02-09 1:47

>>21
Clearly troll. The parent said std::ios::bad() while you plainly used std::cout.bad().

Name: Anonymous 2009-02-09 1:59

>>21-23
YHBT

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List