Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~630 People Reached
Favorite Forums
Favorite Tags
c++ x 11
c x 2
Member Avatar for rgrwalker

This is what I have thus far. [code] # include <iostream> using namespace std; double miles( double miles, double gallons, double mpg); int main () { const int ARRAYSIZE = 10; // fixed array with 10 items double miles[ARRAYSIZE]={240.5, 300.0, 189.6, 310.6, 280.7, 216.9, 199.4, 160.3, 177.4, 192.3}; double gallons[ARRAYSIZE]={10.3, …

Member Avatar for Narue
0
83
Member Avatar for rgrwalker

I have the code written, compiling and no errors, I just need it to write to a file now. This is the code I have. Is the header piece correct? [code] #include <iostream> #include <string> #include <fstream> #include <cstdlib> using std::ofstream; using namespace std; class finalgrade { char firstName[20]; //to …

Member Avatar for Ancient Dragon
0
134
Member Avatar for rgrwalker

I can't seem to get it working properly. Here's what I have thus far. #include <string> #include <iostream> class Student_t { char firstName[20]; //to hold the first name char lastName[20]; //to hold the last name int exam1; //to hold Exam-1-Grade int exam2; //to hold Exam-2-Grade int homeworkavg; //to hold Homework-Average …

Member Avatar for rgrwalker
0
234
Member Avatar for rgrwalker

I have an assignment of the following. Create a class named Fractions having two integer data members named for a fraction’s numerator and denominator. The Class’s default constructor should provide both data members with default values of 1 if no explicit user initialization is provided. The constructor must also prohibit …

Member Avatar for rgrwalker
0
179