Sunday, 23 September 2012

Sup fellas!!

           I've created this page in order to enlighten you with some of the basic knowledge of programming. I am kinda new in programming too which is good for ya, i wont be goofing around with all those sophisticated terms and examples like dont worry ;)

    I'll assume that you are new in programming language and know the least of it.

 So lets get started!!!

Definitions and Stuffs!!

Computer Programming (or programming or coding) is the process of designing, writing, testing, debugging, and maintaining the source code of computer programs. Source code is any collection of computer instructions written using some human-readable computer language,usually as text. This source code is written in one or more programming languages (such as Java, C++, C#, python, etc.)
I am currently using Dev C++ IDE as it supports both x86 and 64 bit Windows OS. You can get one here (it's an open source IDE) >> Download Dev C++

So, about the source code. It looks something like this :

printf("Programming language");

And the output looks something like this:

So how does it all work?? Here is how :

  • The " # " is a preprocessor directive and is executed first.
  • The "include" includes standard input output package, simply "stdio". So with the inclusion of "stdio" you can enter/input  codes through keyboard and get the output through screen.
  • The ".h" is short for header file.The information of the functions related to input/output such as printf( ) and scanf ( ) are written in "stdio.h".
  • Angle bracket "<" and ">" encloses header file name.
  • The "getch( )" takes one character from keyboard but it will remain invisible to us. In other words, it waits for the user until he/she presses any key from keyboard. Also "getch( )" is a function which is defined in "conio.h" header file.
  • The "main()" marks the beginning of a program.It is the function that holds all the code that runs the program (the code that controls what we see in the program).

No comments:

Post a Comment