Creating a Workspace in VS Code (helloworld example) Create a Source File (C++ Program) Set Up Auto Save You can enable Auto Save to automatically save your file changes, by clicking on File at the top and then scrolling down to click on Auto Save. The Activity Bar on the edge of […]
C++
When you can write your code in the form or without having to put ways to exit the loop (break, continue, or goto) in the body of the loop then a person reading your code can immediately understand what condition is going to terminate your loop just by looking at […]
(Image taken from https://xkcd.com/) The goto statement in C++ (and many other languages) is generally considered bad programming practice. Here are some reasons why: Take a look at this Stack Overflow post that shows a student’s program that used goto: https://cplusplus.com/forum/beginner/210844/
Why Pointers? https://www.youtube.com/watch?v=qK2YHYIfkE4 The Basics of Pointers https://www.youtube.com/watch?v=GIIFVy4VTFw Arrays and Pointers https://www.youtube.com/watch?v=MuB2VHIuaCU Dynamic Memory Allocation https://www.youtube.com/watch?v=rB8myY8NfjU Functions & Pointers https://www.youtube.com/watch?v=NTz9ETEIVGY