using cout.

cout

See version :

Pas de dépendances

Download :

#include <iostream>
using namespace std;

int main () 
{
  int n = 70;
 // premier test 
  cout << hex << n << endl;
  cout << dec << n << endl;
  cout << oct << n << endl;
// deuxieme test
  cout.flags ( ios::internal | ios::hex | ios::showbase );
  cout.width (10);
  cout << 100 << "plouf" << endl;
// troisième test
  double f = 103.76123456;
  cout << fixed << f << endl;
  cout << scientific << f << endl;
  cout.precision(11);
  cout << fixed << f << endl;

  return 0;
}



Explanations

	No explanations yet.