View Single Post
Old Nov 29th, 2005, 3:01 AM   #2
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 242
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
I'm not much of a C++ guy but I believe what you've got there is merely a local variable and i think what you are looking for is a global variable.

since they are seperate functions they will not carry over to each other unless you pass them by value, pass them by reference, or make them global.
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote