1 download: Sourcery G ++ Lite for ARM EABI
2. Set the compiler path: copy it from the gcc arm and change it to Code Sourcery G ++ Lite.
3. Create an ARM Project
4. Add the STM32 library file, which is similar to mdk.
Note: add the GCC Startup File
Preface
When learning C language, pointers are definitely a hurdle. Many people talk about pointer color changes and use them carefully. "All pointers are paper tigers." At the same time, we must "despise pointers strategically and attach importance
Use# Pragma weakIn name format, the Command makes name a weak symbol. When the link program does not find the symbolic definition of name, no error message is displayed, and multiple weakly defined error messages of the symbol are not displayed. The
Environment: win7
IDE: DEV-C ++
Compiler: GCC
Compilation result: Success
Running result: Success
Instructions for use:
1. Enter the directory to be queried, such as e:
2. Enter the suffix to be deleted, for example, txt.
Note: This program uses
Note the difference between topic understanding and longest common subsequence. The longest common substring solution is dynamic planning, but it is difficult to think of the table construction method.
Note that if the given string is set to str1
802.11 wireless 6Bluetooth1. Wireless Personal Network (WPAN) Radio System2. Common link range: 10 meters/0dBm (100 meters/20dBm)3. The transmission frequency is between 2.402 GHZ and 2.480 GHZ (if a hop frequency is used for a total of 79 channels)4
A function written in C to search for substrings.
Int findstr (char * str, char * substr) // C to implement find{If (NULL = str | NULL = substr)Return-1;
Int strl = strlen (str); // String LengthInt len = strlen (substr); // length of the
Let's look back at C language programming basics. Many of the questions from teachers in the past have been slightly modified. You can input any number of lines to print the christmas tree. The larger the number of lines, the larger the tree, of
Given any positive integer, the minimum number is greater than this number. The meaning of the number is that two adjacent digits are different. For example, 1101 is the number of duplicates, and 1201 is not a complex number.
#include #include
Defines the use of struct variables, struct Variables(1) define struct types
1. A user-created data structure composed of different types of data is called a struct.
For example:
Struct Date
{Int month;
Int day;
Int year;
};
Struct Student
{Int num;
The method for calculating the π value in C Language cyclic structure,Formula:
Analysis: first, the denominator of an item with a positive coefficient is 4n-3 (n is the number of items with a positive number), and the denominator of a negative
Defines the use of struct variables, struct Variables(1) define struct types
1. A user-created data structure composed of different types of data is called a struct.For example:Struct Date{Int month;Int day;Int year;};Struct Student{Int num;Char
Summary of Common keywords and functions in C Language There are 32 keywords in C language, as described below:
Auto: Declares automatic variables.
Short: declare short integer variables or functions
Int: Declares integer variables or functions.
Attacking snakes (1) and attacking snakes (
Many of my friends who have studied C language or C ++ may have written snake-Greedy homework. I am also one of them. At the beginning of the writing, I had a poor level, and the writing effect was not as
Returns the pointer value function.(1) General Form of functions that return pointer values
Type name * function name (parameter table column)
For example, int * a (int x, int y) calls the pointer returned by function a to point to the integer
Algorithm aabb, algorithm aabbDescription: outputs the four-digit full records (that is, the first two digits are equal, and the last two digits are also equal) in the form of aabb ).When branch and loop are combined, the function is powerful:
The
The pointer to the function.(1) function pointer
Definition: If a function is defined in a program, the compilation system allocates a bucket for the function code during compilation. The starting address of this bucket is the pointer of this
Longest Common subsequence (DP) and longest sequence dpDescription
The subsequence of a given sequence is obtained after several elements are deleted from the sequence. To be exact, if a sequence is specifiedX= {X1,X2,...,Xm}, Then another sequenceZ=
Use a pointer to reference a string.(1) a small example of a pointer referencing a string
Copy string a to string B
1 # include 2 int main () {3 char a [] = "I am a boy", B [20], * p1, * p2; 4 p1 =; p2 = B; // p1, p2 points to the first element 5
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.