• Keine Ergebnisse gefunden

Vergleich C, C++, Java, C#

N/A
N/A
Protected

Academic year: 2022

Aktie "Vergleich C, C++, Java, C#"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

C# http://www.kohnlehome.de/csharp/Vergleich_C_Java_CSharp.pdf

Vergleich C, C++, Java, C#

Datentypen

C C++ Java C#

ganze Zahlen

byte 1 byte 1 Byte

short 2 %d short 2 short 2 short 2 Int16

int 4 %d int 4 int 4 int 4 Int32

long 4 %ld long 4 long 8 long 8 Int64

Kommazahlen

float 4 %f float 4 float 4 float 4 Single

double 8 %lf double 8 double 8 double 8 Double

decimal 16 Decimal

true / false bool boolean 1 bool Boolean

1 Zeichen char 1 %c char 1 char UTF-16 char UTF-8 Char

Text char[] %s string String string String

Operatoren

arithmetisch + - * / %

Zuweisung = += -= *= /= %=

Inkrement, Dekrement ++ --

logisch && || !

Vergleich == != < > <= >=

Kontrollstrukturen

a) Verzweigungen

if(Bedingung) {

...

} else {

...

}

switch(Ganzzahl) {

case Wert1: ...

break;

case Wert2: ...

break;

default: ...

}

b) Schleifen

do {

...

}while(Bedingung);

while(Bedingung) {

...

}

for(int i=min; i<=max; i++) {

...

}

Konsolenein - ausgabe

Ausgabe Eingabe

C printf("%d", variable); scanf("%d", &variable);

C++ cout << variable; cin >> variable;

Java System.out.println(variable);

C# Console.WriteLine(variable); variable = Console.ReadLine();

Franz Kohnle Seite 1 von 1 09.09.2008

Referenzen

ÄHNLICHE DOKUMENTE

Voit tarkastaa kirjoitinpään mustesuuttimet tietokoneen avulla käyttäen tulostimen ohjelmistossa olevaa Nozzle Check -apuohjelmaa tai itse tulostimesta tulostimen ohjauspaneelin

Many temporary write errors with MTE and not ENV errors can be caused by phase-shift problems. Use the following procedure to check for excessive phase

Read Electrical Skew Adjustment (NRZI-Featured Tape Units). Read/Write Head Card Removal/Replacement. Read/Write Head Degaussing. or Right Reel. ) Reel-Alignment Tool

(Se si verifica un errore passando dalla stampa su foglio singolo alla stampa su modulo continuo, assicuratevi che la levetta per il rilascio della carta sia nella

Assicuratevi che la stampante sia spenta e che la levetta per il rilascio della carta sia spinta all’indietro nella posizione per fogli singoli, come mostrato nel seguito..

Quand l’imprimante est raccordée au Macintosh, vous pouvez installer le logiciel “Logiciel d’impression pour imprimante EPSON Stylus Photo 1200” du CD-ROM livré

So kann man sich das Leben erleichtern, besonders wenn nur zu addieren ist. Am einfachsten geht das mit dem karierten Rechenpapier aus

[r]