Here i'll just comment ur code for you :3
I might add some things too... dont read it if you think its too much to take in. I'll dumb it down as much as i can for ya :B
Code:
// HelloWorld!.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream> // this is what allows you to use cout, cin, and many other things. It's pretty much essential in most programs.
using namespace std; // This Makes it so you no longer need to include any std:: crap in your code :D (i'll edit the code below so that the std is gone to show you what it looks like)
int main() // This is the main function. This is where the program begins and ends execution basically. If you ever write any other functions, you use the main function to call them or they wont do anything. This is the central point of the program basically. But you'll worry about other functions and calling and crap later.
{
cout << "Hello World!" << endl; //cout is the keyword c++ uses to "print" something to the screen. Because most c++ programs are run in the command prompt (for now), Hello World! is going to be the first and only thing u see on that sketchy lookin dark screen when you compile. endl basically just means that you made a new line. it's like pressing enter.
return 0; // this returns a value of 0 back to the operating system. Dont worry about this right now you'll learn about it soon...
}
extra: Incase you don't have any programming experience or just don't know, { is used to show that the main function started, and } is used to show that it ended. If you were to make any other functions in the future they would be made outside of the { and } of main. It's also important to know that the compiler automatically knows that main is the main function... So it ALWAYS has to be called main. You could technically change the datatype (int) to something else, but don't worry about that yet.
the semi-colons are put at the end of every line. (until you come to one line if statements but dont worry about that yet either). It's just basic c++ syntax.
EDIT: I love helping people :x makes me feel pro at this stuff.
Also forgot to add that you should listen to absolutely everything that why says. He sum kynda geniuz.