int main() { std::cout << \"Current account status:\" << std::endl; PrintFileCon
ID: 3559562 • Letter: I
Question
int main() {
std::cout << "Current account status:" << std::endl; PrintFileContents(ifile);
std::cout << std::endl;
std::cout << "New account status:" << std::endl; ifile = GetInputFile(outputFileName);
}
//[END MAIN]
void ProcessAccounts(std::ifstream &ifile, std::ofstream &ofile, double rate) {
// Everyday the bank checks the status of the accounts and processes them // If the customer has:
// 1) a positive savings balance, pay them interest
// 2) a negative savings balance, transfer it to credit (credit is positive) // 3) a credit balance, charge them interest
}
}
}
}
}
void SetOutputStreamPos(std::ofstream &str, int pos) {
}
Input file is a1.txt:
Explanation / Answer
Compilation error #stdin compilation error #stdout 0s 0KB
comments (0)
stdin
copy
compilation info
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.