C Programming_Project 0_Introduction

“C Programming — /project-driven mode/” Author: Renfei (Neil Ren) Published: www.neilren.com 8 projects in total, from data input/output through pointers to file operations. All rights reserved; when reposting please credit the source and author. This site uses the Creative Commons Attribution-NonCommercial-NoDerivatives 2.5 China license

------------------------------------------------

I’m very glad to learn C programming with you all this holiday. This is an introduction; before we start you may want to understand what there is to learn. Unlike other tutorials that begin with computer principles and data storage, this tutorial explains C programming through projects, so students with no background at all may want to look at other tutorials online first — they’ll serve you better.

The tool we need: Visual C++ 6.0. If you haven’t downloaded and installed it yet, see: A Visual C++ 6.0 download that runs perfectly on Windows 7. One more reminder: don’t be impatient when learning. Some people learn a little and think they’re great — they’ll never become masters. A good program involves many aspects: excellent algorithms, excellent database structures, sensible human-computer interfaces. This tutorial only opens the door to programming and shows you how simple it is; the rest takes continuous study to become skilled.

With Visual C++ 6.0 installed on your computer, you can start learning C. Someone may ask: isn’t this C++? C++ evolved from C and is compatible with it. Programs written in C can basically be used in C++ with no changes. From its name you can see C++ is C transcended and concentrated. C++ can be used both for procedural structured programming and for object-oriented programming — a powerful hybrid language.

C++‘s “enhancements” over C show in six aspects:

(1) Stricter type checking. (2) Added object-oriented mechanisms. (3) Added generic programming mechanisms (Templates). (4) Added exception handling. (5) Added operator overloading. (6) Added the Standard Template Library (STL).

Object-oriented programming was proposed for developing larger programs, to improve software development efficiency. Don’t set object-oriented and procedural approaches against each other — they aren’t contradictory, but complement each other with their own uses.

So here’s another thing we learn: C is procedural, C++ is object-oriented. So although we use a C++ IDE, compiling C is no problem.

------------------------------------------------

Table of contents: