Well, for starters:
There is a difference between:
First code:
|
cout << 'Hello World!\n';
|
and
Second code:
|
cout << "Hello World!\n";
|
Single quotes mean character.
Double quotes mean string.
Character can consist of only one character, ie: 'h' or '5' or '$'
String can consist of multiple characters, ie: "Hello World" or "123456" or "abc456"
cout reference: http://www.cplusplus.com/reference/iostream/cout/
Not sure if the lib is native...
|
#include 'std_lib_facilities.h'
|
if the lib is valid, it should be implemented like this:
|
#include "std_lib_facilities.h"
|
Normally folks using c++ use
The cin.get() isn't necessary but a good way to see your console window open if you're running from an IDE.