diff options
author | Matthew Biondi <Matthew.Biondi@kalibrate.com> | 2018-10-18 12:26:26 -0400 |
---|---|---|
committer | Matthew Biondi <Matthew.Biondi@kalibrate.com> | 2018-10-18 12:26:26 -0400 |
commit | 3cfb769bfbc42f5e4236401707913f6725a3070c (patch) | |
tree | 186b3c3049ed8f02143bd867aa0cccb3b9d63518 | |
parent | 5ebc12c8d99eb59d7c24864599cd470ba4ba4117 (diff) |
Addresses #3009, corrects C++ headers description
-rw-r--r-- | c++.html.markdown | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/c++.html.markdown b/c++.html.markdown index 9d6470be..8be5a278 100644 --- a/c++.html.markdown +++ b/c++.html.markdown @@ -71,10 +71,16 @@ void func(); // function which may accept any number of arguments // Use nullptr instead of NULL in C++ int* ip = nullptr; -// C standard headers are available in C++, -// but are prefixed with "c" and have no .h suffix. +// C standard headers are available in C++. +// C headers end in .h, while +// C++ headers are prefixed with "c" and have no ".h" suffix. + +// The C++ standard version: #include <cstdio> +//The C standard version: +#include <stdio.h> + int main() { printf("Hello, world!\n"); |