Difference between revisions of "C++"
Jump to navigation
Jump to search
MayGodBless (talk | contribs) (improve) |
(Copypaste from Encyclopedia Britannica to avoid a 90/10 violation does not constitute substantive edits) |
||
| Line 1: | Line 1: | ||
| − | '''C++''' (pronounced "C plus plus") is a | + | '''C++''' (pronounced "C plus plus") is a compiled [[Programming Language|programming language]]. It has both high-level and nearly machine-level functionality. It was developed by Dr. Bjarne Stroustrup at [[Bell Labs]] in 1979 as an enhancement to the [[C programming language]]. |
| − | == | + | == "Hello World!" program == |
| − | + | One of the most common examples of a C++ program is a simple "hello world" application. Below is a basic version of such a program. | |
| − | + | <pre> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | <pre> | ||
#include <iostream> | #include <iostream> | ||
| − | int main() { | + | int main() |
| − | std::cout << "Hello | + | { |
| + | std::cout << "Hello World!"; | ||
return 0; | return 0; | ||
} | } | ||
</pre> | </pre> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
[[Category:Programming Languages]] | [[Category:Programming Languages]] | ||
Revision as of 02:48, October 29, 2023
C++ (pronounced "C plus plus") is a compiled programming language. It has both high-level and nearly machine-level functionality. It was developed by Dr. Bjarne Stroustrup at Bell Labs in 1979 as an enhancement to the C programming language.
"Hello World!" program
One of the most common examples of a C++ program is a simple "hello world" application. Below is a basic version of such a program.
#include <iostream>
int main()
{
std::cout << "Hello World!";
return 0;
}