Search 72,660 tutors
FIND TUTORS

Hello WyzAnt

Hello Programmers,

For anyone who is interested in programming, where do you start? Well, C++ is a good programing tool. The only thing you need is to download one of the free "C++ compilers" online to run your code. What kind of codes or programms can I write? Well, it's up to you and what you want it to do. It's probably good to start with something easy, and then make one that’s interacting, so you can input data and get cool output. Make an app..! a DataBase, a cool game, etc..

The first Program I’m going to show you is called “Hello Wyzant”.

#include iostream
using namespace std;
void main()
{
cout << "Welcome to C++ Programming" << endl;
cout << "Hello Wyzant!" << endl;
}

run this program, it should display on your computer the message in blue.
Welcome to C++ Programming
Hello Wyzant

Lesson 1

#include iostream

// this line of code is telling the compiler that while runing your code, use this file (class) as well which help your program display the output

using namespace std;

// this line is for my specific compiler (Visual basic)

void main()

// this line telling the program to start execute the codes within the //main and to return nothing to the main (don't focus on that)

{

// begining of the program

cout << "Welcome to C++ Programming" << endl;

// cout<< tell the compiler to display the following string of //character to your computer screen "Welcome to C++ //Programming".

// "endl" tell the compiler that this is the end of the line. go to the //next line.

cout << "Hello Wyzant!" << endl;

// cout<< tell the compiler to display the following string of //character to your computer screen ""Hello Wyzant!" .

// "endl" tell the compiler that this is the end of the line. go to the //next line.

}

//the end of the program, termination, retun nothing, exit.

I hope this short tutorial help your interest in programming.