Exercise 1 solution : Python tutorial 121
File I/O in C++: Working with Files | C++ Tutorials for Beginners #59
Operator Overloading in C++ Programming | C++ Programming for Beginners
if-else Statement (Exercise 2)
Multiline macros in C - GeeksforGeeks