Dark Horse programmer-C language open-door chip memory analysis, dark horse programmer open-door
IOS training, iOS study --------- technical blog, hope to communicate with you! ------------
I. Summary of various hexadecimal formats1. Binary
(1) in
General linked list in C Language
In operating system programming, C is often used, but C is extremely painful to use, unlike C ++, which has a convenient STL template library.
In the Linux kernel, there is a set of magical universal linked list
Andriod gesture password cracking,
★Introduction
I saw an article on Freebuf about Andriod's gesture password encryption principle. I thought it was interesting, so I wrote a small program to try it.
★Principle
Android's gesture password
Sequence Table Implementation (C language)
# Include
# Include
# Define MAXSIZE 100 struct List {int element [MAXSIZE]; // int len; // length of the current linked List} * t; void print (List * t ); int Isemtty (List * t) // determines
ObjectC ---- Block usage and array sorting using blocks
// Created By Guo Zai April 02, 2015 17:45:01
Function in vitro:
Typedef int (^ Block) (int, int); // rename
Typedef void (^ Block1) (int );
Int n = 0;=========================================
1 ~ Enter a line of characters from the keyboard to count the number of words. A word is considered to be a character sequence between spaces ., Enter the keyboard here
# Include Int main (){Char ch;Int count = 0, startWard = 0;While (ch = getchar (
PAT 08-2 finding the local maximum of matrix, pat08-2
This question is quite simple, but it is an article every day. Two points: first, my carelessness led me to spend a lot of time looking for errors. I saw four test cases for three. I thought the
PAT 07-2 A + B and C, pat07-2
There are two noteworthy points: 1. The use of variable-length arrays (VLA), I did not expect that OJ on PAT actually supports C99, it was useless at the beginning, look at other people's, since, I don't like it very
Use C language to calculate the number of words in a string
# Include
Int main () {char string [100]; int I, num = 0, word = 0; char c; gets (string ); // obtain a string from the keyboard (I = 0; (c = string [I])! = '\ 0'; I ++) // if the
Calculate the first address (forwarding) of a struct using the address of a member of the struct.
Recently, many people on the CU Forum asked the following question: give the address of a struct member to calculate the starting address of the struct.
PAT 06-2 string uppercase/lowercase conversion, pat06-2
There is nothing to say. Remember to use ctype. h is ready. Tan haoqiang introduced the book. I'm sorry for the old man's family if I don't use it anymore. A little bit of attention should be
PAT 06-3 words, pat06-3 words
This topic is simplified, with the question "ending with '.'" and "words have nothing to do with language ". In three cases, the input and output are
.-> NO output
A B.-> 1 1 (no space)
A B.-> 1 1 (no space)
In the
C language Performance Optimization
(1) is Data Alignment faster?From the first day of learning the data structure, the book tells us that data alignment can make access faster. I have always been impressed by this, but I have never been quite
C language beginners compare five integers and output the maximum and minimum values 1 and five minimum values
# Include
# Include
Int max (int x, int y)
{
If (x> y)
Return x;
Else
Return y;
}
Int min (int x, int y)
{
If (x
Return x;
C language programming: Turning numbers over
Method 1: (easy to understand)
# Include
# Include
Int main () {int n; scanf ("% d", & n); // enter the number int result = 0; // Save the flipped result while (1) // while (true) can
C language string operation function implementation, C language string Function
1. String inversion-strRev
void strRev(char *str){ assert(NULL != str);
int length=strlen(str); char *end=str+length-1; while(end > str) { *str=
There is always something you don't know in C Language -- (continuous update)
/* Although I have learned C language, I still haven't met some things that I don't know: */# include
# Define NUMBER 5/* define: the variable names after the macro
Cygwin compiles SDL1.2 and cygwinsdl1.2
1. Download an sdl-1.2.14.tar.gz file.
2. Download a cygwin64to decompress sdl-1.2.14.tar.gz
Tar-zxvf SDL-1.2.14.tar.gz
The following three steps are required for searching online:
(1)./configure
(2) make
(3)
Union and big-endian, littleendian
1. Basic Features of union -- same and different from struct
Union, the Chinese name "consortium, shared body", in a way similar to a structure struct data structure, shared body (union) and struct (struct) it can
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.