Showing posts fromso you-want-to-learn-c

Common Mistakes

### 1: using namespace Every new developer that comes to C++ always starts writing code like this: myfirstprog.cpp ```c #include <iostream> using namespace std; ``` It seems reasonable and every

Read More

Control Flow

So far we have demonstrated basic programs that just do a single task without making any decisions. Most (all but the most trivial) programming languages provide constructs for decision making (Condi

Read More

Functions

### Usage All C++ applications must have at least one function; this is called `main()`. Additionally, you can have user defined functions that encapsulate individual tasks, thus allowing the code to

Read More

Hello World

This is the first article in the series OK. Lets do this. I keep trying to think about something big and interesting to write about. But that is just not working. All my time is spent trying to think

Read More

Variables

## Variables In most programming languages you have the concept of variables. These are simply named objects that hold a value (more formerly refereed to as state). By manipulating a variable you ma

Read More