diff --git a/public/roadmap-content/cpp.json b/public/roadmap-content/cpp.json index d8bd40d46..1b12daab6 100644 --- a/public/roadmap-content/cpp.json +++ b/public/roadmap-content/cpp.json @@ -141,8 +141,24 @@ }, "bjpFWxiCKGz28E-ukhZBp": { "title": "if else / switch / goto", - "description": "", - "links": [] + "description": "C++ provides you with tools which helps you to control the way your program behaves (logic flows) based on how the user interact with your program. Here we will discuss about `if-else`, `switch` and `goto` are three common ways to guide the flow of logic in your code.\n\nVisit the following resources to learn more:", + "links": [ + { + "title": "The 'if-else' Statement in C++", + "url": "https://www.youtube.com/watch?v=9-BjXs1vMSc", + "type": "video" + }, + { + "title": "Learn C++ With Me - Switch Statement", + "url": "https://www.youtube.com/watch?v=uOlLs1OYSSI", + "type": "video" + }, + { + "title": "Why is it illegal to use \"goto\"?", + "url": "https://youtu.be/AKJhThyTmQw?si=gjEqAsDZVMDGVAT2", + "type": "video" + } + ] }, "oYi3YOc1GC2Nfp71VOkJt": { "title": "Functions", diff --git a/src/data/roadmaps/cpp/content/if-else--switch--goto@bjpFWxiCKGz28E-ukhZBp.md b/src/data/roadmaps/cpp/content/if-else--switch--goto@bjpFWxiCKGz28E-ukhZBp.md index 508114a8b..6fee36203 100644 --- a/src/data/roadmaps/cpp/content/if-else--switch--goto@bjpFWxiCKGz28E-ukhZBp.md +++ b/src/data/roadmaps/cpp/content/if-else--switch--goto@bjpFWxiCKGz28E-ukhZBp.md @@ -1 +1,9 @@ -# if else / switch / goto \ No newline at end of file +# If-Else / Switch / Goto + +C++ provides you with tools which helps you to control the way your program behaves (logic flows) based on how the user interact with your program. Here we will discuss about `if-else`, `switch` and `goto` are three common ways to guide the flow of logic in your code. + +Visit the following resources to learn more: + +- [@video@The 'if-else' Statement in C++](https://www.youtube.com/watch?v=9-BjXs1vMSc) +- [@video@Learn C++ With Me - Switch Statement](https://www.youtube.com/watch?v=uOlLs1OYSSI) +- [@video@Why is it illegal to use "goto"?](https://youtu.be/AKJhThyTmQw?si=gjEqAsDZVMDGVAT2) \ No newline at end of file