Posts
C++: The Basics - eps1.15_Functions
Hello and welcome. So far in the series of articles C++: The Basics we have seen simple programs or developed them ourselves. They consisted of a
main()
function where everything happened.This works quite well for small and not too large programs. But the bigger and more complex our code gets, the longer
main()
becomes.Don’t you also have the feeling to lose the overview with growing code length? It becomes more and more exhausting to find certain parts or to see connections.
The solution: Structure your source code with the help of more functions!
C++: The Basics - eps1.14_Programflow - Loops
Hello and welcome. So far, we can only react to events and inputs and thus take different paths in the program flow. We do have intersections where the flow branches, but we can’t get back to a specific point in the source code.
However, we may want to come back to a fork again. Only this time we decide to go the other way.
Or we want an operation to be executed one more time, but with the current value.
So code that has already been executed is to be repeated. For this you have to program a loop.
Q3.19 - so far, so good...
Hello and welcome to another review of my journey so far to become an embedded application developer.
C++: The Basics - eps1.13_Programflow
Hello and welcome. What do you like to order?
“Good afternoon, I would like the Burger of the Month with Curly Fries.”
We are very sorry, but unfortunately Curly Fries are out at the moment. Are french fries okay?
“That’s too bad, but fine. I’m okay with that as an alternative.”
What drink would you like with your menu?
…
You can probably guess the rest of the conversation.
C++: The Basics - eps1.12_Operators-p2
Hello and welcome. Since we didn’t finish with the topic Operators last time, we’ll follow up directly without much preface.
subscribe via RSS