Тёмный

Learn C++ With Me #8 - If, Else & Else If 

Tech With Tim
Подписаться 1,6 млн
Просмотров 36 тыс.
50% 1

Опубликовано:

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@pimpwiththis8885
@pimpwiththis8885 2 года назад
Your teaching method is impeccable, love your videos...
@yxlxfxf
@yxlxfxf 3 года назад
It's important to note that "else if" isn't a separate type of statement like "elif" in python, it's just an "else" that happens to be followed by another "if"
@josephcohen734
@josephcohen734 3 года назад
Thanks. I always wonder about this with new languages.
@Lucas-yh5zz
@Lucas-yh5zz 3 года назад
Wait but if that's the case wouldn't the second if statement be inside the else's block of code? Like this: If (condition 1) { } Else { If (condition 2) { } }
@yxlxfxf
@yxlxfxf 3 года назад
@@Lucas-yh5zz what you wrote is valid c++, but if/else clauses do not require a code block, they can be directly followed by a single statement without curly braces. You can write things like: if (a) statement1; else statement2; If statement2 is another if-statement, you get the "else if" construction, but the "else" is totally separate from the "if" that follows it. You can put any other keyword there, like "else for", "else while" or anything really, those aren't new types of statements but just an "else" followed by a separate statement.
@ananthramvijayaraj4554
@ananthramvijayaraj4554 3 года назад
Congrats on 600K subs!!
@onurcanokay
@onurcanokay 3 года назад
I think you should have included the "switch" statement. Nice vid. Thanks!
@hawking3396
@hawking3396 3 года назад
Your building such a cornerstone for all and sundry .
@Davidku632
@Davidku632 3 года назад
Another reason of using else if instead of if is performance. 1000 ifs will run slower than 1000 if and else ifs because in first case all of them are running even if one is true while in second case if one is true the rest won't run
@KhalilYasser
@KhalilYasser 3 года назад
Thanks a lot Tim.
@aoronbarlow6524
@aoronbarlow6524 3 года назад
Hi Tim Thanks for this Series. I'm seeing that every single ML job description is listing C++ experience as prerequisite although python and its libraries are there. So are there any plans to make ML with C++ series ? I don't know why C++ is required for ML engineering positions. Could you also elaborate that little bit?
@videokriitikko5509
@videokriitikko5509 3 года назад
Nice, maybe "Learn C With me" next !
@mastershooter64
@mastershooter64 3 года назад
C is basically the same as c++ but without a few stuff, like classes, object-oriented programming stuff like abstraction, inheritance, etc. But the basic syntax is the same, most of the time you can code in c with only c++ knowledge
@shedrackjassen913
@shedrackjassen913 Год назад
Tim, your the best bruh😎😎😎
@yourdadsbestfriend7101
@yourdadsbestfriend7101 3 года назад
great vid tim
@seireiart
@seireiart 3 года назад
I couldn't hold my laugh when I read the title because I remember a famous gamedev (or infamous if you will) using them as his life depending on it xDD
@megnus3rs
@megnus3rs 3 месяца назад
what's their name
@seireiart
@seireiart 3 месяца назад
@@megnus3rs It's none other than YandereDev lol
@codewithlikhit
@codewithlikhit 3 года назад
Can you post a advanced tutorial on a full stack web app
@TheShehabKhan
@TheShehabKhan Год назад
Helpful!
@AlfredAceic
@AlfredAceic 5 дней назад
Perfect.
@notme1282
@notme1282 3 года назад
you don't actually need curly braces for the if statement, as long as the indentation is proper
@shubhrajit2117
@shubhrajit2117 Год назад
Thanks ;)
@neontuts5637
@neontuts5637 3 года назад
Nice Video. Is their shorthand method to do conditional in C++. Like the ternary-operator in JavaScript?
@neontuts5637
@neontuts5637 3 года назад
@Shivansh Sahu Oh! It's same in JS. Thanks🙏
@ThePhantomCoder
@ThePhantomCoder 3 года назад
Hey Tim! 😀 So I wanted to ask you to try out TabNine for a week or so. It's an amazing ai auto-completion tool, but I like it so much better then Kite, especially for repetitive code. Kite pro is probably better then TabNine free, but assuming you use the free version I think you should try it out and maybe make a video about it if you like it.
@KamutangaKawina
@KamutangaKawina 2 месяца назад
why are some videos more clear than others
@salafytech8578
@salafytech8578 3 года назад
What is the difference between C and C++
@dr.schlopp4089
@dr.schlopp4089 3 года назад
Basically C++ >= C, but with classes and a few other OOP data type additions. You could essentially run any C scripts in C++, but you can't run all C++ scripts using C, if that makes sense.
@leojoliver6009
@leojoliver6009 3 года назад
It's Episode 7 not 8
@ggsap
@ggsap 3 года назад
You look like sheldon cooper's small brother
@brendancao2267
@brendancao2267 3 года назад
6th
@redoansaleh
@redoansaleh 3 года назад
10th view 10th like
Далее
Learn C++ With Me #9 - Arrays
21:35
Просмотров 88 тыс.
Learn C++ With Me #20 - Functions
26:14
Просмотров 47 тыс.
МЭЙБИ БЭЙБИ - Hit Em Up (DISS)
02:48
Просмотров 385 тыс.
why are switch statements so HECKIN fast?
11:03
Просмотров 422 тыс.
SOME UNIQUE C++ CODE! // Pacman Clone Code Review
26:42
Learn C++ With Me #18 - Vectors
13:05
Просмотров 152 тыс.
Zig for Impatient Devs
9:48
Просмотров 98 тыс.
If __name__ == "__main__" for Python Developers
8:47
Просмотров 410 тыс.
C++ if statements (#6) ❓
14:05
Просмотров 7 тыс.
The 'if-else' Statement in C++
10:19
Просмотров 85 тыс.
МЭЙБИ БЭЙБИ - Hit Em Up (DISS)
02:48
Просмотров 385 тыс.