[](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>[](https://youtube.com/roundbeargames)<br>[](https://youtube.com/roundbeargames)[](https://discord.gg/hAFTgcA) [](https://twitter.com/Roundbeargames) [](https://www.facebook.com/RoundBearGames17/) [](https://www.reddit.com/user/roundbeargames/posts/) [](https://www.linkedin.com/in/jangwon-choi-15041a9a/)</center>
author | roundbeargames |
---|---|
permlink | c-tutorial-5-conditional-statements-gamedev |
category | hive-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"]} |
created | 2020-10-13 12:12:15 |
last_update | 2020-10-13 12:12:15 |
depth | 0 |
children | 8 |
last_payout | 2020-10-20 12:12:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 2.884 HBD |
curator_payout_value | 1.939 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,975 |
author_reputation | 192,109,263,238,027 |
root_title | "[C++ Tutorial #5] Conditional Statements - GameDev" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 100,090,820 |
net_rshares | 22,328,078,173,712 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tombstone | 0 | 20,634,019,449 | 0.97% | ||
fulltimegeek | 0 | 1,119,803,269,589 | 100% | ||
netaterra | 0 | 279,449,877,063 | 15% | ||
lyndsaybowes | 0 | 315,794,083,315 | 100% | ||
gamer00 | 0 | 33,739,081,674 | 5% | ||
delso | 0 | 1,523,144,823,175 | 100% | ||
ambyr00 | 0 | 4,136,599,397 | 0.75% | ||
gamersclassified | 0 | 97,667,178,828 | 100% | ||
roomservice | 0 | 118,843,614,221 | 2.43% | ||
drag33 | 0 | 88,786,044,203 | 100% | ||
stylegold | 0 | 853,376,347 | 100% | ||
themarkymark | 0 | 2,899,671,401,159 | 13% | ||
tfame3865 | 0 | 82,241,329,028 | 100% | ||
schubes | 0 | 800,413,064 | 95% | ||
nortjenn | 0 | 652,412,636 | 85.5% | ||
horpey | 0 | 77,242,388,374 | 100% | ||
cifer | 0 | 875,157,101 | 20% | ||
fr3eze | 0 | 280,102,300,824 | 100% | ||
buildawhale | 0 | 9,229,038,479,477 | 13% | ||
therealwolf | 0 | 922,868,068,467 | 3.25% | ||
makerhacks | 0 | 36,601,996,395 | 13% | ||
otemzi | 0 | 3,949,778,344 | 100% | ||
felipejoys | 0 | 4,280,560,360 | 20% | ||
jacktan | 0 | 2,782,271,236 | 50% | ||
smartsteem | 0 | 185,138,277,743 | 3.25% | ||
andyblack | 0 | 21,878,351,351 | 50% | ||
steembasicincome | 0 | 2,052,475,867,279 | 100% | ||
cpufronz | 0 | 21,346,297,987 | 100% | ||
mineopoly | 0 | 15,624,108,148 | 100% | ||
upmyvote | 0 | 8,920,347,507 | 13% | ||
yikloongye | 0 | 128,880,002 | 100% | ||
smjn | 0 | 605,649,978,114 | 100% | ||
bennettitalia | 0 | 49,140,596,439 | 50% | ||
portugalcoin | 0 | 27,278,180,018 | 20% | ||
warnas | 0 | 38,099,730,164 | 10% | ||
yumisee | 0 | 1,320,698,566 | 100% | ||
joeliew | 0 | 3,407,393,376 | 100% | ||
artjohn | 0 | 1,500,803,651 | 100% | ||
tobias-g | 0 | 22,795,078,888 | 9.75% | ||
icuz | 0 | 909,686,077 | 100% | ||
zephalexia | 0 | 2,104,428,568 | 50% | ||
hkit98 | 0 | 389,175,603 | 100% | ||
leguidecrypto | 0 | 5,863,019,755 | 50% | ||
mproxima | 0 | 21,683,976,488 | 50% | ||
elvinmas001 | 0 | 344,368,643 | 100% | ||
watersoo | 0 | 2,938,862,261 | 100% | ||
vamos-amigo | 0 | 3,805,899,679 | 100% | ||
green77 | 0 | 6,053,503,151 | 90% | ||
iipoh06 | 0 | 492,154,871 | 100% | ||
anna89 | 0 | 613,939,388 | 100% | ||
anikys3reasure | 0 | 3,371,355,228 | 50% | ||
annabellenoelle | 0 | 4,680,257,782 | 100% | ||
movement19 | 0 | 4,383,746,275 | 3.25% | ||
smawkward | 0 | 389,874,493 | 50% | ||
yethui | 0 | 620,256,638 | 100% | ||
riczlook | 0 | 19,000,129 | 100% | ||
leeyh | 0 | 28,927,746,733 | 100% | ||
andrewnoel | 0 | 390,422,734 | 100% | ||
j85063 | 0 | 110,587,927,302 | 25% | ||
bil.prag | 0 | 107,540,512,379 | 30% | ||
liewsc | 0 | 2,821,845,002 | 50% | ||
tanzy | 0 | 1,349,108,886 | 50% | ||
payroll | 0 | 82,742,116,563 | 2% | ||
reinaldoverdu | 0 | 11,017,555,340 | 100% | ||
wirago | 0 | 23,657,412,307 | 100% | ||
luminaryhmo | 0 | 2,660,623,740 | 100% | ||
cn-malaysia | 0 | 57,185,522 | 100% | ||
laissez-faire | 0 | 49,341,338 | 100% | ||
navorn | 0 | 7,099,519,332 | 100% | ||
pollygonewild | 0 | 0 | 100% | ||
foodblogresteem | 0 | 125,816,139 | 100% | ||
bergek123 | 0 | 753,247,182 | 100% | ||
lizachong | 0 | 544,008,273 | 50% | ||
jacoblai | 0 | 0 | 100% | ||
bobdavids | 0 | 101,201,608 | 100% | ||
znkd | 0 | 16,498,243,784 | 100% | ||
bewithbreath | 0 | 2,003,544,486 | 5% | ||
epicdice | 0 | 7,170,794,652 | 0.97% | ||
dailyke20 | 0 | 28,652,934,717 | 100% | ||
borjan | 0 | 313,009,732,319 | 50% | ||
tinyhousecryptos | 0 | 528,105,935 | 5% | ||
leeyh5 | 0 | 1,537,500,849 | 50% | ||
thranax | 0 | 3,799,936,364 | 10% | ||
sbi-tokens | 0 | 8,497,152,844 | 35.19% | ||
lynds | 0 | 464,752,580,497 | 100% | ||
therealyme | 0 | 1,179,863,641 | 15% | ||
qwertm | 0 | 3,119,505,760 | 50% | ||
gmlrecordz | 0 | 595,553,008 | 50% | ||
sujaytechnicals | 0 | 163,046,991 | 100% | ||
quello | 0 | 41,683,851,917 | 9.75% | ||
mcsagel | 0 | 9,834,989,526 | 100% | ||
hiveonboard | 0 | 3,203,291,600 | 2.43% | ||
kiemis | 0 | 9,840,709,242 | 2.5% | ||
localgrower | 0 | 527,894,482 | 1% | ||
utopiaeducators | 0 | 501,597,171,548 | 100% | ||
recoveryinc | 0 | 236,665,882,173 | 6.5% | ||
dying | 0 | 8,556,056,921 | 6.5% | ||
hadrgames | 0 | 26,907,622,088 | 100% |
I know this language >= Pascal && != java ''' if(mypreferredlanguage()!=C) Comment('I cant code this'); Else Comment('bring it on); return();'''
author | dailyke20 |
---|---|
permlink | re-roundbeargames-20201013t22495900z |
category | hive-157655 |
json_metadata | {"tags":[],"app":"ecency/3.0.4-mobile","format":"markdown+html"} |
created | 2020-10-13 14:49:09 |
last_update | 2020-10-13 14:49:48 |
depth | 1 |
children | 4 |
last_payout | 2020-10-20 14:49:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 158 |
author_reputation | 195,605,448,236,624 |
root_title | "[C++ Tutorial #5] Conditional Statements - GameDev" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 100,092,674 |
net_rshares | 63,032,163,372 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
roundbeargames | 0 | 63,032,163,372 | 100% |
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 😏
author | roundbeargames |
---|---|
permlink | re-dailyke20-qi63sq |
category | hive-157655 |
json_metadata | {"tags":["hive-157655"],"app":"peakd/2020.09.5"} |
created | 2020-10-14 01:22:03 |
last_update | 2020-10-14 01:22:03 |
depth | 2 |
children | 3 |
last_payout | 2020-10-21 01:22:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 117 |
author_reputation | 192,109,263,238,027 |
root_title | "[C++ Tutorial #5] Conditional Statements - GameDev" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 100,100,052 |
net_rshares | 0 |
I stick to game maker scripting language... Well, it's just for a hobby anyway.
author | felipejoys |
---|---|
permlink | re-roundbeargames-qi6wjr |
category | hive-157655 |
json_metadata | {"tags":["hive-157655"],"app":"peakd/2020.09.5"} |
created | 2020-10-14 11:44:33 |
last_update | 2020-10-14 11:44:33 |
depth | 3 |
children | 2 |
last_payout | 2020-10-21 11:44:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 79 |
author_reputation | 284,070,136,774,042 |
root_title | "[C++ Tutorial #5] Conditional Statements - GameDev" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 100,105,039 |
net_rshares | 0 |
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>
author | hivebuzz |
---|---|
permlink | hivebuzz-notify-roundbeargames-20201014t015447000z |
category | hive-157655 |
json_metadata | {"image":["http://hivebuzz.me/notify.t6.png"]} |
created | 2020-10-14 01:54:45 |
last_update | 2020-10-14 01:54:45 |
depth | 1 |
children | 0 |
last_payout | 2020-10-21 01:54:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 645 |
author_reputation | 369,430,939,510,126 |
root_title | "[C++ Tutorial #5] Conditional Statements - GameDev" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 100,100,319 |
net_rshares | 0 |
Glad you mentioned NOT to compare floats via "==" that's a common mistake amongst beginners. Good series so far :)
author | wirago |
---|---|
permlink | re-roundbeargames-20201013t192523426z |
category | hive-157655 |
json_metadata | {"tags":["gamedev","youtube","video","blog"],"app":"ecency/3.0.4-mobile","format":"markdown+html"} |
created | 2020-10-13 17:25:21 |
last_update | 2020-10-13 17:25:21 |
depth | 1 |
children | 1 |
last_payout | 2020-10-20 17:25:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 115 |
author_reputation | 100,317,999,792,316 |
root_title | "[C++ Tutorial #5] Conditional Statements - GameDev" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 100,094,579 |
net_rshares | 64,318,605,914 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
roundbeargames | 0 | 64,318,605,914 | 100% |
i remember a lot of my friends made the mistake early on 😂 sadly most of them gave up, but oh well
author | roundbeargames |
---|---|
permlink | re-wirago-qi63pz |
category | hive-157655 |
json_metadata | {"tags":["hive-157655"],"app":"peakd/2020.09.5"} |
created | 2020-10-14 01:20:24 |
last_update | 2020-10-14 01:20:24 |
depth | 2 |
children | 0 |
last_payout | 2020-10-21 01:20:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 98 |
author_reputation | 192,109,263,238,027 |
root_title | "[C++ Tutorial #5] Conditional Statements - GameDev" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 100,100,042 |
net_rshares | 0 |