Apologies for the delay in posting thisโexams kept me busy. Finally catching up!
This will be the last post of my C++ learning progress. Stay tuned for the next topic I'll pick!
This week, I delved deep into operator overloading, inheritance, virtual functions, templates, and STL containers in C++. Here's a quick recap of what I worked on during Days 104โ110.
๐น Day 71 โ Operator Overloading
-
Time Incrementer โ Overloaded
++
to adjust departure time - Matrix Math โ Multiplication and transpose operations
-
Matrix Negator โ Unary
-
to invert matrix elements
๐น Day 72 โ Inheritance & Virtual Functions
-
Population Growth Calculator โ Virtual
calcRate()
- Time Format Converter โ Conversion between hours, minutes, and seconds
- Reservation Discount System โ Age-based pricing
๐น Day 73 โ Abstract Classes & Use Cases
-
Meal Price Estimator โ Polymorphism with
calculatePrice()
- Shop Inventory Manager โ Item management using virtual functions
- Experiment Analyzer โ Analyzing experimental data with polymorphism
๐น Day 74 โ Practical Polymorphism
- Item Cost Calculator โ Discounts based on item type
- Banking System โ Inheritance for different account types
- Vehicle Cost Tracker โ Calculate travel time/cost across modes
๐น Day 75 โ Templates
-
Stack Handler โ Operations for
int
andfloat
types - URL Tracker โ Indexing URLs with function templates
- Laptop Model Manager โ Track models using function templates
๐น Day 76 โ Smart Array Operations
- Composite Number Filter โ Remove primes from list
- Array Max Finder โ Find largest/second-largest elements
- Odd Index Printer โ Print elements at odd indices
๐น Day 77 โ STL & Template Utility Apps
- Construction Inventory System โ Update/display material info
-
STL List Handler โ Sort/remove duplicates from
std::list
- Table Generator โ Print multiplication table for an array element
๐ Key Takeaways
โ๏ธ Focused on operator overloading, templates, and polymorphism
โ๏ธ Built real-world applications with inheritance and STL
โ๏ธ Gained hands-on experience in generic programming using templates
Top comments (0)