Addresses #3009, corrects C++ headers description

This commit is contained in:
Matthew Biondi 2018-10-18 12:26:26 -04:00
parent 5ebc12c8d9
commit 3cfb769bfb

View File

@ -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");