Missed scanf and function goes on without it. If I add a space still doesn't work
问题 #include <stdio.h> struct mychar { char value; struct mychar *nextPtr; }; typedef struct mychar Mychar; void instructions(); void append(Mychar **, char ); void printlist(Mychar *); int main(){ instructions(); Mychar *startPtr = NULL; unsigned int choice; char newchar; do { scanf("%d",&choice); switch (choice) { case 1: printf("\nWrite the character you want to add."); printf("\n> "); scanf(" %c", &newchar); append(&startPtr, newchar); printlist(startPtr); break; case 2: break; default: