C Programming Tutorials By sid3arm
Index
Chapter 1
1. Introduction
2. Introduction To C
Chapter 2
1. A Basic C program
2. Showing some tips to make a hellworld look better - Coming soon -
__________________________________________________ ___________
Introduction
Welcome to " C programming " from Sid3arm
skillz needed to do this course or start this course..
* NO PROGRAMMING EXPERIENCE IS ASSUMED
But if you have programmed in basic it will help a little bit not to much tho, anyways will move on now.
* This Course will cover topics from a introductory level to a Advanced level
Ok the we are going to start with the most basic program to write in C and that is called a helloworld program and then from there we will slowy work our way up learning new stuff and consepts & point funtion points and many more...
__________________________________________________ ___________
Introduction To C
Hello and welcome to Introduction To C now i would like to start off by saying that
* C is a Low-level but yet structured
* C is very hard to write GUI in i would say use C# but will talk about this after
* C is a Procedural language.
* C is a Multi-platform/Portable language
* is a a very poweful programming languge in fact it is to powerful C allows the programmer to do anything that the OS there working on is capable of you can do anythink is C even if that thing your trying to do is avisable or out right evil
* Complex - C is not a good learing language
" C retains the basic philosophy that programmers know what they are doing "
* Versions of C
-"Kernigham and Ritchie " C
- ANSI C
- C++ - C++ is not C it is a other programming languge
- C#, Java
If your thing abut getting in to C Programming alot or want to do this i would say get this book
The C programming Language ANSI C Second Edition
This is not for learn it is for lookup and and for when you forget some stuff it is classed as the C programmers bibe
__________________________________________________ ___________
A Basic C program
* We are going to creare a " helloworld " program
" A very simple program to print helloworld on the screen "
We are all so going to look at
-printf
-scanf
-getchar
Ok now will get on to the programming..
Now open Open your notepad or Complier and type in
Code:
main()
{
printf("Helloworld");
getchar();
}
ok now ill tell you a lil about this code you just wrote ..
* printf("What eva is in here is printed on the screen with in the DOS box")
* getchar(); = stop the DOS box from auto closing it just pauses the DOS screen and wait for it to be closed
Ok now will just make the code abit more user friendly
How do you think we would do this ??????
i want you to try this befor reading how i did it .. Thank you
if you dont know it is fine if you knew it was done like like this then you was right if you got it wrong it ok
Here is how you do it
Code:
main()
{
printf("Helloworld\n");
printf("Thank you, for viewing my helloworld :)\n");
printf("Please press enter to exit..\n");
getchar();
}
ok now you know how to use printf and getchar will move on to a scanf funtion
Now with this code we just did.. we are goign to add a variable to our helloworld program
Code:
main()
{
int age;
printf("Helloworld\n");
age = 18;
printf("My age is %d\n");
printf("Thank you, for viewing my helloworld :)\n");
printf("Please press enter to exit..\n");
getchar();
}
Ok did you run that .. See how a Variable works..
Now you know how to use printf, getchar & scanf next will show you have to clear the text from the screen after your down with it ..
ill give yous a tip for now
system("somethink need to go in here to clear text do you know what ");
__________________________________________________ ___________
More coming very soon
----------------
By : Sid3arm |
----------------