ich verstehe hier die ausgabe nicht : hat jemand nen Plan?
| 1 | #include <iostream> | 
| 2 | using namespace std; | 
| 3 | int f1(int a); | 
| 4 | int f2(int a); | 
| 5 | |
| 6 | int main() | 
| 7 | {
 | 
| 8 | int a=0; | 
| 9 | int b=1; | 
| 10 | for(int count =-10;count<=0;++count) | 
| 11 |     {
 | 
| 12 | b+=f1(a)+f2(a); | 
| 13 | cout<<b<<endl; | 
| 14 |     }
 | 
| 15 | return 0; | 
| 16 | }
 | 
| 17 | |
| 18 | int f1(int a) | 
| 19 | {
 | 
| 20 | int b; | 
| 21 | b=f2(a); | 
| 22 | return (b); | 
| 23 | }
 | 
| 24 | |
| 25 | int f2(int a) | 
| 26 | {
 | 
| 27 | static int b=-5; | 
| 28 | b+=1; | 
| 29 | return (b+a); | 
| 30 | }
 | 
Ausgabe lautet: -6 -9 -8 -3 6 19 36 57 82 111 144
 Thread beobachten
 Thread beobachten Seitenaufteilung abschalten
 Seitenaufteilung abschalten