Code: Alles auswählen
#include <stdio.h>
#include "pi.c"
char wort1 [25], wort2 [25], wort3 [25], wort4 [25], wort5 [25], wort6 [25], wort7 [25], wort8 [25], wort9 [25], wort10 [25], wort11 [25], wort12 [25], wort13 [25], wort14 [25], wort15 [25], wort16 [25], wort17 [25], wort18 [25], wort19 [25], wort20 [25], wort21 [25], wort22 [25], wort23 [25], wort24 [25], wort25 [25];
int main ()
{
pi();
printf ("hi");
return 0;
}
Code: Alles auswählen
#include <stdio.h>
void pi()
{
if (wort1=="Pi") goto ja;
if (wort2=="Pi") goto ja;
if (wort3=="Pi") goto ja;
if (wort4=="Pi") goto ja;
if (wort5=="Pi") goto ja;
if (wort6=="Pi") goto ja;
if (wort7=="Pi") goto ja;
if (wort8=="Pi") goto ja;
if (wort9=="Pi") goto ja;
if (wort10=="Pi") goto ja;
if (wort11=="Pi") goto ja;
if (wort12=="Pi") goto ja;
if (wort13=="Pi") goto ja;
if (wort14=="Pi") goto ja;
if (wort15=="Pi") goto ja;
if (wort16=="Pi") goto ja;
if (wort17=="Pi") goto ja;
if (wort18=="Pi") goto ja;
if (wort19=="Pi") goto ja;
if (wort20=="Pi") goto ja;
if (wort21=="Pi") goto ja;
if (wort22=="Pi") goto ja;
if (wort23=="Pi") goto ja;
if (wort24=="Pi") goto ja;
if (wort25=="Pi") goto ja;
else goto nein;
ja:
pij()
nein:
}
void pij()
{
if (wort1=="wie") goto ja2;
if (wort2=="wie") goto ja2;
if (wort3=="wie") goto ja2;
if (wort4=="wie") goto ja2;
if (wort5=="wie") goto ja2;
if (wort6=="wie") goto ja2;
if (wort7=="wie") goto ja2;
if (wort8=="wie") goto ja2;
if (wort9=="wie") goto ja2;
if (wort10=="wie") goto ja2;
if (wort11=="wie") goto ja2;
if (wort12=="wie") goto ja2;
if (wort13=="wie") goto ja2;
if (wort14=="wie") goto ja2;
if (wort15=="wie") goto ja2;
if (wort16=="wie") goto ja2;
if (wort17=="wie") goto ja2;
if (wort18=="wie") goto ja2;
if (wort19=="wie") goto ja2;
if (wort20=="wie") goto ja2;
if (wort21=="wie") goto ja2;
if (wort22=="wie") goto ja2;
if (wort23=="wie") goto ja2;
if (wort24=="wie") goto ja2;
if (wort25=="wie") goto ja2;
else goto nein2;
ja2:
if (wort1=="groß") goto ja3;
if (wort2=="groß") goto ja3;
if (wort3=="groß") goto ja3;
if (wort4=="groß") goto ja3;
if (wort5=="groß") goto ja3;
if (wort6=="groß") goto ja3;
if (wort7=="groß") goto ja3;
if (wort8=="groß") goto ja3;
if (wort9=="groß") goto ja3;
if (wort10=="groß") goto ja3;
if (wort11=="groß") goto ja3;
if (wort12=="groß") goto ja3;
if (wort13=="groß") goto ja3;
if (wort14=="groß") goto ja3;
if (wort15=="groß") goto ja3;
if (wort16=="groß") goto ja3;
if (wort17=="groß") goto ja3;
if (wort18=="groß") goto ja3;
if (wort19=="groß") goto ja3;
if (wort20=="groß") goto ja3;
if (wort21=="groß") goto ja3;
if (wort22=="groß") goto ja3;
if (wort23=="groß") goto ja3;
if (wort24=="groß") goto ja3;
if (wort25=="groß") goto ja3;
else goto nein2;
ja3:
printf ("Pi beträgt 3,141592654");
nein2:
}
Code: Alles auswählen
E:\BOT\pi.c||In function `pi':|
E:\BOT\pi.c|5|error: `wort1' undeclared (first use in this function)|
E:\BOT\pi.c|5|error: (Each undeclared identifier is reported only once|
E:\BOT\pi.c|5|error: for each function it appears in.)|
E:\BOT\pi.c|6|error: `wort2' undeclared (first use in this function)|
E:\BOT\pi.c|7|error: `wort3' undeclared (first use in this function)|
E:\BOT\pi.c|8|error: `wort4' undeclared (first use in this function)|
E:\BOT\pi.c|9|error: `wort5' undeclared (first use in this function)|
E:\BOT\pi.c|10|error: `wort6' undeclared (first use in this function)|
E:\BOT\pi.c|11|error: `wort7' undeclared (first use in this function)|
E:\BOT\pi.c|12|error: `wort8' undeclared (first use in this function)|
E:\BOT\pi.c|13|error: `wort9' undeclared (first use in this function)|
E:\BOT\pi.c|14|error: `wort10' undeclared (first use in this function)|
E:\BOT\pi.c|15|error: `wort11' undeclared (first use in this function)|
E:\BOT\pi.c|16|error: `wort12' undeclared (first use in this function)|
E:\BOT\pi.c|17|error: `wort13' undeclared (first use in this function)|
E:\BOT\pi.c|18|error: `wort14' undeclared (first use in this function)|
E:\BOT\pi.c|19|error: `wort15' undeclared (first use in this function)|
E:\BOT\pi.c|20|error: `wort16' undeclared (first use in this function)|
E:\BOT\pi.c|21|error: `wort17' undeclared (first use in this function)|
E:\BOT\pi.c|22|error: `wort18' undeclared (first use in this function)|
E:\BOT\pi.c|23|error: `wort19' undeclared (first use in this function)|
E:\BOT\pi.c|24|error: `wort20' undeclared (first use in this function)|
E:\BOT\pi.c|25|error: `wort21' undeclared (first use in this function)|
E:\BOT\pi.c|26|error: `wort22' undeclared (first use in this function)|
E:\BOT\pi.c|27|error: `wort23' undeclared (first use in this function)|
E:\BOT\pi.c|28|error: `wort24' undeclared (first use in this function)|
E:\BOT\pi.c|29|error: `wort25' undeclared (first use in this function)|
E:\BOT\pi.c|34|error: syntax error before "nein"|
E:\BOT\pi.c|30|error: label `nein' used but not defined|
E:\BOT\pi.c|38|error: conflicting types for 'pij'|
E:\BOT\pi.c|32|error: previous implicit declaration of 'pij' was here|
E:\BOT\pi.c||In function `pij':|
E:\BOT\pi.c|39|error: `wort1' undeclared (first use in this function)|
E:\BOT\pi.c|40|error: `wort2' undeclared (first use in this function)|
E:\BOT\pi.c|41|error: `wort3' undeclared (first use in this function)|
E:\BOT\pi.c|42|error: `wort4' undeclared (first use in this function)|
E:\BOT\pi.c|43|error: `wort5' undeclared (first use in this function)|
E:\BOT\pi.c|44|error: `wort6' undeclared (first use in this function)|
E:\BOT\pi.c|45|error: `wort7' undeclared (first use in this function)|
E:\BOT\pi.c|46|error: `wort8' undeclared (first use in this function)|
E:\BOT\pi.c|47|error: `wort9' undeclared (first use in this function)|
E:\BOT\pi.c|48|error: `wort10' undeclared (first use in this function)|
E:\BOT\pi.c|49|error: `wort11' undeclared (first use in this function)|
E:\BOT\pi.c|50|error: `wort12' undeclared (first use in this function)|
E:\BOT\pi.c|51|error: `wort13' undeclared (first use in this function)|
E:\BOT\pi.c|52|error: `wort14' undeclared (first use in this function)|
E:\BOT\pi.c|53|error: `wort15' undeclared (first use in this function)|
E:\BOT\pi.c|54|error: `wort16' undeclared (first use in this function)|
E:\BOT\pi.c|55|error: `wort17' undeclared (first use in this function)|
E:\BOT\pi.c|56|error: `wort18' undeclared (first use in this function)|
E:\BOT\pi.c|57|error: `wort19' undeclared (first use in this function)|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
was will der mist von mir:
die vari sind global...
die funktionen gibts...
mfg
Empire