fundamental question



hey gang,

i have a question that came about in my C++ class at school.  i was
working on an assignment that used mulitple classes (i'm only in my second
semester of C++ so forgive me) and i came across an interesting problem.

i created this program (that played a hand of 'cards') and with Linux and
g++ it compiled and ran just fine.  when i took the same files over to MS
Visual C++ 6.0 it compiled but caused an invalid page fault.  what had
happend was that linux allowed me to have uninitialized variables in my
class yet still worked (don't mock my sloppy coding skills ;-) ).  Windows
however would not run the program.

is this issue due to memory sharing?  if anyone could offer up an
explination as to why this would occur i'd greatly appreciate it.  

by the way:  the reason i bring this to this group is because i've been
reading this list for quite a while and i trust the developers with Gnome
more so than many of the other groups.

thanks a bunch.

--jack wallen, jr-------------------------------------------------------- 
-------------just another day--------------------------------------------
-----------------------in the gaping maw of insanity---------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]