No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey guys, I have a homework problem that I'm having issues with. I've been having a difficult time understanding classes and what the point of them is when I feel like I can just write everything in main without using a class, but I'm forced to use them anyways. This … |
|
[CODE]#include <fstream> #include <iomanip> #include <string> using namespace std; const double PI = 3.1416; int main() { ifstream inFile; string fname, lname; int age, beginningBalance; double length, width, radius, interestRate; char ch1; inFile.open("inData.txt"); inFile >> length >> width >> radius >> fname >> lname >> age >> beginningBalance >> interestRate … |