C++ Programming Tutorial 32 - Control Flow

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

kudos to everyone who are still going!!

mohammedmhilal
Автор

Thanks for making these videos. really helps!

claycasper
Автор

Good lesson Man, ive already studied this but i wanted to Watch your videos and wooah, you can become a teacher i think

xriccardo
Автор

This tutorial series was very helpful so far. I was getting kind of annoyed that we were only learning c++ "vocabulary", but I can already see that it will help us progress much faster in the upcoming videos.
I'm already able to make a simple but very functional calculator using custom functions, switches, and terminal inputs and outputs.
Thank you so much for everything so far, I will make sure to complete the entire series. :)

Markofka
Автор

one way to get around the switch limitations is with a switch true. where you set the cases to a T/F expression.

NFvidoJagg
Автор

I think some compilers will do ranges on a switch like; case 1 ... 17 But I know the MSVS C++ compiler won't allow it, at least mine won't.

someinternetdude
Автор

The first thing I made with the if and else statement is this:

#include <iostream>

using std::cin;
using std::cout;
using std::endl;

int main()
{
int a;

cout << "Nice?" << endl;
cin >> a;

if(a == 69)
{
cout << "Nice" << endl;
}
else
{
cout << "Not Nice >:(" << endl;
}
}

If you understand the code, you did well

koton_bads
Автор

thanks god i found your channel

#newsubs here

nyctophilelyrics
Автор

You need bigger dogs ;)
I was like 'is that a bird?'
He goes, 'and there go the dogs barking' lol.
... we breed Irish Wolfhounds, dog bark is much different sound.

mattgraves
Автор

If I remember correctly, the "default" case doesn't need a break statement, it has it built-in.

ReddoX
Автор

#include <iostream>
#include <cmath>
#include <climits>
#include <string>

using std::cout;
using std::cin;
using std::endl;
using std::string;

int main()
{

int secret_num;
cout << "Enter a number: ";
cin >> secret_num;

if(secret_num == 69){
cout << "You got the correct answer!";
} else {
cout << "You lose!";
}

return 0;
}

I created some basic if statement game. Have a nice day

monoq_
Автор

Call of Duty? More like Console of Duty!

PunmasterSTP
Автор

ive been doing cs hw for 5 hours now and I'm only half way done...
]

hjkfwcc
Автор

Hi Caleb, please keep in mind that the Black Board is way better than the green one.
Any way thanks for the great content.

al-moutazbillah
Автор

I think we can use char in switch also

akshettrj
Автор

"let's say if your age is 18, we wanna do somehing else"💀💀

HasanCRM
Автор

Y not C++ confirm that was use
From thank you

Vicky_.
Автор

0 dislikes, explaining's skills (i not going to ruin it and dislike it

timesnow