How to make C++ cout not use scientific notation
Use std::fixed stream manipulator: cout<<fixed<<“Bas ana: “<<x<<“\tSon faiz: “<<t<<“\tSon ana: “<<x+t<<endl;
Use std::fixed stream manipulator: cout<<fixed<<“Bas ana: “<<x<<“\tSon faiz: “<<t<<“\tSon ana: “<<x+t<<endl;
Just telling you about one other possibility: I like using friend definitions for that: namespace Math { class Matrix { public: […] friend std::ostream& operator<< (std::ostream& stream, const Matrix& matrix) { […] } }; } The function will be automatically targeted into the surrounding namespace Math (even though its definition appears within the scope of … Read more