社区
iOS
帖子详情
关于Channel*报 Expected a type 错误
BcgBcr
2012-06-27 04:58:59
额,今天问题很多...
问题描述:我新建如下一个方法
- (BOOL) insertOneChannel:(Channel*)channel;
然后报错了,错误信息为: Expected a type(预计类型)
没看懂,这个Channel是要导入,声明还是咋的?望解答
...全文
258
5
打赏
收藏
关于Channel*报 Expected a type 错误
额,今天问题很多... 问题描述:我新建如下一个方法 - (BOOL) insertOneChannel:(Channel*)channel; 然后报错了,错误信息为: Expected a type(预计类型) 没看懂,这个Channel是要导入,声明还是咋的?望解答
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
BcgBcr
2012-06-29
打赏
举报
回复
暂时没搞懂,以后搞懂了再补充上来吧
BcgBcr
2012-06-29
打赏
举报
回复
[Quote=引用 4 楼 的回复:]
Channel是一个类,你要引用就要有这个类的声明,c语言里面是include,objc里面是import ,比如import “Channel.h”,不然编译器就报Expected a type
[/Quote]
哦。这样啊。谢谢ixfly的解答,谢谢你,已经结贴了,所以不能有分数奖励,只有口头谢谢你的解答了,呵呵
ixfly
2012-06-29
打赏
举报
回复
Channel是一个类,你要引用就要有这个类的声明,c语言里面是include,objc里面是import ,比如import “Channel.h”,不然编译器就报Expected a type
gaoxingstyle
2012-06-27
打赏
举报
回复
呵呵,虽然看不懂,但总有一天会看懂的。支持姐姐你。。。
ixfly
2012-06-27
打赏
举报
回复
Channel?这个是你自定义的类吧。自定义的类使用之前肯定要先import呀。
Type
Error: sequence item 0:
expected
str instance, None
Type
found解决办法
在学习利用pdfplumber读取PDF文本内容时,提示出现
Type
Error: sequence item 0:
expected
str instance, None
Type
found
错误
。 分析主要是在拼接字符串.join()时出现了非str类型的None。 打开PDF文件查看后发现第一...
Type
mismatch: inferred
type
is Activity? but Context was
expected
kt 编译运行
错误
Running Gradle task 'assembleDebug'... e: /home/leon/AndroidStudioProjects/samples/kkview_chuan/plugins/flutter_app_upgrade/android/src/main/kotlin/...
Hibernate对原生sql处理及结果集
报
错:
Expected
type
: java.lang.Integer, actual value: java.math.BigInteger
Hibernate对原生sql处理及结果集
报
错:
Expected
type
: java.lang.Integer, actual value: java.math.BigInteger
Bean named ‘xxx‘ is
expected
to be of
type
‘xxx‘ but was actually of
type
‘zzzz‘
Bean named 'whiteListConfig' is
expected
to be of
type
'java.lang.String' but was actually of
type
'org.springframework.beans.factory.support.NullBean' 在学习过程中遇到了如下
错误
: 环境说明:...
使用JdbcTemplate
报
Incorrect column count:
expected
1, actual 5
错误
解决
在使用jdbc的querForObject queryForList的时候,出现Incorrect column count:
expected
1, actual 5 比如 1 2 String sql ="select * from sysuser where id = 3"; SysUser s =this....
iOS
29,031
社区成员
12,466
社区内容
发帖
与我相关
我的任务
iOS
主要讨论与iOS相关的软件和技术
复制链接
扫一扫
分享
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章