create account

[C++ Tutorial #5] Conditional Statements - GameDev by roundbeargames

View this thread on: hive.blogpeakd.comecency.com
· @roundbeargames ·
$4.82
[C++ Tutorial #5] Conditional Statements - GameDev
[![20201013_204609_0000.png](https://files.peakd.com/file/peakd-hive/roundbeargames/RRZqLfqn-20201013_204609_0000.png)](https://youtube.com/roundbeargames)

----

https://youtu.be/atWCoQkPuuI

Here's a very simple example using "if", "else if", and "else".
The early part of this series should be easy.

Tutorial Playlist: 
https://youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy

Repository:
https://github.com/RoundBearChoi/CPP_Tutorial_Projects

Any questions/comments? Join us on discord: 
https://discord.gg/hAFTgcA

if: (0:00)
else if: (1:35)
else: (2:29)
float: (3:05)
axe example: (4:13)
homework: (5:38)

Social
twitter: https://twitter.com/roundbeargames
facebook: https://facebook.com/roundbeargames17
hive: https://peakd.com/@roundbeargames/posts
reddit: https://reddit.com/user/roundbeargames
linkedin: https://linkedin.com/in/jangwon-choi-15041a9a

Patreon:
https://patreon.com/roundbeargames

Channel Memberships:
https://youtube.com/roundbeargames/join


----

<center>[![rb_channel_art_1280_steem_re.png](https://files.peakd.com/file/peakd-hive/roundbeargames/t7dhWLP9-rb_channel_art_1280_steem_re.png)](https://youtube.com/roundbeargames)<br>[![ytlogo.png](https://files.peakd.com/file/peakd-hive/roundbeargames/Eys8zO7y-ytlogo.png)](https://youtube.com/roundbeargames)[![dlogo.png](https://files.peakd.com/file/peakd-hive/roundbeargames/jfYwXfQB-dlogo.png)](https://discord.gg/hAFTgcA) [![twlogo.png](https://files.peakd.com/file/peakd-hive/roundbeargames/iIKx3e9T-twlogo.png)](https://twitter.com/Roundbeargames) [![fblogo.png](https://files.peakd.com/file/peakd-hive/roundbeargames/irxSsHET-fblogo.png)](https://www.facebook.com/RoundBearGames17/) [![rlogo.png](https://files.peakd.com/file/peakd-hive/roundbeargames/8F09SccB-rlogo.png)](https://www.reddit.com/user/roundbeargames/posts/) [![lilogo.png](https://files.peakd.com/file/peakd-hive/roundbeargames/kExiGmz2-lilogo.png)](https://www.linkedin.com/in/jangwon-choi-15041a9a/)</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 34 others
properties (23)
authorroundbeargames
permlinkc-tutorial-5-conditional-statements-gamedev
categoryhive-157655
json_metadata{"app":"peakd/2020.09.5","format":"markdown","tags":["gamedev","youtube","video","blog"],"users":["roundbeargames"],"links":["https://youtube.com/roundbeargames","https://youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy","https://github.com/RoundBearChoi/CPP_Tutorial_Projects","https://discord.gg/hAFTgcA","https://twitter.com/roundbeargames","https://facebook.com/roundbeargames17","https://peakd.com/@roundbeargames/posts","https://reddit.com/user/roundbeargames","https://linkedin.com/in/jangwon-choi-15041a9a","https://patreon.com/roundbeargames"],"image":["https://files.peakd.com/file/peakd-hive/roundbeargames/RRZqLfqn-20201013_204609_0000.png","https://files.peakd.com/file/peakd-hive/roundbeargames/t7dhWLP9-rb_channel_art_1280_steem_re.png","https://files.peakd.com/file/peakd-hive/roundbeargames/Eys8zO7y-ytlogo.png","https://files.peakd.com/file/peakd-hive/roundbeargames/jfYwXfQB-dlogo.png","https://files.peakd.com/file/peakd-hive/roundbeargames/iIKx3e9T-twlogo.png","https://files.peakd.com/file/peakd-hive/roundbeargames/irxSsHET-fblogo.png","https://files.peakd.com/file/peakd-hive/roundbeargames/8F09SccB-rlogo.png","https://files.peakd.com/file/peakd-hive/roundbeargames/kExiGmz2-lilogo.png"]}
created2020-10-13 12:12:15
last_update2020-10-13 12:12:15
depth0
children8
last_payout2020-10-20 12:12:15
cashout_time1969-12-31 23:59:59
total_payout_value2.884 HBD
curator_payout_value1.939 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,975
author_reputation192,109,263,238,027
root_title"[C++ Tutorial #5] Conditional Statements - GameDev"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id100,090,820
net_rshares22,328,078,173,712
author_curate_reward""
vote details (98)
@dailyke20 · (edited)
I know this language >= Pascal && != java

''' if(mypreferredlanguage()!=C)
   Comment('I cant code this');
       Else
   Comment('bring it on);
return();'''
👍  
properties (23)
authordailyke20
permlinkre-roundbeargames-20201013t22495900z
categoryhive-157655
json_metadata{"tags":[],"app":"ecency/3.0.4-mobile","format":"markdown+html"}
created2020-10-13 14:49:09
last_update2020-10-13 14:49:48
depth1
children4
last_payout2020-10-20 14:49:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length158
author_reputation195,605,448,236,624
root_title"[C++ Tutorial #5] Conditional Statements - GameDev"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id100,092,674
net_rshares63,032,163,372
author_curate_reward""
vote details (1)
@roundbeargames ·
lol i've seen too many unity users that only wanna stick to c#.
then there's the few that say bring it on and learn 😏
properties (22)
authorroundbeargames
permlinkre-dailyke20-qi63sq
categoryhive-157655
json_metadata{"tags":["hive-157655"],"app":"peakd/2020.09.5"}
created2020-10-14 01:22:03
last_update2020-10-14 01:22:03
depth2
children3
last_payout2020-10-21 01:22:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length117
author_reputation192,109,263,238,027
root_title"[C++ Tutorial #5] Conditional Statements - GameDev"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id100,100,052
net_rshares0
@felipejoys ·
I stick to game maker scripting language... Well, it's just for a hobby anyway.
properties (22)
authorfelipejoys
permlinkre-roundbeargames-qi6wjr
categoryhive-157655
json_metadata{"tags":["hive-157655"],"app":"peakd/2020.09.5"}
created2020-10-14 11:44:33
last_update2020-10-14 11:44:33
depth3
children2
last_payout2020-10-21 11:44:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length79
author_reputation284,070,136,774,042
root_title"[C++ Tutorial #5] Conditional Statements - GameDev"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id100,105,039
net_rshares0
@hivebuzz ·
Congratulations @roundbeargames! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@roundbeargames/comments.png?202010140134"></td><td>You made more than 13000 comments. Your next target is to reach 14000 comments.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@roundbeargames) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>

properties (22)
authorhivebuzz
permlinkhivebuzz-notify-roundbeargames-20201014t015447000z
categoryhive-157655
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2020-10-14 01:54:45
last_update2020-10-14 01:54:45
depth1
children0
last_payout2020-10-21 01:54:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length645
author_reputation369,430,939,510,126
root_title"[C++ Tutorial #5] Conditional Statements - GameDev"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id100,100,319
net_rshares0
@wirago ·
Glad you mentioned NOT to compare floats via "==" that's a common mistake amongst beginners.
Good series so far :)
👍  
properties (23)
authorwirago
permlinkre-roundbeargames-20201013t192523426z
categoryhive-157655
json_metadata{"tags":["gamedev","youtube","video","blog"],"app":"ecency/3.0.4-mobile","format":"markdown+html"}
created2020-10-13 17:25:21
last_update2020-10-13 17:25:21
depth1
children1
last_payout2020-10-20 17:25:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length115
author_reputation100,317,999,792,316
root_title"[C++ Tutorial #5] Conditional Statements - GameDev"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id100,094,579
net_rshares64,318,605,914
author_curate_reward""
vote details (1)
@roundbeargames ·
i remember a lot of my friends made the mistake early on 😂
sadly most of them gave up, but oh well
properties (22)
authorroundbeargames
permlinkre-wirago-qi63pz
categoryhive-157655
json_metadata{"tags":["hive-157655"],"app":"peakd/2020.09.5"}
created2020-10-14 01:20:24
last_update2020-10-14 01:20:24
depth2
children0
last_payout2020-10-21 01:20:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length98
author_reputation192,109,263,238,027
root_title"[C++ Tutorial #5] Conditional Statements - GameDev"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id100,100,042
net_rshares0