diff options
author | Oskar <[email protected]> | 2024-09-04 19:56:28 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-09-04 19:56:28 +0200 |
commit | 80b6fffdf40a04ed7fa719b038ee4d5380dd3a87 (patch) | |
tree | a60e80c6d7547b2475e4c3693e80cd85b2565c2f /6p2.cpp | |
parent | a577cee5a0b44aadadd2f0932a794310bb775a83 (diff) |
more
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; +} |