home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_07
/
1107106b
< prev
next >
Wrap
Text File
|
1993-04-29
|
283b
|
17 lines
// width.cpp: Control width of input strings
#include <iostream.h>
#include <iomanip.h>
main()
{
char s1[10], s2[3], s3[20];
cin >> setw(10) >> s1
>> setw(3) >> s2
>> s3;
cout << s1 << ',' << s2 << ',' << s3 << endl;
return 0;
}