Search:

Type: Posts; User: Leston Yearwood

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    5,764

    Thanks for the hint, after a bit of research I...

    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...
  2. Replies
    3
    Views
    5,764

    Finding week number in year

    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...
  3. Wow, thanks it worked :). Didn't realize I had to...

    Wow, thanks it worked :). Didn't realize I had to put the size of the character in snprintf also.
  4. New to C: I need to put my printf object into a variable and then print it out.

    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...
  5. This was just a simple example of a much larger...

    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...
  6. Thanks so much man, It works now. I am new to c...

    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...
  7. Simple switch case with date not working

    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...
Results 1 to 7 of 7