Sunday, January 9, 2011

Bloons Tower Defence 4 Not Blocked

GUIDE: Introduction to computer-[3 / 3]

Etc
omi returned from the long Christmas break, I should have left the vergoganre vntina blog for days!
Now we proceed with the third part of the guide "Introduction to."


For those who have not done (and it considers it necessary, I suggest you read the previous guides:

GUIDE: Introduction to [1 / 3] and
GUIDE: Introduction all'informatica[2/3] )


Un computer certo non parla l'italiano,l'inglese o lo spagnolo!

Per questo sono stati progettati per essere programmati da diversi linguaggi.Ora andremo ad

analizzarli(non tutti,ma almno i più "famosi").Dove possibile cercherò di fare dei semplici programmi chiamati in gergo "Hello World!*".


* Hello World: A is a simple Hello World program used to display a message (which is usually "Hello World")

language (or code or machine language) BINARY.


It 's the language more "ancient" and to this end all boil down to running the computer operations

(all programs, codes, games, etc ...). The binary code using only two values \u200b\u200b0 and 1.
The binary code transforms long sequences of 0 and 1 in numbers, characters ed immagini.
E' quindi possibile convertire una sequenza di 0 ed 1 in numeri tramite una formula matematica,


che ora non starò a spiegare.

Presto però i programmatori si resero conto che era difficile per un'essere umano programare applicazioni complesse
con questo sistema,quindi quasi subito crearono l'assembly.

ASSEMBLY
L'Assembly è il linguaggio di programmazione più vicino a quello macchina e rende ai programmatori più facile gestire

i programmi.Per eseguire un codice in Assembly è necessario compilarlo(con l'adeguato compilatore),cioè convertirlo in linguaggio macchina.
Ecco un esempio di "Hello World" in Assembly:
IDEAL

MODEL SMALL

STACK 100h
DATASEG     HW      DB      "Hello World", 13, 10, '$' CODESEG
Begin:
    MOV AX, @data     MOV DS, AX     MOV DX, OFFSET HW     MOV AH, 09H
    INT 21H
    MOV AX, 4C00H

    INT 21H

END Begin

C

Il C è uno dei linguaggi di programmazione più usati,è un linguaggio abbastanza "semplice".

Rende più facile programmare anche perchè utilizza a very understandable language.
The C makes it easier for programmers to program because the commands are in English.
As you will see everything is much simpler than the same program in Assembly.
Example "Hello World" in C:
# include

int main () {

printf ("Hello World");
return 0;
 }


C++


Il C++ è il "sucessore" del C,sono molto simili.Una delle principali differenze tra il C e il C++ è che il C++ è un linguaggio di programmazione orientato agli oggetti(OOP,Object-Oriented Programming).

Un linguaggio OOP prevede la definizione di "oggetti" virtuali che interagiscono tra di loro tramite
lo scambio di informazioni.
Ecco un'esempio di "Hello World" in C++:

#include <iostream>
using namespace std;
void main () {

court \u0026lt;\u0026lt;"Hello World";
return 0;}


JAVA

The Java is an object-oriented programming language with a syntax similar to C + +.
E 'was created by Sun Microsystems and its engineers (including James Gosling).
Here's an example of "Hello World" in Java:
class myfirstjavaprog
{


        public static void main(String args[])         {            System.out.println("Hello World");

        }
}

PYTHON


The Python is an object-oriented programming language developed in the 90

Rossum.Il Python by Guido van was designed to be highly readable, in fact no
complications.
Here's an example of "Hello World" in Python
print "Hello world!"



VISUAL BASIC / C + + / ETC ... Programming languages \u200b\u200b"VISUAL" are mainly graphical programming language (visual)
and consist of more than usual codice8e syntax in which they are linked) the inclusion of the editor buttons, etc ...
Although these programming languages \u200b\u200bare much easier to use, lacking a key component of the programs:
** are not cross-platform, it is ONLY for Windows operating systems at home.
Here's what the editors of these languages:



** Cross-platform: They are all those programs that can be used without modification (or with small modifications to the code) on other operating systems (like linux ).
And with that we're done, remember that they do not ALL are programming languages, but currently most used.
this guide ends here for now, other parts will be added if necessary.
E 'useless to remember to report any error, so you can correct.

0 comments:

Post a Comment