1 function declaration
void *memset(void *s, char ch, unsigned n);
Set the contents of each byte in a block of memory pointed to by s to the ASCII value specified by ch. The size of the block is specified by the third parameter. It is used to fill a given value in a memory block. It is the fastest way to clear a large stru ...
Posted by dbrown on Sun, 27 Feb 2022 17:04:54 +0100
1. Character pointer
1.1 method of use
2. Pointer array
2.1 print string pointer array
2.2 printing integer pointer array
3. Array pointer
3.1 definition of array pointer
3.2 & array name VS array name
3.3 use of array pointer
Definition of pointer:
A pointer is a variable used to store a ...
Posted by richclever on Sun, 27 Feb 2022 16:45:21 +0100
First acquaintance of C language
The video comes from station b Geng Bo is just to serve as a learning note... No intention of embezzlement
1. Write c language code:
1. Create project 2. Create files 3. Execute Ctrl + F5
4. Set linker:
5. Set line number: 6.
Posted by kimberlc on Sun, 27 Feb 2022 10:30:48 +0100
1. Translation environment and execution environment of the program
1.1 in any implementation of ANSI C, there are two different environments
The first is the translation environment, in which the source code is converted into executable machine instructions. The second is the execution environment, which is used to actually execute co ...
Posted by ScotDiddle on Sun, 27 Feb 2022 09:37:26 +0100
Purpose of this chapter
strlen Simulation Implementation
Implementation of strcmp simulation
Implementation of strcat simulation
strcpy Simulation Implementation
Implementation of STR simulation
Implementation of strncmp simulation
Implementation of strncat simulation
Implementation of strncpy simulation
Posted by IRON FART on Sun, 27 Feb 2022 09:36:45 +0100
The C library function void *malloc(size_t size) allocates the required memory space and returns a pointer to it.
statement The following is the declaration of the malloc() function.
void *malloc(size_t size) parameter Size – the size of the memory block, in bytes. Return value This function returns a pointer to the allocated size of me ...
Posted by 40esp on Sun, 27 Feb 2022 05:38:39 +0100
The processing of characters and strings in C language is very frequent, but C language itself has no string type. Strings are usually placed in constant strings or character arrays. A constant string applies to string functions that do not modify it
* character string
* - A string of characters ending with '\ 0'. 0 is th ...
Posted by Mr. R on Sun, 27 Feb 2022 05:17:39 +0100
Our task in this section is to find out the polymorphism
1, Concept of polymorphism
2, Override (overwrite) of virtual function:
3, override and final in C++11
Comparison: overload, overwrite (override), hide (redefine)
4, Abstract class
Interface inheritance and implementation inhe ...
Posted by futurshox on Sun, 27 Feb 2022 04:05:10 +0100
I What is the pointer
II Pointer and pointer type
3. Field pointer
4. Pointer operation
5. Pointer and array
6. Secondary pointer
7. Pointer array
I What is the pointer
1. Pointer is the number of the smallest unit in memory, that is, the address2. The pointer in spoken English usually refers to the p ...
Posted by roldahayes on Sat, 26 Feb 2022 15:41:28 +0100
Creation of one-dimensional array
Initialization of one-dimensional array
Use of one-dimensional array
Storage of one-dimensional array in memory
Creation of two-dimensional array
Initialization of two-dimensional array
Use of two-dimensional arrays
Storage of two-dimensional array in memory
Array out of bounds
Array as fu ...
Posted by spetsacdc on Sat, 26 Feb 2022 13:13:52 +0100