Now You Become A Developers


devendra rajput
Basic Code For C++

#include <iostream> int main() { std::cout << "Hello, World!" << std::endl; return 0; }
Code by devendrasing rajput 

This program outputs the string "Hello, World!" to the console. The line #include <iostream> includes the iostream library, which provides input and output streams, such as cout (stands for console output) and endl (inserts a newline character). The main function is the entry point of the program and every C++ program must have it. The return 0; statement at the end of the main function indicates that the program executed success filly

This code includes the iostream library, which provides access to the standard input/output functions in C++, such as cout. The main function is the entry point of the program and is automatically executed when the program starts.

In this example, the cout function is used to output the string "Hello, World!" to the console. The endl at the end of the line is a stream manipulator that inserts a newline character and flushes the buffer associated with cout.

Finally, the return 0 statement indicates that the main function has completed successfully. This is a common convention in C++, and a return value of 0 indicates that the program has executed without any errors.

यह प्रोग्राम स्ट्रिंग "हैलो, वर्ल्ड!" कंसोल के लिए। लाइन #include <iostream> में iostream लाइब्रेरी शामिल है, जो इनपुट और आउटपुट स्ट्रीम प्रदान करती है, जैसे cout (कंसोल आउटपुट के लिए खड़ा है) और endl (एक नई पंक्ति वर्ण सम्मिलित करता है)। मुख्य कार्य कार्यक्रम का प्रवेश बिंदु है और प्रत्येक सी ++ प्रोग्राम में यह होना चाहिए। वापसी 0; मुख्य समारोह के अंत में बयान इंगित करता है कि कार्यक्रम ने सफलता को सफलतापूर्वक निष्पादित किया इस कोड में iostream लाइब्रेरी शामिल है, जो C++ में मानक इनपुट/आउटपुट फ़ंक्शंस तक पहुँच प्रदान करती है, जैसे कि cout। मुख्य कार्य कार्यक्रम का प्रवेश बिंदु है और कार्यक्रम शुरू होने पर स्वचालित रूप से निष्पादित होता है। इस उदाहरण में, cout फ़ंक्शन का उपयोग "Hello, World!" स्ट्रिंग को आउटपुट करने के लिए किया जाता है। कंसोल के लिए। लाइन के अंत में एंडल एक स्ट्रीम मैनिपुलेटर है जो एक न्यूलाइन कैरेक्टर डालता है और कॉउट से जुड़े बफर को फ्लश करता है।







Comments

Popular posts from this blog

How to develop a career in coding

what reason for best career in coding

which coding language to learn first