Using C + + to realize: FJ string printing
Problem description
FJ writes the following strings on the sandbox:
A1 = "A"
A2 = "ABA"
A3 = "ABACABA"
A4 = "ABACABADABACABA"
... ...
Can you find out the rules and write all the series AN?
Input format
Only one number: N ≤ 26.
Output format
Please output the corresponding string AN, ending with a line break. The output m ...
Posted by chrislive on Sat, 04 Apr 2020 16:01:01 -0700
C Language Programming - Advanced Data Types - Structures and Location Fields
Catalog
Article Directory
Catalog
Previous List
structural morphology
Define Structures
Initialize structure variables
Access structure members
Pass the structure into the function as an argument
A pointer to a structure variable
Bit field
Define Bit Fields
Using members of a bit field structur ...
Posted by ChaosDream on Sat, 04 Apr 2020 03:16:22 -0700
Test whether the code is highlighted
Reprinted from ReCclayhttp://blog.csdn.net/recclay/article/details/79332846
LCD strategy to play with the pointer, the pointer is not the C language, not the enemy of 51!
/*
*******************************************************************************
* File name: main.c
* Description: the pointer of 51
* By CLAY
* ...
Posted by jake8 on Tue, 31 Mar 2020 16:15:00 -0700
c recursive mutex
Before we talk about recursive mutexes, let's talk about what mutexes are. There are four types in the third edition of apue:
PTHREAD_MUTEX_NORMAL: Standard type with no special error or deadlock detection.
Deadlock occurs when a mutex is unlocked in the same thread.
PTHREAD_MUTEX_RECURSIVE: Recursive type.
This mutex type allows the same t ...
Posted by dopp on Fri, 27 Mar 2020 21:49:11 -0700
Using mutex to synchronize multiple processes
The function of the following program is to create a piece of shared memory so that both the parent process and the child process can write data to it. However, it is required that after the parent process or the child process finishes writing, another process can start writing, and all of them need to be synchronized.
Key points
Memory space ...
Posted by PatriotXCountry on Fri, 27 Mar 2020 07:53:38 -0700
Performance differences between exception handling, dynamic memory requests, and different compilers
Continue with the previous section Exception handling in c++ ...
Catalog
1. What happens when an exception is thrown in the main() function
2. What happens when an exception is thrown in a destructor
3. Exception specification of functions
4. Analysis of Dynamic Memory Request Results
5. New usage of new keywords
1. What ...
Posted by thelinx on Sun, 22 Mar 2020 22:11:49 -0700
C ා object oriented programming class concept and design details
1, The basis of object-oriented programming
1.1 object oriented programming
(1) What is object-oriented programming
In C language, the designed application program is too single, because all the functions are contained in several or even one code block, which can only serve a single program. There ...
Posted by grglaz on Sat, 14 Mar 2020 21:09:55 -0700
Hands on learning of C language - parameters and parameters are pointer variables
Memory address and pointer of variable
Pointer variable
Assignment of pointer variable
Pointer variable operators and operations
Pointer variable operation
Pointer variable as function parameter
Change from data variable to pointer variable
Change from pointer variable to data variable
Array and ad ...
Posted by Frozen Kiwi on Thu, 12 Mar 2020 20:07:33 -0700
bmp image graying and binarization
C language removes the background of bmp picture
I. Preface
2, Grayscale
Header file
C file
3, Binarization
I. Preface
In image processing, most of the processing methods need to convert color image into gray image in advance to carry out relevant calculation and recognition.
The principle of ...
Posted by robb73 on Thu, 12 Mar 2020 06:05:26 -0700
C language project - imperial concubine selection system - day 3 - end
Because the epidemic can only watch online classes at home. After learning C language for a few days, I plan to find a project. Today is the third day of this project. If you want to see the previous content, you can go to my same column to find it
Project: imperial concubine selection system
Six ...
Posted by SL-Cowsrule on Thu, 12 Mar 2020 05:42:59 -0700