stdin, stderr und stderr <-> std::cout, std::cin und std::cerr
-
Ich beiss mich gerade durch das Buch "THE UNIX PROGRAMMING ENVIRONMENT", von den Unix- und c-Erfindern.
Dort wird gesagtWhen a program is started, three files are open already, and file pointers are provided for them. These files are the standard input, the standard output and the standard error output; the corresponding file pointers are called stdin,stdout and stderr, from the type FILE*
In C++ muessten die Aequivalente ja std:cout, std::cin und std::cerr sein.
Ist das so korrekt? Gibt es noch mehr? ........ std::clog?
-
ist korrekt und mehr gibts nicht.
-
clog gibts auch. Der Unterschied zwischen cerr/clog ist nur das eins gepuffert ist und das andere nicht.
MfG SideWinder
-
oh
-
SideWinder schrieb:
clog gibts auch. Der Unterschied zwischen cerr/clog ist nur das eins gepuffert ist und das andere nicht.
Als Ergänzung: clog ist gepuffert
-
stdin, stderr und stdout gibt es natürlich auch der C Kompatibilität wegen.