how basic programming concepts translate in real software?

thanks for suggestion , this is what i did and i can say it is my first program i do (if we exclude hello world) in my life without tutorials!

if anyone has suggestion for simple programs i can do for learning purpose , feel free to suggest them
Very nice start.

As for what to try programming next: how about a simple task you do frequently on your computer? Not only do you continue your learning, but you will end up with something of practical use.
 
I'll provide an example.

Code:
if ( myvalue == something ) {
  printf("Hurray!\n");
} else {
  printf("Not the same\n");
}

Notice how the printf lines within the if .. else .. are neatly indented? Doesn't change how the program works (it will if it was Python!), it's more a visual cue for the person looking at your code. It simply makes it a bit easier to read. For a single line it won't matter much, it will be more clear when the sections in between get larger.

There's also another way to do this, and can be a very hot stylistic topic:
Code:
if ( myvalue == something )
{
  printf("Hurray!\n");
}
else
{
  printf("Not the same\n");
}
Same code, different style guide. I personally use the first but I've seen style guides that want the second form. For your own personal projects it's not going to matter, as long as you stay consistent.
Thank you, SirDice ! It's nice to run into someone else who understands SANE screen real-estate usage! I've grown sooo intolerant of modern "single token per line" coding standards.
 
Back
Top