Adblock breaks this site

[TUT][C] A very basic C tutorial

Discussion in 'Programming General' started by Eduard, Dec 10, 2010.

  1. Eduard

    Eduard Member
    Banned

    Joined:
    May 26, 2006
    Posts:
    45
    Referrals:
    1
    Sythe Gold:
    0
    [TUT][C] A very basic C tutorial

    Eduard's Tutorial - BASIC C

    By: Eduard - Sythe



    Table of Contents
    • i - Revision history
    • 1.0 - Introduction
    • 2.0 - What is C?
    • 3.0 - Lesson 1 - Hello world
    • 4.0 - Conclusion
    • 5.0 - Frequently Asked Questions




    1.0 - Introduction
    » Good day Sythe, i'm writing this guide due to the topic : 'revision of the programming topic'. This guide won't be perfect, but it will be a good start.
    » This guide will teach you what C is, why to program in C and some basic stuff to build on.


    2.0 - What is C?
    C is a low-level programming language. This means that the road to the processor and hardware is shorter than, for example VB or C#. It's a language that has to be compiled. A compiler is a program that converts code, aka typed language into 0010001001001010. I recommend to download CODEBLOCKS ( look it up on google ).

    Apple, windows, linux. All written in C. Your car's navigation system, C. Your mobile phone, C. C is one of the most advanced languages in the world. But, also one of the hardest to master. Pointers ( memory allocations ) and thinks like that are so advanced, that when used wrong. Could messup the whole program.


    3.0 - Lession 1 - Hello World

    Code:
    #include <stdio.h> // the functions of your program included in an book. It's your memory on how to start up a car.
    
    int main() 
    {  
        printf("Hello Sythe!");
        return 0; 
    } 
    

    int main()
    // the main loop of the program. You start the engine.
    Code:
    [b] {[/b]
    
    // openings brackets. you put in your key.
    Code:
    [b] printf("Hello Sythe!"); [/b]
    
    // you use a standart function called printf. it shows the text what is withing the brackets. Hello sythe! on a console app.
    Code:
    [b] return 0; [/b]
    
    //Well we turn off the engine.
    Code:
    [b] } [/b]
    
    pull out the keys.

    To be continued....

    4.0 - Conclusion
    To be continued...

    5.0 - Frequently Asked Questions

    Q: Where can i learn to program professional C?

    » A:


    Q: Could u teach me to write a keylogger?

    » A:
    Yes I will, moderators; It will be one that could only be used on the computer of the person whom writes it. Do not worry ;)
     
  2. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    [TUT][C] A very basic C tutorial

    This might be more appropriate in User Education :)
     
  3. sam982000

    sam982000 Forum Addict
    Banned

    Joined:
    Jun 6, 2010
    Posts:
    475
    Referrals:
    1
    Sythe Gold:
    0
    [TUT][C] A very basic C tutorial

    Thanks for taking time. Will look over all this i really am intrested in computer, and it may help with a career. plus gives me something to do over winter break. Appriciate it
     
< i need help | A "file" problem (python) >


 
 
Adblock breaks this site