I can offer you some suggestions: First, you can use looping structures to accomplish this task, such as for loops, while loops, do-while loops, etc. Second, you can use an array to store the data of 14 people, which makes it easy to assign each person to each shift. Finally, you can use the random number function to achieve randomness for each assignment.
To write a program in C language, it is required to automatically arrange shifts for 14 people every week, 2 people for each shift, 5 shifts a day...
Guess you like
Origin blog.csdn.net/weixin_42588672/article/details/129586796
Recommended
Ranking