Question #42124

Write a C++ statement that prints the values of the data members of the object x

Expert's answer

If your class values are public:cout << x.value1 <<x.value2 << x.value3 << endl;
LATEST TUTORIALS
APPROVED BY CLIENTS