Please support our C advertiser: Programming Forums
Views: 1200 | Replies: 2
![]() |
•
•
Join Date: Oct 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I am working with a dateType class and need to make a function to show next day and the previous day. I have my function set using const keyword so that it can't be changed by users, but now I can't increase my day. help???
int dateType::nextDay() const { getDay(); dDay++; return dDay; } int dateType::previousDay() const { getDay(); dDay--; return dDay; }
Last edited by ~s.o.s~ : Oct 11th, 2006 at 3:20 pm. Reason: Use code tags for posting code
Please use code tags to post your code. Enclose your code in code tags.
Also post your entire code so that we can be in a state of answering your questions, dont post half baked snippets.
Also post your entire code so that we can be in a state of answering your questions, dont post half baked snippets.
Last edited by ~s.o.s~ : Oct 11th, 2006 at 3:19 pm.
I don't accept change. I don't deserve to live.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode