// C++ code to demonstrate
// the working of good() function
#include <bits/stdc++.h>
using namespace std;
int main()
{
// Stream
stringstream ss;
// Using good() function
bool isGood = ss.good();
// print result
cout << "is stream good: "
<< isGood << endl;
return 0;
}