C language learning fourth chapter notes, endless

xiaoxiao2021-03-06  39

29. A function contains a declaration section and an execution section, and the execution section is composed of a statement. 30. The C statement can be divided into the following five categories (1) conditional statements to complete certain control functions

1 IF () ~ else ~ (conditional statement) 2 for () ~ (circulatory statement) 3 While () ~ (circulatory statement) 4 do ~ while () (cycle statement) 5 Continue (end this loop statement) 6 BREAK (Since the Execution Switch or Circular Scheduler) 7 Switch (Supreme Statement Statement) 8 GOTO (Steering Statement) ⑨ Return (2) Function Return Statement) (2) Function Calling statement, for example: Printf ("this is c") (3) Expression Specific statement expressions can constitute a statement of a state of C language?

(4) Empty statement (5) can enclose some statements into a composite statement with {}

For example: {z = x y; t = z / 100; Printf ("% f", t)} 31. The value of the presentation statement is composed of a semicolon by an additional expression, and the value expression can be included in other expressions. 32. When using the C language library function, use the precompiled command "#include" to include "header file" to the source user file, and the # include command is put in the beginning of the program, so such files are called " Header file, Printf and Scanf, because the system is allowed to use these two functions, it is not used in frequent use.

33. The role of the PUTCHAR function is to output a character 34 to the terminal. The role of the getChar function is to enter a character from the terminal (this function without parameters) GetCha can only receive one character 35. The general format of Printf is: Printf (format control, output list) 36. Printf Format Character and Additional Format Description Character

37. The general form of the Scanf function is SCANF (format control, address list), "&" is "address operator" 38. Scanf format characters and additional format description characters 39. SQRT () is a function 40 for square roots. When calling a mathematical library, you must add #include in front of the program.

转载请注明原文地址:https://www.9cbs.com/read-69464.html

New Post(0)