你输入了什么?程序输出了什么?你期望输出什么?
另外,你的程序无法通过编译
main.c: In function ‘luru’:
main.c:33:27: warning: format ‘%lld’ expects argument of type ‘long long int *’, but argument 2 has type ‘long int *’ [-Wformat=]
33 | scanf("%lld",&tnew->number);
| ~~~^ ~~~~~~~~~~~~~
| | |
| | long int *
| long long int *
| %ld
main.c: In function ‘xuehaochazhao’:
main.c:66:38: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long int’ [-Wformat=]
66 | printf("学号:%lld\n",p1->number);
| ~~~^ ~~~~~~~~~~
| | |
| | long int
| long long int
| %ld
main.c:49:26: warning: variable ‘p2’ set but not used [-Wunused-but-set-variable]
49 | stu *p1,*p2;
| ^~
main.c: In function ‘main’:
main.c:128:25: error: a label can only be part of a statement and a declaration is not a statement
128 | int num1;
| ^~~
main.c:130:35: warning: format ‘%lld’ expects argument of type ‘long long int *’, but argument 2 has type ‘int *’ [-Wformat=]
130 | scanf("%lld",&num1) ;
| ~~~^ ~~~~~
| | |
| | int *
| long long int *
| %d
main.c: In function ‘luru’:
main.c:46:1: warning: control reaches end of non-void function [-Wreturn-type]
46 | }
| ^
|