细细理解
1 #include <stdio.h> 2 #include <iostream> 3 #include <string> 4 #include <string.h> 5 #include <math.h> 6 #include <algorithm> 7 #include <stdlib.h> 8 using namespace std; 9 struct film{ 10 char title[45]; 11 int rating; 12 struct film * next; 13 }; 14 int main() 15 { 16 struct film * head = NULL; 17 struct film * prev, * current; 18 char input[45]; 19 20 puts("enter first movie title: "); 21 while(gets(input) != NULL && input[0] != '