Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Non-Trivial Class in C++

This C++ date class is intended to illustrate how to write a non- trivial class in C++.

Beginning C++23
Kickstart your coding journey with Beginning C++23 – the ultimate guide to mastering the latest in modern C++ programming!
View on Amazon

Even though this class is non-trivial, it is still simple enough for a new C++ programmer to follow all of the details of the C++ program.  Initially the constructor sets the date to current date and format to 1. This class also makes use of #ifndef directive and DOS System calls to get the date.

About The Author

M. Saqib

Saqib is Master-level Senior Software Engineer with over 14 years of experience in designing and developing large-scale software and web applications. He has more than eight years experience of leading software development teams. Saqib provides consultancy to develop software systems and web services for Fortune 500 companies. He has hands-on experience in C/C++ Java, JavaScript, PHP and .NET Technologies. Saqib owns and write contents on mycplus.com since 2004.