Standard Namespace (std) in C++
The C++ Standard Library defines its library names, including standard functions, classes, objects, and templates, in a namespace called std . The namespace std stands for Standard Namespace. It contains standard library elements such as: cout – Used to display output. cin – Used to accept input. endl – Used to insert a new line and flush the output stream. string – Used to declare string objects. vector – Used to create dynamic arrays. sort() – Used to sort elements. C++ Standard Library अपने Library Names जैसे Functions, Classes, Objects और Templates को std नामक Namespace में परिभाषित करती है। std का अर्थ Standard Namespace है। इसमें Standard Library के अनेक Elements उपलब्ध होते हैं, जैसे cout , cin , endl , string , vector और sort() आदि। Using the Standard Namespace ( using namespace std ) The statement using namespace std; allows programmers to access names from the standard namespace without writing the std:: prefix every time. It is generally written after the header...