on-internet
← Community

Create own custom datatype C++

Stack Overflow ·

I'd like to create my own time and date datatypes. I want them to be formatted in a certain way when I cout them. For example just like int datatype I want a time data type that accepts an input in a certain way(ex.: 12:30). How do I manage to do that? Thank you very much

Comments

Sign in or sign up to comment and upvote.

No comments yet.