[Error] ISO C++ forbids comparison between pointer and integer [-fpermiss
来源:互联网 发布:mysql数据库存储引擎 编辑:程序博客网 时间:2024/06/06 03:21
错误代码:
if(a[i]=="G"&&b[i]!="C")
return false;
改正后的代码:
if(a[i]=='G'&&b[i]!='C')
return false;
解释:两种不同类型的数据不能做比较,a[i]表示的是一个字符,“C”表示的是一个字符串的收地址,所以应该把“C”改为‘C’
0 1
- [Error] ISO C++ forbids comparison between pointer and integer [-fpermiss
- C warning“comparison between pointer and integer [enabled by default]”
- iOS:“warning:comparison between pointer and integer”
- Ordered comparison between pointer and zero ('const char *' and 'int')
- comparison between distinct pointer types 'QPushButton*' and 'QAbstractButton*' lacks a cast
- comparison between rand() and arc4random()
- Comparison Between NetCDF and HDF5
- A warning - comparison between signed and unsigned integer expressions [-Wsign-compare]的解决方法
- error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
- Speed comparison between C & Lisp
- more effective c++:the difference between pointer and reference
- ISO C90 forbids mixed declarations and code
- ISO C89 forbids mixed declarations and code
- ISO C89 forbids mixed declarations and code
- ISO C90 forbids mixed declarations and code
- Difference between pointer and array
- A Technical Comparison between PDF and DJVU
- Comparison between YAFFS (YAFFS2) and JFFS2
- tm结构
- mysql 基本操作指南之mysql查询语句
- amazing,世界上每天生成的数据量
- Android动画1-补间动画(TweenAnimation)
- iOS--音频的简单使用
- [Error] ISO C++ forbids comparison between pointer and integer [-fpermiss
- markDown写法示例
- java 数据类型
- MySQL帮助的使用
- 172 git 添加多个远程库(remote)
- Ajax+SpringMVC 二级联动
- GitHub 发布了 Electron 1.0 版本,帮助开发者打造更强大的原生应用
- xUtils更新到3.0后的基本使用规则
- 数字哑谜