Toggle navigation
Courses
Questions
Tags
Users
AC 20170105 期末 第二題
0
like
0
dislike
1.9k
views
讓使用者輸入三個時間,依照時間由晚到早輸出。
example input:
12 30 23 40 12 34
22 30 20 31 17 12
example output:
23:40 12:34 12:30
22:30 20:31 17:12
[Exercise]
Coding (C)
-
asked
Jan 5, 2017
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 20978 -
Available when:
Unlimited
-
Due to:
Unlimited
reshown
Jan 5, 2017
by
Shun-Po
|
1.9k
views
comment
Please
log in
or
register
to add a comment.
39
Answers
0
like
0
dislike
Hidden content!#include<stdio.h>
#include<stdlib.h>
struct time
{
int hour;
** * * * * ** ** * * * * min;
}t[3];
void time(struct time *t, int hour, int min);
void timechange(struct time *t);
void printtime(struct time *t);
int main(void)
{
int i;
int hour,min;