I appreciate all the work you put into that. I have to use this code though
#include <iostream>
#include <iomanip>
#include <string>
#include "date.h"
using std::cout;
using std::endl;
Type: Posts; User: Thrownawii
I appreciate all the work you put into that. I have to use this code though
#include <iostream>
#include <iomanip>
#include <string>
#include "date.h"
using std::cout;
using std::endl;
So I see he took out the "{month = (mm);" Was there any reason for that?
So are you saying that instead of "month = mm" it should be "mm = month"?
I understand that and I am sorry for asking so many questions. I just want to understand what I did wrong fully before I move on.
Is this all I needed to do to fix that? Then make the get...
Thank you so much for you help. So really, you need to have the functions in the set functions to validate the constructor and set functions, otherwise the set functions does not serve its purpose?
Ahhhhh I see that makes alot of sense. How would you do that with the string function?
well my teacher said exactly "The validation logic is backwards. Per the assignment, the ctor (or set methods) need to validate the parameters and leave the object in a valid state. If...
I need help correcting my logic from another post. https://cboard.cprogramming.com/cplusplus-programming/174566-trying-connect-together-header-two-cpp-files-any-help-would-appreciated.html
...
turns out I had to have them in the same folder. Thanks everyone
I think I narrowed it down to my header file. Either my header guards arent working or something is duplicating something? I am not sure.
Thanks you guys. I appreciate the help. I am now getting an error saying [Error] redefinition of of 'void Date:: etc.'
I had all of my code in working order when it was all just in one file. Once I tried to separate it into a header and another source file, it does not work anymore. I hope hoping that someone could...