Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 04 / function overload.cpp
diff options
context:
space:
mode:
Commite55e9fb058a046f6f1e08da521660a8d98b1d5db (patch)
Author
 Justsvetoslavov <justsvetoslavov@gmail.com>
2021-11-02 16:23:53 +0200
Committer
 Justsvetoslavov <justsvetoslavov@gmail.com>
2021-11-02 16:23:53 +0200
Files5349958796d3a2ab253b7869ca9d15cd38821d3b /pract_SI/Pract. 04/function overload.cpp
Introduction_to_programming_FMI-e55e9fb058a046f6f1e08da521660a8d98b1d5db.tar
Introduction_to_programming_FMI-e55e9fb058a046f6f1e08da521660a8d98b1d5db.tar.gz
Introduction_to_programming_FMI-e55e9fb058a046f6f1e08da521660a8d98b1d5db.zip
Parent15b1685a4c684b5498473ff1cefa1767bc655d49 (diff)
Added Solutions
1 files changed, 16 insertions, 0 deletions
-rw-r--r--pract_SI/Pract. 04/function overload.cpp16
diff --git a/pract_SI/Pract. 04/function overload.cpp b/pract_SI/Pract. 04/function overload.cpp
new file mode 100644
index 0000000..7e0bdfa
--- /dev/null
+++ b/pract_SI/Pract. 04/function overload.cpp
@@ -0,0 +1,16 @@
+void print() //print - arguments: 0
+{
+ cout << "Hello World!\n";
+}
+
+void print(int number) //print - arguments: 1
+ //int
+{
+ cout << "Hello World N" << number << endl;
+}
+
+void print(double number) //print - arguments: 1
+ //double
+{
+ cout << "Hello World N" << number << endl;
+}