Is there any routine in C that can sort the days of the week the way they should be (like Sun Mon Tue Wed ect.). If there isn't one anyone have any ideas how i could do that. Thanx in advance
Is there any routine in C that can sort the days of the week the way they should be (like Sun Mon Tue Wed ect.). If there isn't one anyone have any ideas how i could do that. Thanx in advance
>Is there any routine in C that can sort the days of the week the way they should be
Could you be more specific as to what this is to be used for?
-Prelude
My best code is written with the delete key.
Well the program reads a file with projects and hours spent on each project each day. The data looks something like this
Sunday Some_project_Name Project_Fund hours_spent some_text
from those data I need to generate a report that will be printed in a form project_name (sorted alphabetically) project_fund (also sorted alphabetically) and the hours spent each day on the project all in one line, something like this:
Project Name Fund Name Sunday Monday Tuesday ect.
Brodacz Holiday_Pay
. The file that the program needs to read is not sorted.
Never mind I found a solution to my problem.