You are viewing a single comment's thread. Return to all comments →
using namespace std;
class A { public: A() { int n; long l; char ch; double f; double d; cin >> n >> l >> ch >> f >> d; cout << n << endl; cout << l << endl; cout << ch << endl; cout << fixed << setprecision(15) << f << endl; cout << fixed << setprecision(15) << d << endl; } };
int main() { A obj; return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Basic Data Types
You are viewing a single comment's thread. Return to all comments →
include
include
using namespace std;
class A { public: A() { int n; long l; char ch; double f; double d; cin >> n >> l >> ch >> f >> d; cout << n << endl; cout << l << endl; cout << ch << endl; cout << fixed << setprecision(15) << f << endl; cout << fixed << setprecision(15) << d << endl; } };
int main() { A obj; return 0; }