Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于read()参数unit=字符串变量的用法 #12

Open
bmz-q-q opened this issue Sep 7, 2022 · 3 comments
Open

关于read()参数unit=字符串变量的用法 #12

bmz-q-q opened this issue Sep 7, 2022 · 3 comments

Comments

@bmz-q-q
Copy link
Collaborator

bmz-q-q commented Sep 7, 2022

read( unit = character)表示将字符串中的整数赋值给后面的整数
也就是字符串转为整数的一种用法
read_unit_character
目前read函数转成forread,在config.h中规定unit类型为int。
在代码1中,mod_shell_brick_int文件
line 90 :字符串变量txts由函数gttxsg赋值,read无法识别。
mod_manage_files 文件
line 186: 字符串变量optval由函数blnstr赋值,read无法识别。

@xx1022
Copy link
Collaborator

xx1022 commented Sep 9, 2022

这个read的用法是识别字符串中的整数赋值给后面的整数变量i 字符串变量的赋值可能是其他文件赋值的这个另说 主要是需要改read函数使得第一个参数能够识别为字符串且提取整数

@YHN-ice
Copy link
Owner

YHN-ice commented Sep 10, 2022

会出现write(str,*)i的情况吗?就是通过write函数讲i的内容写进字符串str里?是否需要支持这种情况
@xx1022

@xx1022
Copy link
Collaborator

xx1022 commented Sep 10, 2022

会出现write(str,*)i的情况吗?就是通过write函数讲i的内容写进字符串str里?是否需要支持这种情况 @xx1022
image

write也有这种字符串读写的功能 但是我建议先不考虑因为代码还没有遇到 我们遇到什么问题解决什么问题就好

YHN-ice pushed a commit that referenced this issue Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants