语法错误比较私有类数据 [英] Syntax Error comparing private class data
本文介绍了语法错误比较私有类数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何比较类的私有变量和文本文件列中的值。
比较时我的代码中存在语法错误。 senario我正在获取巴士详情,如busno,来源,目的地,巴士类型,价格/头部。我应该将通过对象获取的busno与.txt文件中存在的总线no进行比较。文本文件中的内容如下格式。
| 1488 | xxx | uuuu | A / c | 150.
| 1422 | mmm | oooo | nonA / C | 900。
how can i compare the a private variable of a class and a value in the column of a text file.
there is a syntax error in my code while comparing. senario is i am getting bus details like busno, source , destination,type of bus, price/head . I should compare the busno which i get through object to the bus no which is present in a .txt file. and contents in the text file is as the format below.
|1488|xxx|uuuu|A/c|150.
|1422|mmm|oooo|nonA/C|900.
展开 | 选择 | Wrap | 行号
推荐答案
所以你要开始一个猜谜游戏?我们能赢得什么?附加任何字符串?
它不是那样的工作;告诉我们问题是什么并显示相关代码;
将所有代码转储到这里并让我们猜测是荒谬的。
亲切的问候,>
Jos
So you want to start a guessing game? What can we win? Any strings attached?
It doesn''t work like that; tell us what the problem is and show the relevant code;
dumping all your code here and make us guess is ridiculous.
kind regards,
Jos
告诉我们这应该做什么:
Tell us what is this supposed to do:
展开 | 选择 | Wrap | 行号
如何比较类的私有变量和文本文件列中的值。
存在语法错误在我的代码中比较。 senario我正在获取巴士详情,如busno,来源,目的地,巴士类型,价格/头部。我应该将通过对象获取的busno与.txt文件中存在的总线no进行比较。文本文件中的内容如下格式。
| 1488 | xxx | uuuu | A / c | 150.
| 1422 | mmm | oooo | nonA / C | 900。
请回复我
how can i compare the a private variable of a class and a value in the column of a text file.
there is a syntax error in my code while comparing. senario is i am getting bus details like busno, source , destination,type of bus, price/head . I should compare the busno which i get through object to the bus no which is present in a .txt file. and contents in the text file is as the format below.
|1488|xxx|uuuu|A/c|150.
|1422|mmm|oooo|nonA/C|900.
please reply me
展开 | 选择 | Wrap | 行号
这篇关于语法错误比较私有类数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文