About classes and cpp and h files

At the moment I dont know why I must do have cpp a h files ...
My code runs well using a simple h file.
What advantages can I have if I use a cpp file ?
Are we talking about compiler issues ? dll - lib issues ?
Thanks
Topic archived. No new replies allowed.