0
which library I can use instead of #Pragma Once on c++
I know that some compilers did not recognize the use of #Pragma Once what can use instead?
1 Antwort
+ 4
You may use an #ifndef ... #endif block.
#ifndef HEADER_NAME_H
#define HEADER_NAME_H
/*
Your Header's Code here.
*/
#endif // Done!