关于C++帮忙找着错

来源:百度知道 编辑:UC知道 时间:2024/06/28 22:19:05
题目:
Three Jusco’s members in Jusco Shopping Mall, Taman Universiti are up for a special pointer increase reward. You are given a file, say member3.txt, with the following data :
Muhammad Rosbi 65789.87 15
Azizah Rahman 75892.56 16
Zaiton Hashim 74900.50 16.5
Each input line consists of a member’s first name, last name, total spending at Jusco also treated as points collected by the member, and percent pointer increase. For example, in the first input line, the first name of the member is Muhammad, the last name is Rosbi, the point collected is 65789.87, and point increase is 15%. Write a program that reads data from the specified file and stores the output in the file point3.dat. For each member, the data must be output in the following form: firstName lastName updatePointer. Format the output of decimal numbers to two decimal places.

我的答案:
// This program reads information from a file.
#include <iostre

关于C++帮忙找着错
悬赏分:10 - 离问题结束还有 14 天 11 小时
题目:
Three Jusco’s members in Jusco Shopping Mall, Taman Universiti are up for a special pointer increase reward. You are given a file, say member3.txt, with the following data :
Muhammad Rosbi 65789.87 15
Azizah Rahman 75892.56 16
Zaiton Hashim 74900.50 16.5
Each input line consists of a member’s first name, last name, total spending at Jusco also treated as points collected by the member, and percent pointer increase. For example, in the first input line, the first name of the member is Muhammad, the last name is Rosbi, the point collected is 65789.87, and point increase is 15%. Write a program that reads data from the specified file and stores the output in the file point3.dat. For each member, the data must be output in the following form: firstName lastName updatePointer. Format the output of decimal numbers to two decimal places.

我的答案:
// This program reads information from a file.