We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Classes
- Inherited Code
- Discussions
Inherited Code
Inherited Code
Sort by
recency
|
213 Discussions
|
Please Login in order to post a comment
This exercise is broken for C++20, with the editor having completely different reset contents than for C++11 or 14.
For C++20 the editor only shows an empty main() template.
What I've learned: 1. In try-catch structure, throw passes a value to the catch section.
Class(arg) also can create object of the class "Class" called "arg"?? I thought I could use a parameterized constructor to get the letter length and override what() method to print it out. I'm still wandering how's it possible for my exception class to accept the letter number "n".
"exception" header imports "exception" base class. We can define our own exception class ourselves.