Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Programming Fundamentals/Introduction Examples C++

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Overview C++ is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation. C++ was developed by Bjarne Stroustrup at Bell Labs starting in 1979 as an extension of the C language. The C++ programming language was initially standardized in 1998.Wikipedia: C++ C++ is one of the most popular current programming languagesTIOBE: Index and is often used in computer science courses. Example Hello World // This program displays "Hello world!" // // References: // http://www.cplusplus.com/doc/tutorial/program_structure/ #include <iostream> int main() { std::cout << "Hello world!"; } Output Hello world! Discussion Each code element represents:Programming Fundamentals/Hello World // begins a comment #include <iostream> includes standard input and output streams int main() begins the main function, which returns an integer value { begins a block of code std::cout is standard output << directs the next element to standard output "Hello world!" is the literal string to be displayed ; ends each line of C++ code } ends a block of code C++ IDEs There are many free cloud-based and local IDEs available to begin coding in C++. Check with your instructor or do your own research for recommendations. Cloud-Based IDEs CodeChef GDB Online Ideone paiza.IO PythonTutor repl.it TutorialsPoint Local IDEs Wikipedia: Code::Blocks Wikipedia: Dev-C++ Wikipedia: Microsoft Visual Studio References Wikiversity: Computer Programming