A .h file is a plain text file containing "headers" used by C or C++ source code. To reduce confusion, some C++ developers will use the file extension .hpp instead.