🌈 style:

This commit is contained in:
lzy
2024-05-26 15:39:14 +08:00
parent 6f28a3384a
commit a57bbdb4c1
156 changed files with 765 additions and 770 deletions

View File

@@ -13,16 +13,16 @@ struct score_st
int chinese;
};
static int print_s(void *record)
static int print_s(void* record)
{
struct score_st *r = record;
struct score_st* r = record;
printf("%d %s %d %d\n", r->id, r->name, r->math, r->chinese);
}
int main()
int main( )
{
QUEUE *qu;
QUEUE* qu;
struct score_st tmp;
int i, ret;
@@ -34,8 +34,8 @@ int main()
{
tmp.id = i;
snprintf(tmp.name, NAMESIZE, "stu%d", i);
tmp.math = rand() % 100;
tmp.chinese = rand() % 100;
tmp.math = rand( ) % 100;
tmp.chinese = rand( ) % 100;
if (0 != queue_en(qu, &tmp))
break;