|
Re: Returning to the main function from another
Quote:
Originally Posted by Soulstorm
You can't return whole functions in C++. You can return pointer to functions, but that is a whole different story.
|
Do I misunderstand you? 'Cause this works.
#include <cstdio>
int foo() { return 0; }
int bar() { return foo(); }
int main() {
printf("%d",bar());
return bar();
}
__________________
How do you play Religious Roulette?
Stand around in a circle and blaspheme till someone gets struck by lightning.
|