+ 1
C++ extensions
Does ".h" extension work in Dev C++ and Visual studio code ?
5 Respostas
+ 4
codecraft , according to c++ standards,
standard c++ headers(like iostream.h) would use include directives without ".h" extensions (decision was taken around 2002)
So if you are using a standard compiler then ideally you should not be able to do it ( some generate a warning while others generate error )
+ 3
codecraft vscode is a text-editor. It is used just to write to code. Install c/c++ extension for vscode to get syntax highlighting. It depends on your compiler weather ".h" will work or not.
+ 2
How exactly you want to use it ?
1) while including a header in your program file ? ( User-defined or sdandard ?)
2) or while creating a header file of your own ?
+ 2
@Arsenic
I want use standard header like #include<iostream.h>or #include<math.h> or #include<conio.h> etc