Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,11 @@
if (x > 0) goto positive;
else goto negative;
positive:
Console.WriteLine("pos\n"); goto both;
negative:
Console.WriteLine("neg\n");
both:
...

View file

@ -0,0 +1 @@
goto (x > 0 ? positive : negative);

View file

@ -0,0 +1,5 @@
for (i = 0; ...) {
for (j = 0; ...) {
if (condition_met) goto finish;
}
}

View file

@ -0,0 +1,5 @@
goto danger;
for (i = 0; i < 10; i++) {
danger:
Console.WriteLine(i);
}

View file

@ -0,0 +1,12 @@
int i = 0;
tryAgain:
try {
i++;
if (i < 10) goto tryAgain;
}
catch {
goto tryAgain;
}
finally {
//goto end; //Error
}

View file

@ -0,0 +1,15 @@
public int M(int n) {
int result = 0;
switch (n) {
case 1:
cost += 25;
break;
case 2:
cost += 25;
goto case 1;
case 3:
cost += 50;
goto case 1;
}
return result;
}