summaryrefslogtreecommitdiff
path: root/7p35.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-09-26 14:35:42 +0200
committerOskar <[email protected]>2024-09-26 14:35:42 +0200
commitb0b9d83b2baae38be742fc21ec60bde794d3eedd (patch)
treeeb837b672113c21cf9bcff54aa6095d796dc3893 /7p35.cpp
parent88f7c0cfde5bb7d5cb310dad788dce23382a249f (diff)
more
Diffstat (limited to '7p35.cpp')
-rw-r--r--7p35.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/7p35.cpp b/7p35.cpp
new file mode 100644
index 0000000..094d1df
--- /dev/null
+++ b/7p35.cpp
@@ -0,0 +1,32 @@
+#include <iostream>
+
+/*
+ *
+ * 7.35
+ *
+ *
+ */
+
+typedef std::string Type;
+Type initVal();
+class Exercise {
+public:
+ typedef double Type;
+ Type setVal(Type); // double / double
+ Type initVal(); // double
+private:
+ int val;
+};
+
+Exercise::Type Exercise::setVal(Exercise::Type parm) {
+ val = parm + initVal(); // double initVal() is used
+ return val; // Return val as double?
+}
+
+Exercise::Type Exercise::initVal() {
+ return 0;
+}
+
+int main () {
+ return 0;
+}