版权声明:本文为博主原创文章,未经博主允许不得转载。 [cpp] view plain copy #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> #define TSIZE 45 struct film { char title[TSIZE]; int rating; struct film * next; }; int _tmain(int argc, _TCHAR* argv[]) { struct film *head=NULL; struct film *prev, *current; char input[TSIZE]; puts("Enter first movie title:");