1
submitted 1 year ago by Vilian@lemmy.ca to c/programming@beehaw.org

hello, i'm new to programming in i'm trying to solve this exercise in C, basically it's the amount of passed hours between the start of a game and it's end, if the game started at 16 and ended at 2 the result is a game with 10 hours(in different days) i know i can to it more manually, but i wanted to somehow use the <time.h> to learn how to use a header etc, can someone help me?, thank you all

top 1 comments
sorted by: hot top controversial new old
[-] Anarch157a@lemmy.world 1 points 1 year ago

Take 10 minutes to watch this video, then follow his advice. get a library that handles time and date and use it.

this post was submitted on 15 Jun 2023
1 points (100.0% liked)

Programming

13361 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS