Hello,
I want to exit from any place of function that return somthing and I don't want to use If.. for that, any ideas?
For example:
int demo()
{
string test;
...
<something doing here and exit from function>
...
<something doing here and exit from function>
...
etc.
};
Thank's.
I want to exit from any place of function that return somthing and I don't want to use If.. for that, any ideas?
For example:
int demo()
{
string test;
...
<something doing here and exit from function>
...
<something doing here and exit from function>
...
etc.
};
Thank's.