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)