I am trying to create a file of fixed size. I am using setw() e.g.
43 68 + 169161408
115 287 + 169161408
I am using setw() after first column
cout<<col1<<set w(20)<<col2<<se tw(20)<<col3<<s etw(20)<<col4<< endl;
But still all records are not of fixed length I have calculated the length but in some cases it is coming different.
Regards
Manish
43 68 + 169161408
115 287 + 169161408
I am using setw() after first column
cout<<col1<<set w(20)<<col2<<se tw(20)<<col3<<s etw(20)<<col4<< endl;
But still all records are not of fixed length I have calculated the length but in some cases it is coming different.
Regards
Manish
Comment