how to use .h file c++ code example Example: what is a header in c++ int x; // declaration x = 42; // use x