Difference between revisions of "C++"

From Conservapedia
Jump to navigation Jump to search
(→‎"Hello World!" program: more common terminology)
m (→‎"Hello World!" program: Corrected usage of non-standard <iostream.h> and changed "C" to "C++")
Line 2: Line 2:
  
 
== "Hello World!" program ==
 
== "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.
+
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.h>
+
#include <iostream>
  
 
int main()
 
int main()

Revision as of 05:45, May 30, 2020

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;
}