Thanks for the hint, after a bit of research I found out that in the ISO format a year has 53 weeks if it begins and/or ends on a thursday. I had to write out way more code than I would like for a...
Type: Posts; User: Leston Yearwood
Thanks for the hint, after a bit of research I found out that in the ISO format a year has 53 weeks if it begins and/or ends on a thursday. I had to write out way more code than I would like for a...
A year normally has 52 weeks in it but there are certain years that actually have 53 weeks in them, such as the years 2015 and 2020. I am trying to create a simple program that determines when a year...
Wow, thanks it worked :). Didn't realize I had to put the size of the character in snprintf also.
I have a problem, I need to store my printf screen into a variable and output it back to the user. I am super new to c. So any help would be greatly appreciated.
My code is below:
#include...
This was just a simple example of a much larger code what I was trying to acheive. I corrected the problem in the actual code so it was something more like.
#include <stdio.h>
#include...
Thanks so much man, It works now. I am new to c so I didnt even understand you at first, but now realize that I mistook the altoi function as an int to char function for some reason. I literally took...
I am having a problem type casting my strftime buffer to work with my switchcase statement. Switchcase only uses string/char/int variable, However stftime is something along the lines of a date type...