Fortran Coder

标题: 一直报错,This name has not been declared as an array or a function [打印本页]

作者: lfhhnj    时间: 2022-10-20 20:14
标题: 一直报错,This name has not been declared as an array or a function
本帖最后由 kyra 于 2022-10-21 08:44 编辑

运行时一直报错,想问一下是什么情况,彭国伦老师自带的光盘也是这个样子到底是怎么回事呀


1.jpg (90.36 KB, 下载次数: 111)

1.jpg

作者: Transpose    时间: 2022-10-20 20:22
书错了。正确的为 string(6:),表示从第六个字符开始一直到结尾
作者: lfhhnj    时间: 2022-10-20 20:41
Transpose 发表于 2022-10-20 20:22
书错了。正确的为 string(6:),表示从第六个字符开始一直到结尾

这样也可以吧,彭国伦老师术上没有写冒号
作者: Transpose    时间: 2022-10-20 20:59
所以书错了,字符串没有单个数字的索引。
作者: lfhhnj    时间: 2022-10-20 21:21
Transpose 发表于 2022-10-20 20:59
所以书错了,字符串没有单个数字的索引。

奥奥奥,了解了解,谢谢大佬
作者: kyra    时间: 2022-10-21 08:45
这个应该是印刷错误,或者彭老师大意了。




欢迎光临 Fortran Coder (http://bbs.fcode.cn/) Powered by Discuz! X3.2