In C++ you don't need to say struct box abox; to instantiate a struct or class. They behave just like built-in data types, so you should just say box abox; instead.
ok ive got a betrer idea now, i had already used a struct in another program that had the struct in a header and the variable in the file, my main question was about
using 2 files but thanks for your replies