I'm back again haha(:
I'm fairly new to c++ and I don't know how to link 2 c++ files together. What I have is a c++ file that is a basic password checker and another c++ file that is a guessing game. I want to link the 2 together so that if I enter the correct password in the password program, it automatically opens the guessing game, but if I don't enter the right password it won't. I have the 2 c++ files compiled already and I am using visual c++ 2010. Is there any way to do this?
Thanks!!!(:
P.S,
Sorry for the noobish question haha
Only one of the two cpp files can have a main function. The other cpp file provides functions that can be called. Put both files into your "project" or whatever VS calls it, make sure that each function has been declared before you call it, and then rebuild.