11.1 INTRODUCTION
In the early days of computing, programmers used FORTRAN. It's input/output (I/O) was highly formatted. When “ALGOL” was introduced, it brought the concept of format-free input/output. All the programmers loved it. Later Pascal also supported it. Unfortunately, C did not support it in full spirit. However, C++ does support it.
You will ask, what is format-free input/output? Format-free input means the capability of read instruction to read variable values separated by any number of white space characters. There is no specification of the width.
Format-free output means the capability of output statement to print values of the variables without specification of field width.
Format-free input is very good because it can read formatted ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access