My data structure experiment job (a simple row editing program)

Source: Internet
Author: User


# 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,

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.