C language: function

1. What is the function Wikipedia is defined as: subroutine 2. Library function The header file must be referenced when using library functions C + + library function interpretation link Here, the library function string assignment function strcpy is parsed //String assignment function strcpy #define _CRT_SECURE_NO_WARNINGS #include&lt ...

Posted by Rowno on Mon, 03 Jan 2022 03:01:39 +0100

C language & Java parsing: when i = i + +, what is the result?

preface: A friend discussed a problem with me before. He asked in java, i=1;i=i++; At first, I thought the result was 2, but when he said that the answer was 1, I had to think of a reasonable explanation. I think it may be because the temporary variable is incrementally changed after I is assigned to I, so the value of I has not changed. When ...

Posted by headbangerbuggy on Mon, 03 Jan 2022 00:51:11 +0100

C language structure (learning notes)

1, Basic knowledge 1. Definitions Structure is a data set composed of a series of data of the same type or different types, also known as structure. The data in the structure is called member variables. Member variables can also be arrays, pointers, and structures. 2 declaration struct   student {           ...

Posted by krish_s on Mon, 03 Jan 2022 00:30:25 +0100

[C Advanced] 28. Pointer and array analysis

Summary1) The array is a continuous memory space. The number of elements in the array is #define DIM(a) (sizeof(a) / sizeof(*a)) 2) Pointer is a special variable. The operation rules between pointer and integer are as follows: p + n; <--> (unsigned int)p + n * sizeof(*p)When the pointer p points to an element in an array, p + 1 will poi ...

Posted by StealthRider on Sun, 02 Jan 2022 23:21:00 +0100

Teach you how to import the third-party library of Go language

Teach you how to import the third-party library of Go language 1, Get using go get The go command go get allows us to quickly and easily download or update the go language pack and its dependent files from the network, compile and install them. First enter go --help in command line mode to view the following information. Go is a tool for ma ...

Posted by RSprinkel on Sun, 02 Jan 2022 18:25:04 +0100

Tan Haoqiang C Programming -- Chapter 5, Chapter 6, Chapter 7, Chapter 8 after class exercises

preface: I haven't seen C language for more than a month, but the final exam of the last semester of freshman year is coming soon Some time ago, I was thinking about the direct naked exam,,,,,,,, Later, I thought I'd better do some after-school exercises. After all, I still have no confidence, Hey, come on, come on... Chapter V   #i ...

Posted by txhoyt on Sun, 02 Jan 2022 17:51:07 +0100

Ground Surface Strongest C Language Summary File (Continuous Update)

Latest update: 2021.12. 24 Environment: CLion2021.3; 64-bit macOS Big Sur 14. Documents 14.1 What is a file 1. From the point of view of file function, it can be divided into program files and data files: (1) Program files: source file (.c), target file (.obj), executable program (under windows.exe) (2) Data file: The contents of the file ...

Posted by roshanjameer on Sun, 02 Jan 2022 17:11:39 +0100

C language hand playing greedy snake version 1.0 (including interface, switchable music and three modes to play)

C language is almost at the end of learning. With the basis of grammar, I want to make a small game to show what I have learned. Learning from the blogs of some bloggers, I finally chose to use C language to fight greedy snakes. My original version of greedy snake has interface, switchable music and three level modes. Next, let's briefly exp ...

Posted by LordTyphon on Sun, 02 Jan 2022 15:56:40 +0100

Small bai notes: c language branch statements and loop statements

Preface: I am also Xiaobai. This is my note sorting in my study. I hope it can help more people. If there are mistakes, you are welcome to correct them. If you don't understand them, you are also welcome to communicate with each other in the comment area and make common progress. In order to save space, the code in the paragraphs in the article ...

Posted by tpl41803 on Sun, 02 Jan 2022 14:43:01 +0100

Data structure - stack (Ⅳ)

Data structure - stack (Chapter 3) sorting notes. If there are errors, please correct them. Sequence table Single linked list Stack of base book exercise do ...

Posted by EGNJohn on Sun, 02 Jan 2022 13:39:37 +0100