ATo second what laura said is we really need to see your code to answer your question. My guess would be that you do not have a loop around the function In the main function. Your function is returning to the main loop but your used to a event driven language. This is a functional language and all those loops you take for granted in a event driven language are not there. So what you need is to do something like this Int main() { While (1) { yourFunc() } } Or I Nt main () { While (yourFunc()); } Then you could make it so your function returned true when you wanted to continue or false to drop out. Or if you wanted other functions to run after your func it would be more like Int main() { While (yourFunc()) { Anotherfunc() AndAnotherFunc() andAnotherAgain() } } This is of course just ugly examples but it should push you in the right direction. From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Haden Pike Sent: Saturday, May 16, 2009 9:43 AM To: programmingblind@xxxxxxxxxxxxx Subject: Re: c++ question This is my first program in c++. I did a little of visual basic programming a while back but decided to give c++ a try. What my program is doing is calling the correct function I want but after that function does its job the program exits. My intention was to have it return to the main function so the user usually myself, can call another function. Haden From: tribble <mailto:lauraeaves@xxxxxxxxx> Sent: Saturday, May 16, 2009 1:15 AM To: programmingblind@xxxxxxxxxxxxx Subject: Re: c++ question Hello Haden -- I don't quite know how to answer, since the behavior you want is exactly what C++ is defined to do. Could you give an example? Is this your first program in C++? or are you talking about something more advanced like exception handling that returns control to main from an exception point? --le ----- Original Message ----- From: Haden Pike <mailto:haden.pike@xxxxxxxxx> To: programmingblind@xxxxxxxxxxxxx Sent: Friday, May 15, 2009 10:39 PM Subject: c++ question Hi all. I am trying to write a consul application in c++. My problem is that once it executes a function, I want it to return to the main function in this case int main. I am not sure how to accomplish this or maybe I am, it's just evading me for now. *smile* Anyway, thanks in advance for any help. Haden