How to include api classes

How would I include a api class in a program. I'm assuming that I would need to include a header file. After that I assume that I would would just create a new object of the included class.

If my assumptions are correct, how do I know which header files to include? Say I wanted to use the BStopWatch class http://api.haiku-os.org/classBStopWatch.html
For working with an API you need to read up on that API's documentation, the includes and compiler flags and so on should be there.
Topic archived. No new replies allowed.