Topic One
Introduction

Quick Brief

Hey guys, Leo Here . Thanks for stopping by! Here we will be discussing a few things and won't do much coding. Next topic, we will be getting our hands dirty so be ready!

What can you do with programming?

There is so much you can do with programming. From solving life-threatening problems to creating the greatest past-times for entertainment. The sky is the limit! With drive and determination, you can achieve anything with programming.
Below are a few career choices you can pursue in programming

Software Developer

As a software developer, you will be taking the responsibilities and roles that are needed for startups or companies that plan on innovating. You will be designing, testing, installing, debugging and making sure that your software is being maintained. Not an easy task, but the perks is that it is a very rewarding field.

Database Developer

As a Database developer, you will be taking the responsibility of adminstrating and creating Tables. This will allow other developers to pull information from the database, with your permission. You will also be assigned to create store procedures, etc. In this field, learning SQL is a must.

Web Developer

As a web developer, you will be dreaming most of the time, in creativity that is. Depending on your role, you will be in charge of front-end design, or back-end development, which requires a programming language. For instance, this website was developed using JavaScript as its back-end. Html, CSS, and frameworks were used in the front-end.

Game Developer

Game developing is one of the hardest skills to acquire, but can be done. With a lot of hard work, this field can be so fun. Depending on your role, you will be focusing on either level design or game programming. In level design you may use visual scripting. Most companies use C++ or C# , therefore dominating in these languages can give you a great advantage.


What is C++?

C++ is one of the many programming languages that you can use. It was developed by Bjarne Stroustrup in 1979, intended for high level language features. Since it is a general-purpose objectoriented programming (OOP) language, it can encapsulate both high- and low-level language features. Initially, the language was called "C with classes" as it had all the properties of the C language with an additional concept of "classes." However, it was renamed C++ in 1983.
Below is a table containing different programming languages that is popular right now

Language Level Comments

Java

High Level It’s one of the most widely adopted programming languages used by some 9 million developers and running on 7 billion devices worldwide.

C#

High Level An evolution of C and C++. The C# language is simple, modern, type safe and object oriented.

Python

High Level Python is simple and incredibly readable since it closely resembles the English language. It’s a great language for beginners, all the way up to seasoned professionals.

Assembler

Low Level Assembler The assembler language is the symbolic programming language that lies closest to the machine language in form and content. The assembler language is useful when: You need to control your program closely, down to the byte and even the bit level.

C

Mid Level A structured, general-purpose language developed at Bell Laboratories. C offers both high-level and low-level features.

High Level Vs Low Level Languages

High level languages are much easier to use, read, and learn. They also have a substantial amount of support. Unlike a high-level language, a low-level language such as Machine Code or Assembly Language, is very difficult to learn and the community is very small. However, both levels have their advantages. For example, the advantage of a low level language is that it runs very fast on the computer, since it is nearer to the computer (developing speaking), and is the most appropriate language to use to create new operating systems. While high level languages are portoble, which means that they can run in different platforms.

Don't focus too much on what’s going on in the coding below, just pay attention on the readability between the two. Which one is more readable? Can you see the difference now?

^ AN EXAMPLE OF A LOW LEVEL APPLICATION (ASSEMBLER)

^ AN EXAMPLE OF A High LEVEL APPLICATION (Java-Script)


Our First C++ Application

Wooo Finally!! So excited to get started with our very first application. In just a few moments we will be coding. Yess! In this section we will be going over Pseudocode and why we use it. What key words we need to be aware of in order to get our application to run, as well coding our first application! Awesome, Yeaya!
Make Sure You Have Your IDE installed and ready to go!

What is Pseudocode?

Pseudocode is a cross between human language and programming language. It can be written at a high level or at a detailed level depending on the situation. High-level pseudocode simply lists the steps a program must perform. Think of this as game planning by writing down your objectives and goals you wish your program to perform.

Example of a Psuedocode which programmers will then use to program


Key Words

So what are key words? Well first of all, they are words that you write in your application that will have a special meaning and function intentionally for a specific purpose. They are known as reserved words. Throughout programming you will catch yourself being introduced to them organically to solve certain problems. For our first application, we won’t be using any key words but, will be using Predefined Identifiers.

Some key words to know
auto break case char const continue
default do double else enum extern
float for goto if int long
register return short signed sizeof static
struct switch typedef union unsigned void

Predefined Identifiers

What are Predefined Identifiers? Same as Key Words, they are words that you write in your application that will have a special meaning and function intentionally for a specific purpose. Although in this case, predefined identifiers are compiled before key words and tells the program what to look for. For our application we will be using the predefined identifier called (#include), ), which will tell the program before it compiles to look and include the required library your calling.

Some predefined identifiers to know
cin cout endl include INT_MIN INT_MAX
iomanip iostream main std string NULL

Special Characters

For our coding application, we will be introduced to some special characters. Hmm what are special characters? You can think of special characters as the framework of your application. Although, keep in mind, inserted these special characters will not display anything! For example, '{ }' are used to enclose a group of statements, such as the contents of a function.
For more examples of special characters. Below is a table containing the special characters will be using in our application

Character Name Description

//

Double Slash Marks the beginning of a comment

#

Pound Sign Marks the beginning of a preprocessor directive

< >

Opening and closing brackets Encloses a filename when used with the #include directive

()

Opening and closing parentheses Used in naming a function, as in int main().

{ }

Opening and closing braces Encloses a group of statements, such as the contents of a function

" "

Opening and closing quotation marks Encloses a string of characters, such as a message that is to be printed on the screen.

;

Semicolon Marks the end of a complete programming statement .

Coding our first applicationPlay Video

Finally we get here! Whew, that took awhile right? Below we will be coding our first C++ application. A very unoriginal generic application. Anyways, why fix something that ain’t broken right? Go ahead and open up your prefer IDE and set up your application. If you need any help with that feel free to let me know in the comments below. After setting up, follow along and you will see your application come to life! At the moment, it's ok to stay a little confused. We will be discussing more in the next topic.


Printing Hello World!
Follow the coding below | Do you see any key words here?

How does this work?

#include < iostream >

int main(){

std::cout << "Hello World!" << endl;

return 0;

}

Editor View
If your lost, you can copy and paste this code to your editor to compare

Comments