THIS IS NOT MADE FOR LAZY, IMPATIENT, SHORT SIGHTED CHILDREN!
Do you still think you can take this journey? be more then welcome, and goodluck!
I will go over the basics to get you up and running with c++
and I will teach you some basic C++ fundamentals so you can follow along when we are going to start with the checker!
Do you already have c++ installed and know how to make a new project? Read from 3.
Do you still think you can take this journey? be more then welcome, and goodluck!
I will go over the basics to get you up and running with c++
and I will teach you some basic C++ fundamentals so you can follow along when we are going to start with the checker!
Do you already have c++ installed and know how to make a new project? Read from 3.
1.
So you want to start learning c++ and make checkers? Well you are the right place here!
So how do we start? Well first of we will need some things that I will cover step by step for you.
Firstly what you need to make sure of is having the C++ language installed on your computer, if not no problem!
We can do so by going over to: https://visualstudio.microsoft.com/downloads/
Follow the installation process, once you finished that you should see a bunch of packages that you can install, for now we choose to install: https://prnt.sc/1sqjcfl
Once you've got a blue tick mark by C++ you can install this package by pressing the install button down right!
2.
How awesome is this! We successfully installed C++
Now lets create our first app shall we?
When we open visual studio we can see that we can make a new project, do this by pressing the: "Create a new project" button!
After you have done this you should see alot of options, no worries! I will help you through it.
Please follow this screenshot: https://prnt.sc/1sqjvjf
After you've done that select the C++ console app and hit next!
Now just simply give your project a name and lets start coding!
3.
Wow! We see alot going on here, lets get over this real quickly.
Every line in our editor that starts with "//" is a command, this means this text will not be executed.
This means we can remove all the lines that start with "//".
You did it? Awesome! Your code should look like this:
https://prnt.sc/1sqkkdi
If it does not, No worries, just type over what you saw on the screenshot!
lets get some code down!
4.
So you want to start learning c++ and make checkers? Well you are the right place here!
So how do we start? Well first of we will need some things that I will cover step by step for you.
Firstly what you need to make sure of is having the C++ language installed on your computer, if not no problem!
We can do so by going over to: https://visualstudio.microsoft.com/downloads/
Follow the installation process, once you finished that you should see a bunch of packages that you can install, for now we choose to install: https://prnt.sc/1sqjcfl
Once you've got a blue tick mark by C++ you can install this package by pressing the install button down right!
2.
How awesome is this! We successfully installed C++
Now lets create our first app shall we?
When we open visual studio we can see that we can make a new project, do this by pressing the: "Create a new project" button!
After you have done this you should see alot of options, no worries! I will help you through it.
Please follow this screenshot: https://prnt.sc/1sqjvjf
After you've done that select the C++ console app and hit next!
Now just simply give your project a name and lets start coding!
3.
Wow! We see alot going on here, lets get over this real quickly.
Every line in our editor that starts with "//" is a command, this means this text will not be executed.
This means we can remove all the lines that start with "//".
You did it? Awesome! Your code should look like this:
https://prnt.sc/1sqkkdi
If it does not, No worries, just type over what you saw on the screenshot!
lets get some code down!
4.
Code:
// Tells the compiler iostream library which contains the function cout
#include <iostream>
// Allows us to use strings
#include <string>
// Allow us to work with files
#include <fstream>
As you can see all we did here in just include things we can use later on.
Code:
// This is how we make a string
std::string x = "Hi there Patched.to!";
// This is how we use integers, this is mostly the same in all languages
int x = 5;
// This is a bool, this can be true or false.
bool x = true;
// There are more variables ofcourse I wont go over them (for now) as of we dont really need them!
Code:
// How do we print to the console?
std::cout << "Hello world!" << std::endl;
// Okay wow what happend? we call standard library with function cout, "<<" are our operators we use to cout something.
// std::endl stands for endline, this means we are ending the line
std::cout << "hi";
std::cout << "hello";
OUTPUT:
hihello
// Why does this happen? we did not end the line! put std::endl after and your all set!
5.
From Now I am going to ask you to watch your youtube video for more explanation on c++
I personally recommend The Cherno on youtube.
It will be a really hard job for me to explain whole c++ just by text, I hope everyone understands this.
However when actually start making the checker I will explain everything I am doing along, and I will explain why we are using this instead of ...
This was part one for now, I hope you all enjoyed!
WHAT WILL THE NEXT PART COVER?
- We will take a look at cpr
- We will mess around with vcpkg
- I will cover alot of things that is a MUST to know
Do you think this is a good tutorial series? Please show me this by leaving a like and placing a reaction!
I would love to see your thoughts!