   Just a quick question about scope in C++.
  With same name variables, which takes precedence in the local scope, global or local? Seems like it must be local, but I am not 100%.Thanks, Mark   
  local   ;  Thank you.   ;  Unless you have a copy of the current standard i refer thee to 2k5 Oct draft C++ standard and specifcially section 3.3 Declarative regions and scopes for a complete treatment of scoping rules.   ;  its a bad idea to have two variables with the same name, it makes your program a little less clear...   ;  Local takes precedence; this is known as identifier shadowing. If your compiler does not complain loudly about you doing this, you need to up your warnings levels [wink]rip-off is exactly right. If you need similar identifiers, strongly consider using a namespace or some other grouping mechanism to avoid shadowing. The compiler can figure it out just fine, but I guarantee that at some point, it'll confuse you...   ;  Thanks for all the feedback, and the warnings! It's not actually for use in a program, I am working my way through every C++ exam/test/quiz/multiple choice I can find in preparation for interviews which I will *hopefully* be having when I get my demos finished.Mark   