CPU temperature monitoring in C++?

There isn't much helpful articles on the net and i wonder how i can
create very simple application which monitors "CPU" temp.

I know the best way to retrieve the temp value from mobo's sensor chip
organized in ACPI or SMBIOS.

How should i start this?

Thank you.