No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Below I have attached my code. The problem I am having is that I do not think it is properly computing the sum. It seems as if its missing a number or something along those lines. The program is supposed to read an input number, n, which must be a … |
|
Hello all. I'm having problems figuring out how to get atof working in my program. I'm not sure exactly what I'm missing, and I was hoping someone could point me in the right direction. Thanks. [CODE]#include <math.h> #include <stdlib.h> #include <ctype.h> #include <stdio.h> static int top = -1; static double … |
|
In my set.h file - template(class T): [CODE]template<class T> class set { public: void add(const T& item); private: } #include "set.template"[/CODE] In my set.template file: [CODE]template<class T> void set<T>::add(const T& item)[/CODE] In my main.cc file (where cset1 and cset2 are both set<char>): [CODE]cset1.unian(cset2);[/CODE] The error: [CODE]error: no matching function for … |
|
I'm having a problem being cause by what I believe to be my getMonthValue function which is resulting in my output always being "Saturday." Can anyone give me any reason this is happening? Thanks. [CODE]#include <iostream> #include <string> using namespace std; bool isLeapYear (int year); int getCenturyValue (int year); int … |
|
I'm having a few issues with my code and trying to figure out the last problems with it. It would be a great help if someone could look this over and guide me in the right direction. This program is basically supposed to take the entered date, and tell you … |
|
I'm trying to write a code for class that basically takes a 4 digit input, scrambles the the places of each number so that the first digit is in the third digits place, and add 7 to each number. This is supposed to be simple encryption. I know my functions … |