# Include <e: studychead. h>
# Include <stdio. h>
# Include <stdlib. h>
# Include <string. h>
# Include <ctype. h>
# Include <conio. h>
# Define LISTSIZE 80
Typedef struct text
{
Char string [80]; // store the elements of each row
Struct text * next; // pointer to the next node
Struct text * pre; // pointer to the previous Node
Int num; // The length of each row
Int flat; // indicates whether the row is deleted.
} Text;
FILE * fp, * out;
Text * head;
Int n = 0, sum, delnum, xiugai = 0, page = 0;
Void byebye ()
{
Puts ("ttt ******************");
Puts ("ttt *****");
Puts ("ttt *****");
Puts ("ttt *****");
Puts ("ttt *****************");
Puts ("ttt ****");
Puts ("ttt ****");
Puts ("ttt ****");
Puts ("ttt *****************");
}
Void HELP ()
{
Printf ("nt ************************************ * ********************** n ");
Printf ("t ** open the file: o <row number> <File Name> <press enter> ** n ");
Printf ("t ** row insertion format: I <row number> <press enter> <text> <press enter> ** n ");
Printf ("t ** row deletion format: d <row number 1> [<space> <row number 2>] <press enter> ** n ");
Printf ("t ** live zone switch format: n <press enter> ** n ");
Printf ("t ** live zone display format: p <press enter> ** n ");
Printf ("t ** Note: Before executing all commands, you must use the o command to open the file,