Lets make a c++ program!
Surely you can do something more interesting with a function definition like the one I began there. What use is it to provide interesting code if it is just going to be ignored by premature returning. Also, you will likely cause compiler warnings by using the wrong kind of literal.
To make it is hell. To fail is divine.
That was a rather boring use of my perfectly fine function definition. What use is it to provide interesting code if you're just going to ignore the possibilities.
Also, you will likely cause compiler warnings by using the wrong kind of literal.
I'm not sure what you were going for. Feel free to submit a revision.
What precisely is the point of this thread if you're going to arbitrarily disallow anything interesting?
What precisely is the point of this thread if you're going to arbitrarily disallow anything interesting?
All the post Washu made were intentionally closing out the program.
If you do not understand code, ask about what it does instead of just throwing code out there to neutralize it?
It's a function definition of a function f, that takes two arguments of type "int" and "function pointer returning int taking a double", returning double.
As for the odd function syntax, it's the alternative syntax allowed by C++0x.
It's a function definition of a function f, that takes two arguments of type "int" and "function pointer returning int taking a double", returning double.
As for the odd function syntax, it's the alternative syntax allowed by C++0x.
To make it is hell. To fail is divine.
If you do not understand code, ask about what it does instead of just throwing code out there to neutralize it?
It's a function definition of a function f, that takes two arguments of type "int" and "function pointer returning int taking a double", returning double.
As for the odd function syntax, it's the alternative syntax allowed by C++0x.
Alright I added a new rule which allows you to insert code so I didn't technically close out your function. This also would make a win main function which returns 0 perfectly acceptable since more code can be entered into it.
std::terminate();
Stb::terminate() is undefined and does not function with the above code.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement