Posts

Showing posts with the label cin and cout

Predefined Streams in C++ (cin, cout, cerr and clog) - Explained with Examples

C++ provides four predefined standard stream objects: cin , cout , cerr , and clog . These objects are used to perform input and output operations through standard devices. They are declared in the <iostream> header file and are available in the std namespace. The C++ input/output stream library provides classes such as istream, ostream, and iostream. The objects cin, cout, cerr, and clog are associated with these stream classes. C++ में चार Predefined Standard Stream Objects उपलब्ध होते हैं: cin , cout , cerr और clog । इन Objects का उपयोग Standard Devices के माध्यम से Input और Output Operations करने के लिए किया जाता है। ये सभी <iostream> Header File में Declared होते हैं तथा std Namespace में उपलब्ध होते हैं। C++ की Input/Output Stream Library में istream , ostream और iostream जैसी Classes उपलब्ध होती हैं। cin , cout , cerr और clog Objects इन Stream Classes से संबंधित होते हैं। Types of Predefined Streams in C++ | C++ में Predefined Streams के प्रकार C++ provi...