C++ stream class



The iostream library <iostream.h> is an object-oriented library that provides input and output functionality using streams. 
In C++, we have the standard iostream library, which contains the following elements:
iostream,एक ऑब्जेक्ट ओरिएंटेड लाइब्रेरी है जो स्ट्रीम की सहायता से इनपुट एवं आउटपुट सम्बंधित कार्यप्रणाली प्रदान करती है।
C++ में हमारे पास एक स्टैण्डर्ड iostream लाइब्रेरी होती है जो निम्न अवयव रखती है :-   
Basic class templates (मूलभूत क्लास टेम्पलेट)
Class template instantiations (क्लास टेम्पलेट के इंस्टैंस)
Standard objects (स्टैण्डर्ड ऑब्जेक्टस)
Types (प्रकार)
Manipulators (मैनीपुलेटरस)

<ios>, <istream>, <ostream> and <streambuf> describe the base classes of the hierarchy and are automatically included by other header files of the library that contain derived classes like <iostream>. It declares the objects used to communicate through the standard input and output (including cin and cout etc).
<ios>, <istream>, <ostream> व्  <streambuf> के द्वारा वंशावली की बेस क्लासेस को प्रदर्शित किया जाता है एवं इन्हें लाइब्रेरी की अन्य हैडर फाइल्स <iostream> (जो डीराइव क्लास रखती है) के द्वारा विरासत में लिया जाता है। यह इनपुट आउटपुट से संवाद करने के लिए ऑब्जेक्ट (जैसे cin एवं cout इत्यादि) को परिभाषित करती है। 
<fstream> defines the file stream classes (like the template basic_ifstream or the class ofstream) as well as the internal buffer objects (with basic_filebuf). These classes are used to manipulate files using streams.
<fstream> द्वारा फाइल स्ट्रीम क्लासेस (जैसे basic_ifstream टेम्पलेट या  ofstream क्लास) एवं आतंरिक बफर ऑब्जेक्ट ( जैसे basic_filebuf) को परिभाषित किया जाता है। ये क्लासेस स्ट्रीम की सहायता से फाइल का कुशलतापूर्वक प्रयोग करती है। 
  
<sstream> file is used to manipulate string objects using streams.
<sstream> फाइल का प्रयोग, स्ट्रीम की सहायता से स्ट्रींग ऑब्जेक्ट्स का कुशलतापूर्वक प्रयोग करने के लिए किया जाता है। 

<iomanip> declares some standard manipulators like endl, setw(), setfill(), setprecision() etc for formatting output.
<iomanip> के द्वारा कुछ स्टैण्डर्ड मैनीपुलेटर जैसे endl, setw(), setfill(), setprecision() इत्यादि को परिभाषित किया गया है, जो आउटपुट को फॉरमेट करने का कार्य करते है।

Comments

Popular posts from this blog

OOPs using C++ Language Topics Covered

IMP Questions of OOPS using CPP