mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
Made whitespace more consistent
This commit is contained in:
@@ -270,7 +270,7 @@ int main (int argc, char** argv){
|
|||||||
int e = 5;
|
int e = 5;
|
||||||
int f = 10;
|
int f = 10;
|
||||||
int z;
|
int z;
|
||||||
z = ( e > f) ? e : f; // => // => 10 "wenn e > f ist, gib e zurück, sonst f."
|
z = ( e > f ) ? e : f; // => // => 10 "wenn e > f ist, gib e zurück, sonst f."
|
||||||
|
|
||||||
// Inkrementierungs- und Dekrementierungsoperatoren
|
// Inkrementierungs- und Dekrementierungsoperatoren
|
||||||
int j = 0;
|
int j = 0;
|
||||||
@@ -297,13 +297,13 @@ int main (int argc, char** argv){
|
|||||||
////////////////////////////////////////////////
|
////////////////////////////////////////////////
|
||||||
// Kontrollstrukturen
|
// Kontrollstrukturen
|
||||||
////////////////////////////////////////////////
|
////////////////////////////////////////////////
|
||||||
if (0) {
|
if (0){
|
||||||
printf("Ich werde nie ausgeführt.");
|
printf("Ich werde nie ausgeführt.");
|
||||||
}
|
}
|
||||||
else if (0){
|
else if (0){
|
||||||
printf("Ich werde auch nie ausgeführt.");
|
printf("Ich werde auch nie ausgeführt.");
|
||||||
}
|
}
|
||||||
else {
|
else{
|
||||||
printf("Ich gebe etwas aus.");
|
printf("Ich gebe etwas aus.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -317,9 +317,9 @@ int main (int argc, char** argv){
|
|||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
int kk = 0;
|
int kk = 0;
|
||||||
do {
|
do{
|
||||||
printf("%d, ", kk);
|
printf("%d, ", kk);
|
||||||
} while(++kk < 10); //++kk inkrementiert kk BEVOR der Wert gebraucht wurde.
|
}while(++kk < 10); //++kk inkrementiert kk BEVOR der Wert gebraucht wurde.
|
||||||
// => gibt folgendes aus: "0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "
|
// => gibt folgendes aus: "0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
Reference in New Issue
Block a user