codice:
#include <iostream>
#include <stdlib.h>

using namespace std;

void myfunc(); 


int main(int argc, char *argv[])
{
  cout << "In main()"; 
  myfunc(); 
  cout <<"Ritorno in main()"; 
  cout << endl;
  system("pause");	
  return 0;
}

void myfunc() 
{ 
cout <<"Dentro myfunc()"; 
}
Il system("pause"); va messo nel main e non nella funzione altrimenti va in pausa la funzione e non rientra nel main.

Ciao