How to using manipulators to format output in C++

1 Answer

0 votes
#include <iostream>
#include <iomanip> 

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

int main()
{
	cout.setf(ios::showpoint);
	
	cout << 748364.0 << endl;

	return 0;
}


/*
run:

748364.

*/

 



answered Apr 6, 2018 by avibootz

Related questions

1 answer 196 views
1 answer 139 views
139 views asked Apr 6, 2018 by avibootz
1 answer 209 views
...