C programming, annotated, how to annotate in C?

Updated on technology 2024-03-15
10 answers
  1. Anonymous users2024-02-06

    You start by writing a function to find a sequence.

    Then use for or while to call the !!

    It's better to write it yourself and let someone else write it, you won't be next time.

  2. Anonymous users2024-02-05

    Add it directly where the line needs to be commented"Can.

    You can use the * and * separators to annotate comments within a single line, or you can annotate comments on multiple lines. For example, in the following function prototype, the ellipsis means that the open() function has a third argument, which is optional.

    The note explains the use of this optional parameter:

    int open( const char *name, int mode, …int permissions */

    **It has good portabilityC language is a process-oriented programming language, users only need to pay attention to the problem itself, and do not need to spend too much effort to understand the relevant hardware, and for different hardware environments, the same function is basically the same when using C language to achieve the same function, no or only a small number of changes can be completed to complete the migration, which means that the C program written by one computer can be easily run on another computer, thus greatly reducing the intensity of program transplantation.

    Refer to the above content: Encyclopedia-C language.

  3. Anonymous users2024-02-04

    The annotation method is as follows:1.Open a Word document and enter the text in the document.

    2.Move the cursor to the text where you want to insert a note, and click the small icon at the bottom right of "References-Insert Footnotes" on the menu bar.

    3.In the dialog box that opens, set the custom tag format to [1].

    4.After confirming the dialog box, a superscript [1] is displayed at the cursor position, and a comment can be entered at the end.

  4. Anonymous users2024-02-03

    The C language is more complicated, and I don't understand it very well after a while, so I introduce annotation statements. There are two kinds, the first is two, and the second is **

  5. Anonymous users2024-02-02

    Annotators for C are strings that start with "* and end with "*". Between "* and *" is the comment.

  6. Anonymous users2024-02-01

    It has two annotation symbols, namely: 1. Row annotator2. Block annotator *

  7. Anonymous users2024-01-31

    c The annotation symbol for the language is ".There are generally two types of annotators in the C language, one is a paragraph annotator that starts with ", adds the annotation content in the middle, and ends with ". Between "* and *" is the comment. The other is a single-line annotator that starts with " and is followed by the annotation content.

    The one after " is the comment.

    Introduction:

    Annotators for C are strings that start with "* and end with "*". Between "* and *" is the comment. When the program is compiled, no comments are processed. Comments can appear anywhere in the program.

    Annotations are used to prompt or explain the meaning of the program to the user. In the debugger, you can also enclose annotations in the statements that are not used temporarily, so that the translation is skipped, and the annotators can be removed after the debugging is completed.

  8. Anonymous users2024-01-30

    When writing C sources, you should use more comments to help you understand them. There are two ways to annotate in C:

    One is a block comment that starts with * and ends with *;

    The other is a line comment that starts with and ends with a newline. There are generally two types of annotators in C, one starts with "*, adds the annotation content in the middle, and ends with "*". Paragraph annotation.

    Between "* and *" is the comment.

    The other is a single-line annotator that starts with " and is followed by the annotation content. The one after " is the comment.

    When the program is compiled, no comments are processed. Annotations can generally appear anywhere in the program. Annotations are used to suggest or explain the functionality of a program to the user or programmer.

  9. Anonymous users2024-01-29

    The simple thing is to know these two ways to do one: *here this note* two: here this note.

  10. Anonymous users2024-01-28

    Single-line comments and pairwise comments. Single-line comments begin with a double slash ( ). Everything to the right of the slash in the same line is a comment and will be skipped by the compiler.

    Another delimiter is the annotation symbol pair (**), which inherits from the C language. This kind of annotation starts with * and ends with *. The compiler treats both the * and the part between * as comments.

    Annotation symbol pairs can be placed anywhere tab, space, or new line is allowed. A note pair can span multiple lines of a program, but it is not necessary to do so. When a note symbol pair does not span multiple lines, it usually indicates that the inner line is part of a multi-line comment.

    Our style is that each line starts with an asterisk, thus indicating that the entire range is part of a multi-line comment.

    Typically, a program contains multiple forms of annotation. Annotation symbol pairs are often used for multi-line interpretations, while double-slash annotations tend to be half-line or single-line annotations.

    Too many notes mixed in the program can be confusing. Usually place a note above the ** you want to explain.

    As ** changes, comments should also be kept updated. Programmers want comments to be accurate and trust them, even if other forms of system documentation are out of date. An incorrect comment is worse than no comment at all, as it misleads subsequent readers.

    Annotation symbol pairs cannot be nested.

    Comments that begin with * usually end with *. As a result, one annotation pair cannot appear in another. Compiler error messages caused by these types of program errors can be difficult to understand.

Related questions
7 answers2024-03-15

It's called the [batch] program, in fact, don't think that the program you mentioned above to deal with garbage is really powerful, it's amazing, when you have learned DOS, that program can be said to be a very simple thing; >>>More

25 answers2024-03-15

First think about how many parts the whole program needs, and then what functions each part needs, and then think about the process of each part, the global variables needed, and then make it up according to the content of the design.

5 answers2024-03-15

int main()

int i,j,k; >>>More

4 answers2024-03-15

The introductory course of MCU C language programming is not difficult, it is not easy to say, and the first thing to understand is to understand what these two things are when learning MCU C language? The introductory programming of single-chip microcomputer is mainly to learn C language, followed by circuit and programming language. >>>More

16 answers2024-03-15

Definition of a for loop.

for(the initial value of the variable; termination of operating conditions; The initial value of the first cycle i is 0, and it runs until i=3 stops i=2, and the condition is still satisfied, and the loop body is still executed, and the step size is 1+1 each time >>>More