ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
C/C++

How to start with C++ [Checkers Part 1]

Submitted by Matic at 18-09-2021, 11:23 PM


CODER How to start with C++ [Checkers Part 1]
5.779 Views
Matic's Avatar'
Matic
Offline
#1
 
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.
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.

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!

​​​
15
Reply
A35's Avatar'
A35
Offline
#2
For those who are curious, this guide is pretty good. BIG VOUCH.  Doge
PTO STAFF WARNING

Before contacting me, you should know that:
  • I don't use Telegram, Discord or any other platforms.
  • We never send you the first message on any other platform.
  • Any messages claiming to be from us outside this platform are fake.
  • Official communication happens only here.

You can contact me anytime about the forum or other things.
 
0
Reply
stonky2's Avatar'
stonky2
Offline
#3
Thank looks fine.
0
Reply
xLOTY's Avatar'
xLOTY
Offline
#4
Beneficial ++
0
Reply
nicks's Avatar'
nicks
Offline
#5
Great share for starters! Highly recommend this to anyone who wants to learn C++ :)
0
Reply
axlnga's Avatar'
axlnga
Offline
#6
whens the next part coming?
0
Reply
danielcr's Avatar'
danielcr
Offline
#7
ok good thanks
0
Reply
Juliette1996's Avatar'
Juliette1996
Offline
#8
"Great start for C++ beginners, thanks!"
0
Reply
SwiftProxyioAce's Avatar'
SwiftProxyioAce
Offline
#9
lets check
0
Reply
yvngbau's Avatar'
yvngbau
Offline
#10
dude thanks bro ilysm
0
Reply



Users browsing this thread: