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 ...

Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.