ekohartono
asked on
how to make something.h
May be some body can tell me where in the web that I can find a complete bank something.h (In C for #include *****.h) And a explaination for every function in it.
AND how to make something.h
Thank YOu Very Much
AND how to make something.h
Thank YOu Very Much
Not quite sure what you want. Do you want to find pre-written headers, write some yourself or ...?
ASKER
to Mr Grailman
In c/c++ programming first text you write is
#include stdio.h ,conio.h,math.h,windows.h
ect
In c/c++ programming first text you write is
#include stdio.h ,conio.h,math.h,windows.h
ect
I still do not understand what you want? Are you trying to find stdio.h, conio.h, math.h etc. and a listing of the functions in that file?
ASKER
To Mr Grailman
YEs I trying to find listing function whole ****.h
And I need to know how to make it myself..
I hope you understand
Thank YOu
YEs I trying to find listing function whole ****.h
And I need to know how to make it myself..
I hope you understand
Thank YOu
You're talking about two different things then.
The header files for the standard library (any header files for that matter) are just text files which let your program know (compile) how a particular function is to be used. Stdio.h has:
int puts(const char *);
in it indicating the function takes a const pointer of type char and returns an int type. If you change the stdio header file to have this:
int puts(const char);
it may compile in your code (if your code uses puts() and gives it a char rather than a char pointer) but it will not link because the binary file which was compiled for the stdio header file requires the pointer, not the char.
Now you can write your own header and source files all you want. If I write a header file like:
#include "stdio.h"
int puts(char ch);
Then just write a source file for the implementation of the header.
I would suggest checking out one of the MANY online tutorials to learn more about C/C++ programming.
The header files for the standard library (any header files for that matter) are just text files which let your program know (compile) how a particular function is to be used. Stdio.h has:
int puts(const char *);
in it indicating the function takes a const pointer of type char and returns an int type. If you change the stdio header file to have this:
int puts(const char);
it may compile in your code (if your code uses puts() and gives it a char rather than a char pointer) but it will not link because the binary file which was compiled for the stdio header file requires the pointer, not the char.
Now you can write your own header and source files all you want. If I write a header file like:
#include "stdio.h"
int puts(char ch);
Then just write a source file for the implementation of the header.
I would suggest checking out one of the MANY online tutorials to learn more about C/C++ programming.
ASKER
Thank You Mr.Grailman
BUT my question is where (in the web)i can find complete database about something.h and have explanation about every something.h
BUT my question is where (in the web)i can find complete database about something.h and have explanation about every something.h
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.