C++中 变量y0y1等变量 的冲突问题
来源:互联网 发布:csdn黑马程序员 编辑:程序博客网 时间:2024/06/02 01:53
之前在使用# include <bits.stdc++.h>
定义y1变量时出现下列错误信息
error: previous declaration of ‘double y1(double)’
自动弹出 了 math.h库中的源码解释
CRTIMP double __cdecl j0 (double);
_CRTIMP double __cdecl j1 (double);
_CRTIMP double __cdecl jn (int, double);
_CRTIMP double __cdecl y0 (double);
_CRTIMP double __cdecl y1 (double);
_CRTIMP double __cdecl yn (int, double);
_CRTIMP double __cdecl chgsign (double);
所以问题出在 math.h 库中
我们能看到 以上变量被征用 ,所以在使用math.h定义时 不能使用上面变量
大佬给出的 解释
Function: double j0 (double x)
j0 returns the Bessel function of the first kind of order 0 of x. It may signal underflow if x is too large.
Function: double j1 (double x)
j1 returns the Bessel function of the first kind of order 1 of x. It may signal underflow if x is too large.
Function: double jn (int n, double x)
jn returns the Bessel function of the first kind of order n of x. It may signal underflow if x is too large.
Function: double y0 (double x)
y0 returns the Bessel function of the second kind of order 0 of x. It may signal underflow if x is too large. If x is negative, y0 signals a domain error; if it is zero, y0 signals overflow and returns -∞.
Function: double y1 (double x)y1 returns the Bessel function of the second kind of order 1 of x. It may signal underflow if x is too large. If x is negative, y1 signals a domain error; if it is zero, y1 signals overflow and returns -∞.
Function: double yn (int n, double x)yn returns the Bessel function of the second kind of order n of x. It may signal underflow if x is too large. If x is negative, yn signals a domain error; if it is zero, yn signals overflow and returns -∞.
来自 知乎 @ sin1080 的回答
自己翻译吧,哈哈哈哈哈哈
Bessel Functions: _j0, _j1, _jn, _y0, _y1, _yn 多看msdn
Bessel function - Wikipedia然后可以在这里找到具体的内容
来自知乎 @ vczh 的回答
- C++中 变量y0y1等变量 的冲突问题
- 变量冲突问题
- C语言中变量的初始化问题
- C程序中,变量的初始化问题
- jQuery中函数变量$冲突的解决办法
- c中变量定义问题
- c语言中变量问题
- c 中变量、变量名、变量地址、指针、引用等含义
- C++:在switch的case中定义变量的问题
- 关于c语言中自动变量(局部自动变量)的空间的分配的问题
- java 和 c等作用域问题,循环中重复定义变量
- C和VC中分配变量地址的问题
- 【疑问】c语言中变量的集中定义问题
- C语言中变量没有初始化 所带来的问题
- C中全局变量和局部变量的初始化问题
- gcc C语言中变量定义的位置问题
- C/C++中函数返回局部变量的问题
- C语言多线程中变量累加问题的分析
- Vim YouCompleteMe Mac OS C family 系统库函数不能自动补全
- Android
- SPI子系统分析之四:驱动模块
- protobuf的Required,Optional,Repeated限定修饰符
- 冒泡排序之java数组实现
- C++中 变量y0y1等变量 的冲突问题
- LeetCode-627. Swap Salary
- http与https区别及https是如何保障安全性
- swift xxxfile no find / bridging no exit
- 双向链表
- layUI初步使用
- 算法分析与设计丨第三周丨LeetCode(6)——Find Largest Value in Each Tree Row(Medium)
- 数据挖掘中的可视化方法
- BootStrap学习笔记