由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] 超强的bug
相关主题
which header file declares ntohs() in c++ ?菜鸟求助:怎么自动include header file?
关于Makefile的一个问题url header问题
INIT_WORK从Linux kernel 2.6.20后改了?ask a question about compile shared library using libtool
请问这是什么语法(C++)?HTTP Error 403
how to convert GMT to timestamp of the computer's current timeRe: How to write this makefile?
C 和 C++ 的区别[转载] 请问DATAGRID里的BOUNDCOLUMN HEADER可以又有TEXT又有
[合集] sql语句的时间复杂度How to see the content of a library file
[合集] 如果在自己的程序里调用external program (C++/Linux)size of structure
相关话题的讨论汇总
话题: extern话题: foo话题: 超强
进入Programming版参与讨论
1 (共1页)
s*******e
发帖数: 664
1
☆─────────────────────────────────────☆
blueivan (bl.ue) 于 (Wed Jul 15 12:56:31 2009, 美东) 提到:
一个同时很喜欢用extern来declare别的module的函数。最近别的mFodule的函数更新了
,增加了一个参数。但是在这个调用的module里面仍然用少一个参数的方式调用。因为
用了extern,所以编译一点问题都没有。编译出来的程序运行竟然也没有问题。我觉得
stack应该被搞乱了,不知道为什么一点事情都没有
☆─────────────────────────────────────☆
plutus (怯流年) 于 (Wed Jul 15 13:04:02 2009, 美东) 提到:
有可能是那个别的mFodule里升级时做了保护,
比如在header里申明prototype时有类似语句:
if (ver > 1.0)
extern void foo(a, b, c)
else
extern void foo(a, b)

☆─────────────────
1 (共1页)
进入Programming版参与讨论
相关主题
size of structurehow to convert GMT to timestamp of the computer's current time
请教一个C的问题C 和 C++ 的区别
about typedef[合集] sql语句的时间复杂度
A function can be history-sensitive??????[合集] 如果在自己的程序里调用external program (C++/Linux)
which header file declares ntohs() in c++ ?菜鸟求助:怎么自动include header file?
关于Makefile的一个问题url header问题
INIT_WORK从Linux kernel 2.6.20后改了?ask a question about compile shared library using libtool
请问这是什么语法(C++)?HTTP Error 403
相关话题的讨论汇总
话题: extern话题: foo话题: 超强