如何在c / c ++中创建头文件 [英] how to create header files in c/c++
本文介绍了如何在c / c ++中创建头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi,im sourabh .......任何人都可以告诉我如何在c / c ++中创建头文件
解决方案
只需创建一个文本文件扩展名.h和瞧瞧。
亲切的问候,
Jos
文本文件甚至不需要.h你只需要#include源文件中的文本文件。
正是上面的人说的......
>
名为 Example.h 的头文件的典型示例是:
展开 | 选择 | 换行 | 行号
hi, i m sourabh....... Can any1 tell me how to create a header file in c/c++
解决方案Simply create a text file with the extension .h and voila.
kind regards,
Jos
The text file doesn''t even need the .h you just need to #include the text file in your source file.
Exactly what the above guys said...
A typical example of a header file named Example.h is:
Expand|Select|Wrap|Line Numbers
这篇关于如何在c / c ++中创建头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆