







|
C
C is one of the first programming languags. C is used a lot because it does not cost any money because most computer can allready read C programs with no problems. Also C's progrmas have more of a compact source so they do take up as much room asd other languages such as basic. C can be run with all most any system if you have the proper equiptment. All you need is something to type it up with which could be anything and a compiler which is different from IBM to MAC. the compiler formates the source so that the computer can read it. Most IBM computer use the extention .exe which i uesally run under dos unless you program the program to run under windows, Unix, etc. All C programs Start with:
#include <stdio.h>
C programs also have a:
#include <stdio.h>
Main()
{
statements
}
in them
Vars
int name;
chr name;
num name;
Print Text
printf("text here"\n);
in you want to print down the next line you must put a \n where you what to go down a line
Functions
name();
the functions will be discribed earlier so the computer knows what to do
Inputs
scanf("%f", &name")
&name is the name you want to asign the text you type in. scanf looks for a text in the line which the user must type in.
Most of C works a lot like JavaScript. You add and subtract vars and numbers the same way and to asign vars with a number just use the = sign and if you are tryin to compare something you use the == sign.
|