+ 6
Copied from internet.
By the way i didnt know that until you askedšš
Import in VC++:Ā #importĀ is for type libraries or .tlbs (COM stuff).
The content of the type library is converted into C++ classes, mostly describing the COM interfaces for you automatically, and then it is included into your file.
TheĀ #importĀ directive was introduced by Microsoft as an extension to the C++ language. You can read about it atĀ this MSDN article.
TheĀ #importĀ directive is also used with .NET / CLI stuff.
Import in gcc:Ā The import in gcc is different from the import in VC++. It is a simple way to include a header at most once only. (In VC++ and GCC you can do this viaĀ #pragmaĀ once as well)
TheĀ #importĀ directive was officially undeprecated by the gcc team in version 3.4 and works fine 99% of the time in all previous versions of gcc which support
Include:Ā #includeĀ is for mostly header files, but to prepend the content to your current file.Ā #includeĀ is part of the C++ standard. You can read about it atĀ this MSDN article.
+ 3
I also didn't knew it until now
0
I've also read a thread about it before, I was lazy enough to search for it back then though