diff options
Diffstat (limited to '6p2.cpp')
-rw-r--r-- | 6p2.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -0,0 +1,35 @@ + +/* + * + * 6.2 + * + * + */ + +int main () { + + /* Corrected versions + + (a) + string f() { + string s; + // . . . + return s; + } + + (b) + void f2(int i) { } + + (c) + int calc(int v1, int v2) { + + return v1 + v2; + } + + (d) + double square(double x) { + return x * x; + } + */ + return 0; +} |