由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Windows版 - 请教有关header file的几个问题
相关主题
vc 2008 compile error: header file有没有谁碰到这种print web pages问题?
[转载] CHM2PDF?请教 windows 下与papers对应的软件
怎样在一个service里面用popenms cl.exe 的选项
求助怎么编写一个dll file?问一个问题
error of compiling C# in visual studion 2013 win 7 (转载)Header的下划线如何删除?
求教!vista下msn live messenger不能用!Windows Word file: 怎么弄不同的footnote/headnote
Re: 请问XP怎么象2K一样找到PID对应的process呀???Re: CHM 文件与什么程序关联?
w2000 中文 IE的标题越来越小Re: How can I compile Fortran Program in Windows?
相关话题的讨论汇总
话题: file话题: include话题: header话题: 问题话题: 试着
进入Windows版参与讨论
1 (共1页)
s********1
发帖数: 581
1
请教有关header file的几个问题
假设sub.h 和 sub.c 是header file 和与其对应的source file.
(1) 在sub.c开始都有 #include "sub.h"
我试着delete 以上的语句,compile和run时都没有问题。#include "sub.h"
在sub.c中,#include "sub.h" 是否多余??
(2) 试着将sub.h的name 改成 subbbbb.h, 结果也没有问题,是否header file 和与其
对应的source file 名字可以完全不一样?
(3) 又试着去掉.h, 并把heade file 的名字改成:
sub.h ----〉 subbbbb.c
再把main program 中开头的部分改成 #include "subbbbb.c"。 结果也没有问题。
.c 和 .h file 到底有没有不同?
(4) 将#include "subbbbb.c" (或者#include "subbbbb.h", #include "sub.h")
1 (共1页)
进入Windows版参与讨论
相关主题
Re: How can I compile Fortran Program in Windows?error of compiling C# in visual studion 2013 win 7 (转载)
Re: 如何阅读CHM格式文件?(Compiled HTML help file)求教!vista下msn live messenger不能用!
Re: urgent!Re: 请问XP怎么象2K一样找到PID对应的process呀???
Re: 请问镜像文件太大, 怎么刻盘? 谢谢w2000 中文 IE的标题越来越小
vc 2008 compile error: header file有没有谁碰到这种print web pages问题?
[转载] CHM2PDF?请教 windows 下与papers对应的软件
怎样在一个service里面用popenms cl.exe 的选项
求助怎么编写一个dll file?问一个问题
相关话题的讨论汇总
话题: file话题: include话题: header话题: 问题话题: 试着