C Computer Programming Language #1 - Intro | Programming, .NET, Silverlight & More

C Computer Programming Language #1 - Intro

C is one of the most common computer programming languages today. C++ is an extension to plain C that allows object oriented programming and is not discussed here. Some other programming languages are:

BASIC - good for beginners, however some say
the syntax (programming grammer) is
a bit awkward compared to more modern
languages. Modern versions are GWBasic,
QBasic (Quick-Basic), and Visual Basic
(VB) which adds some functionality for
making some Windows type programming into
the language, but it is noted for not
being a sound logically structured
programming language.

Fortran, Pascal - older languages, but good.

JAVA - a more modern language that is good for
many machines.

HTML - for making webpages
Java Script - for adding a lot of functionality
to webpages.

machine language - just numbers - a “low-level” the most basic programming for a computer. All computer programs eventually wind up to this in computer memory.

Assembly Language - like machine language, but a lot of istance is given to make it easier to read and write it. Some computers might come with a program called DEBUG that is a simple program for making computer programs.

C can be used for both low level (machine code) and high level programming (especially C++).

————————————————
There can be a lot to cover with computer programming. I can only cover some basics
of it with these video/discussions. Still, a major use for programming is number crunching; An input of numbers, some calculations with them, and an output of the results. These vidoes and responses will be geared to functions rather than specific large programs, so that way, many more people can contribute code and ideas. For the basics of C programming and syntax, there are many online documents.
————————————————

You need a C compiler (program) to process your C programs (called “source code”) into machine language. There are many free ones. Some are quite large to handle for a beginner. A good place to start is to get a small one. And I recomend the Tiny C Compiler (TCC). Its free. This compiler does not have a GUI (Graphical Users Interface) … basically a Windows program with menu’s. Nor does it have an IDE - Integrated Development Enviornment where you can edit, and select compiler options and settings and run/debug your programs. It is quite possible that you can make simple ones yourself, even its just batchfiles (.bat programs, operating system commands in the form of a script or textfile).

1. Download the Windows binary distruibution of
TCC from:
http://fabrice.bellard.free.fr/tcc/

2. Unzip this downloaded .zip file. You need an
installed ZIP (compression/decompression)
utility to do this. The extracted files
will be in the TCC-0.9.23 folder. This will
contain the following folders/directories:

TCC
DOC
EXAMPLES
INCLUDE
LIB

3. TCC does not need to be “installed” like most
Windows programs. To avoid always
telling TCC where some of the required code
locations are, such as the INCLUDE and LIB
directories, you can simply place these
two directories into the TCC folder since it
will automatically search its own directory
there if none is specified.

4. You can use any text editor, such as Notepad,
to write a C program or batch (.bat) file.
For a C program, use .c as the filename
extension, and .bat for a batchfile. You may
want to know some Batchfile programming to
ist making C programs and other things.

TCC is initially a command line (operating system command line) C compiler. You must either type the commands to compile a program or make batchfile programs that can be run by entering their name or pressing their icons.

You can click on the TCC icon, but it runs and you are not left in the command line - DOS operating system mode, but are returned quickly to Windows. To get to the operating system/DOS mode you can make a batchfile with the following command in it:

CMD (might be command.com on earlier computers)

Place this batchfile in the TCC directory of course. To get back to the Windows program/operating system, enter the command: EXIT

If you would like to see TCC’s menu you can then
run the above batchfile and enter TCC, or make a batch file such as:

TCC
CMD

When running a C program or batchfile, you can exit it early by pressing one of the following:
CTRL + C
CTRL + Break
CTRL + Alt + Del (and select what program to
quit)

You can place your C programs right into the TCC folder, or make a folder such as CPrograms in the TCC folder. You would then compile the programs with commands such as:

TCC myfile1.c or
TCC CPrograms\myfile1.c

Duration : 0:0:14


No TweetBacks yet. (Be the first to Tweet this post)

Technorati Tags: , , , , , , , , , , , , , , ,

25 Responses

  1. michaelluke Says:

    dim num1
    dim num2 …

    dim num1
    dim num2
    input “what is the first number” ; num1
    input “what is the second number” ; num2
    print “the answer is” ; num1 + num2
    sleep

  2. nerdy8675309 Says:

    kinda of a neat …
    kinda of a neat technique you used to teach something, giving instructions to read the notes on the right side, pretty neat, i liked it and i learned!

  3. transhuman7 Says:

    I think you’re …
    I think you’re missing the point of what YouTube is designed for.

  4. 26593RS Says:

    command button1. …
    command button1.onclick()
    account1.account.delete
    video1.video.delete
    msgbox(”TIS VID SOX”)

  5. stehu Says:

    if(this.video == …
    if(this.video == sucks) delete this pile of vomit;

  6. alexguitar87 Says:

    #include “stdio.h”

    #include “stdio.h”

    void main(void)
    {

    printf(”Thank You! you help me a lot!”\n);

    return;
    }

  7. BinaryReader Says:

    int main(int argc, …
    int main(int argc, char *argv[])
    {
    return 0;
    }

  8. sspoke Says:

    Description of …
    Description of Video
    Teaches you all dumasses -.-

  9. Mancag3 Says:

    this is dumb.
    this is dumb.

  10. coolacpc Says:

    **** you u make no …
    **** you u make no sence tho ur noob but no offence!

  11. dmidc Says:

    alright, for those …
    alright, for those of those ppl who tink this is crap u r return 1 programs (and if u don know wat that means that means ur failures)

    king crimson ur a -1 program (does not do anyting)

  12. 90ducks Says:

    if only it waz a …
    if only it waz a bit shorter

  13. verbindingsfout Says:

    its the final …
    its the final coutdown tu tu tu du tu tu tu tu tu tu tu tu du

  14. AcePIREP Says:

    OMFG this video …
    OMFG this video rocks. It puts the thought out of my mind that C++ is better. And im better than you! everyone is!

  15. hhbproductions Says:

    poopy poopy poopy …
    poopy poopy poopy poopy poopy poopy poopy poopy poopy poopy poopy poopy poopy poopy poopy poopy poopy poopy

  16. PADREMENDOZA Says:


    boooooooooooooooooooooooo

  17. bloodkaiser360 Says:

    ok… good yeah… …
    ok… good yeah… hmmm…

  18. ipodontherun Says:

    erm thanks? lol
    erm thanks? lol

  19. LoLChulo Says:

    thats too
    thats too

  20. LOUIEAVILA8 Says:

    Please remove this …
    Please remove this stupid piece of crap.

  21. jarochelas Says:

    and the Nobel prize …
    and the Nobel prize winner 2007 is…ipodontherun (applause)…for the amazing discovering of hidden notes of this ty video…(applause and cheers)

  22. Trumple Says:

    all i can say is …
    all i can say is 101010001010110010 1010110010110 1011010001100. I hope in binary it says boring.

  23. netBorbeDrugs Says:

    <b>

    Enter …
    <b>

    Enter XXXodour.com_ to Play Full Length XXX Videos 4 FREE

    </b>

  24. ipodontherun Says:

    hey good …
    hey good description on the right, which as you can see, all the stupid people who commented didnt read it.

  25. PepeguArgent Says:

    please flag this …
    please flag this stupid video and it will be erased. thanks

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.