C language (Part 1)

Lessons and tutorials in the Programming Language C.

Definition :

C is a general-purpose computer programming language, it’s one of the most popular programming languages, and designed for implementing system software.

About Dev-C++ :

System : Windows 95/98/NT/2000/XP
Status : Free Software (under the GNU General Public License)
Size : 13.5 Mb

Download

Notes:

  • #include directive tells the preprocessor to treat the contents of a specified file as if those contents had appeared in the source program at the point where the directive appears.
  • You can add more than one “include”.
  • The program has a function main() which starts with { and ends with }.
  • All the functions must be in small characters.
  • The code must be written between braces {}.
  • Programming system (”PAUSE”) is an input function that causes the output DOS window to remain open after the program is executed.

Working with Dev-C++ :

  • Click:  New >Source file ( This will present a template that contains the minimum C++ code needed for a program in Dev-C++).
  • Insert the rest of your program code after the opening brace, {.

  • After you finish writing the program, hit f9 to compile the program, and save your work.

comments powered by Disqus
Loading