c++ question: calling other files?

I'm making a text adventure game, and it's actually coming along quite nicely...the only thing is, I want to be able to return to the previous screen whenever I want.

Say that in my game, I go north. I want to be able to go south, back to my main screen. (I'm doing switch & cases in here btw.) So what do I do? I can't do a case 'S' because there's already one for going south on the main screen.
So, I got this idea: I can put the main part of my game (the four paths I can take at the beginning) into a separate file and call it whenever. I don't really know how to do that though.

And then I started thinking..."What if I was 5 screens away from the paths instead of just 1? I wouldn't be able to just 'jump' to the beginning..."

okay..sorry about DP but...I have a brand new problem.
On my latest code, it doesn't matter what I press after I get an option to do something...
example: "You fell from a 9 story building and can't move. What do you do?
[C]all an ambulance? or just lay there?
>alsk;djfl;kasjfd *presses enter*
"You have called the ambulance and now it is on it's way.."

Well in the code that you have mentioned i dont see the code of the ambulance call . All i just see is other code. There is some other code though. You should paste the code that you have worked out on the compiler so that we can sovle it.

well, that was just an example...but what I meant is no matter what I entered, as long as it was at least one letter, then it did the next case. And when there was more than one case, it did the second one after the first one got done...it was really messed up. But I gave up on that and now i'm doing one with python!

here's the thread for the game in python....anyone here who knows python please take a look at it! link

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...