hey guys im on chapter 3 on my C++ book im really learning fast
here is a bit of my code ive been studying
Code:
#include <iostream>
#include <iomanip> // this header file is for the setprecision manipulator
using namespace std; // this is a shortcut
// inluding each item in the std
//namespace, just include them
//all
int main()
{
cout << 2002 <<endl;
cout << "In hex " << hex<< 2002 <<endl;
cout.setf(ios::scientific,ios::12345 <<endl;
cout <<987.123456(3) << 987.123456 <<endl;
cout.fill('X');
cout.width(10);
cout << 1234 <<endl;
cout.setf(ios::left,ios::adjustfield);
cout.width(10);
cout << 1234 <<endl;
return 0;
}
go ahead and some of you can maybe study this code abit like me
Told ya im learning