I have a program called, "Appcenter." I have already sectioned off code into .cpp files. How do I write a header file for these so that I can include them? What should I put in my header files? Examples would help, if you have them.
Well, your numbergame class would be pretty useless as it's contents are completely private, your blackjack classes randomnumber shouldn't be public, and in general you should provide a constructor for your class, and if you have any dynamic content in your class and/or are going use it as a base class, they should also have virtual destructors. Also, the blackjack between the closing bracket and the semicolon means nothing, that is from C-Style structs you had to use typedefs on. Same with numbergame.
Other than that, yes you could use that as a header file.
No, you cannot use that as a header file. It declares an instance of each of the classes and that will violate the one definition rule.
(It will appear to work as a global if you only include it in one object file, but as soon as you go to reuse it within the project, the linker will not be able to resolve the ambiguous symbols.)