Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
What changes does it happen in the program when the exception is caught? How does thrown exception is caught in nearest catch block.
Well, I tried implementing simple exception-handling in C 2 years ago. Let me show it to you.
https://github.com/dlarudgus20/CTryCatch
(In fact, I made the github repository to practice as soon as I saw you question - it's my first repository >o< Thank you to give me the opportunity to use github!)
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
This post was edited and submitted for review 4 days ago.
Improve this question
I have an if statement with regex, and I catch some groups in order to check the values.
So I'd like to know the equivalent of $BASH_REMATCH[$i] in ZSH.
Charles Duffy gave me answers to this question with a link telling me that the equivalent is $match[$i].
Thanks to him, and to the other advices he gave me.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 months ago.
Improve this question
If a c++ function has no exception, I have to write noexcept explicitly; if a c++ has exceptions, I don't have to write anything. Why not just the opposite? If a c++ function has exceptions, I have to write except explicitly; if a c++ has no exception, I don't have to write anything.
Writing a C++ function that you are 100 % certain will not throw an exception is far from easy and requires a thorough dedicated attention.
I consider I am allowed to write this noexcept keyword as the reward.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
When I am reading design goals of C++11, it mentioned about zero-overhead principle without any examples or features which uses this principle. I can understand that it could be there to avoid degrading existing code performance. But,
Can someone explain this concept with some examples?
Approach they made to implement such a feature in the standard?
How they enforce compiler-writers to implement this?
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I was reading this post: https://stackoverflow.com/questions/1025494/obfuscating-c-c-code
The question is:
What tools are available to obfuscate C/C++ code....
An answer which had a bounty awarded to it says:
Follow the Standard insanely.
That'll be enough :)
I don't understand why people say following the standard would produce unreadable code or is impossible. Can someone explain what people mean in that post ? I'm a beginner programmer (in C / C++)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm trying to write a menu driven program without using switch case but I'm not getting to a conclusion on which statement to use. Let me know if any one is having an answer.
You want to learn about the Command design pattern. It is a very good candidate for designing menu items without relying on large switch blocks.
http://en.wikipedia.org/wiki/Command_pattern