1. Which is the best way to do it?
a.
b.Code:#pragma once
?Code:#ifndef THISFILESNAME_H #define THISFILESNAME_H //code in the file #endif
Or, should I use both of them? Or, Is there a better way than these?
I currently use #pragma once (I'm using visual c++).




Reply With Quote