Question about #include "something.h"

I am currently trying to write Tic Tac Toe program. In the code, it includes #include "tictactoe.h". However, I do not know its functionality nor do I how to create a #include "tictactoe.h". Anybody have any suggestions? Thank you for your time and help!
.h files contain the "declaration" of functions or classes
.cpp files contain the "definition" of those functions and/or classes

In order to use some user defined type(class) or function in your program,
you should include the .h file that contain their declarations. To make it clearer,
you may know that to create a new function and use it in the same file, you can just write the declaration before you write the main function, and put the definition at the end of the file. .h files work this way, they only hold the declaration, which should come before the main function.
Topic archived. No new replies allowed.