在C中编辑预编译的头文件 [英] editing a pre-compiled header file in c

查看:118
本文介绍了在C中编辑预编译的头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道感觉如何
我可以编辑math.h中定义的数学函数吗?
我的意思是函数的定义.

例如,如果pow(x,y)给出x ^ y,那么我想将其更改为x * y.

Don''t know how strange it feels
can i edit the mathematical functions defined in math.h?
I mean the definition of the function.

for example if pow(x,y) gives x^y, then i want to change it to x*y.
How do i do this?

推荐答案

是愚弄敌人吗?

但是,如果您拥有C运行时库的源文件,则可以(可以,但是不要这样做):您必须编辑源代码,例如pow函数的实现.

另一种方法是为此类自定义"数学函数编写您自己的库,并使用它代替标准库.
Is it to fool the enemy, isn''t it?

However, if you have the source file of the C runtime libraries then you can (you can, but please, don''t do it): you must edit the source code of the, for instance, pow function implementation.

Another approach would be writing your own library for such ''customized'' math functions and use it instead of the standard one.


这篇关于在C中编辑预编译的头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆