I know that this language have died a couple of years ago, but still required in most of schools in our country -.- I got file with data, which looks like:
- Number of lines
- Name Surname (real type digit) (another real type digit)
例如:
- 2
- Brat Sunbather 5.66 55.4
- Bart Simpson 55.7 45.4
并且,我需要创建结果文件,这样看:
- Name Surname (Previously given real type digits multiplied)
- Total
例如:
- Brat Sunbather 313.56
- Bart Simpson 2528.78
- Total: 2842.34
我不敢试图将这条线分割成形状和真实的线,即便在例子中提供的书一中,所有数据都是单独线的:
- String
- Digit
- String
- Digit
我可以找到任何东西,希望你们能够帮助我。 事先感谢你。