G
Guest
Hi, I am new to C++ from C, I am a bit confused about using global objects in
C++. I have a program that need to share some data(held in classes) between
files, and of course I thought about using global objects. But then I notice
lots of people said it is something to avoid doing. Can someone tell me where
to draw the line to use them or not?
Thanks in advance.
C++. I have a program that need to share some data(held in classes) between
files, and of course I thought about using global objects. But then I notice
lots of people said it is something to avoid doing. Can someone tell me where
to draw the line to use them or not?
Thanks in advance.