#include <iostream>
#include <iomanip>
using namespace std;
int main() {
//cout.flush() cout.put() cout.write() cout.width() cout.fill() cout.setf()
cout << "test" << endl;
cout.put('1').put('2');
cout << endl;
char* text = "this is test data";
cout.write(text, strlen(text))<<endl;
cout << "<start>";
cout.width(10);
cout.fill('#');
cout.setf(ios::showbase);
cout.setf(ios::internal);
cout << hex << 255 << "<end>\n";//<start>0x######ff<end>
cout << endl;
cout << "<start>"
<< setw(10)
<< setfill('*')
<< setiosflags(ios::showbase)
<< setiosflags(ios::internal)
<< hex
<< 255
<< "<end>"
<< endl; //<start>0x******ff<end>
system("pause");
return 0;
}