No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have the following code which is working properly, what I'm looking to do is add an additional function to it, but I'm getting stuck. What I need to do is add a function to my class called DigitalTime::interval_since(const DigitalTime& a_previous_time, int& hours_in_interval, int& minutes_in_interval) What this function does is … |
|
I have a program that needs to replace all occurrences of the words "Giants" with "New York Giants". So the following line: The Giants won a big game today, it was the first playoff win for the Giants in 7 years Would convert to The New York Giants won a … |
|
I have the following code which removes duplicates from an array: [code] #include <iostream> #include <algorithm> #include <vector> #include <iterator> using namespace std; char main() { char myarray[10] = {'a', 'b', 'b', 'b', 'b', 'c'}; int myarraylength = 5; string holdprogram; vector< char > myvector(myarray, myarray + (myarraylength + 1)); … |