C语言中Input(&s)!=EOF怎么用自定义函数表示 ?

C语言中Input(&s)!=EOF怎么用自定义函数表示 


智慧大石
浏览 839回答 2
2回答

翻过高山走不出你

数据类型是哪个。像字符串int Input(char * s){.................}

手掌心

#include <stdio.h>struct Student {char Name[21];int score;};int Input(struct Student *p){scanf("%s%d",&(*p).Name,&(*p).score);}
打开App,查看更多内容
随时随地看视频慕课网APP