The value of do {} while (0) when macro definition (# define) is in C language,
Recently I found that do {...} is used everywhere in the code of the new company {...} while (0), google, I found that there was a lot of discussion on Stack Overflow,
Talk C together (83rd back: C language instance-inter-process communication overview)
Hello, everyone. We are talking about the process stop in the first two times. The example here is:Inter-process communication. When you leave the rest of your
Talk together (80th: C language instance-process mutex)
Hello, everyone. In the previous review, we talked about examples of parent and child processes. The example is as follows:Process mutex. When you leave the rest of your time, your words will
Talk C together (79th back: C language instance-parent process and child process)
Hello, everyone. In the previous session, we talked about the process creation example. The example here is:Parent process and child process. When you leave the rest
C struct implements an address bookQuestion: an address book can be used to store information of 1000 people. Each person's information includes: name, gender, age, phone number, and address. Method: 1. add Contact Information 2. delete the
The path to C Language Learning (1)After I learned the C language, I thought I could never say goodbye to single quotes. Ah, I encountered the single quotes in the C language in less than a week, and I was surprised. For (I = 0; * (p + I )! = '\ 0';
C language: C language used to clear the input buffer in the case of standard input (stdin)C language clearing input buffer in the standard input (stdin) case of use 1:
// Function: enter a number, a character, and output hello bit # include int
Object-C, Object and Method
I learned Object-C and bought two books. One of them was bought in C currency. The overall quality is average and the comparison is basic.
Another one is crazy-written by Li Yang. It's scary and comprehensive.
I have a
Object-C, loop statement for, while, do-whileDemonstrate the loop statements, for, while, do-while, and C series languages. The syntax is basically the same as 1 to 10, and the sum is obtained.
//// Main. m // for-while /// Created by fansunion on 15
Object-C, file path API
Sharp complaints
1. they are also "file and directory operations". In java, java is used. util. A File class encapsulates a lot of APIS, and Object-C is engaged in so many classes and functions. The specific reasons are to
C language: output the byte size of the following keywords and the output address: char, short, int, float, double, long
Output the byte size of the following keywords and the output address: 1. # include int main () {printf ("% d \ n", sizeof
C language: four methods; two integers are exchanged (including the introduction of third-party variables and the absence of third-party variables)Method 1: Program: # include void swap (int * p1, int * p2) {int t = * p1; * p1 = * p2; * p2 = t;}
C language --- character, --- character
1. triplicate character (tri-letter word): It is a combination of three characters to represent other characters. The triplicate character can be used when no character exists.
?? ([
??) ]
??! |
??
?> }
Object-C, NumberDemo, and StringDemoTwo demos were written at night.The first is a demo string, and the second is a demo array and a variable array.Only a few basic methods and basic statements are used.NSString String object, NSNumber,
C language and c ++: two methods: printing 100 ~ Prime number between 200Method 1 programming in C language:
#include #include int main(){int i=0; int count=0;for(i=101;i0.5*sqrt(i)){count++;printf("%d ",i);}}printf("count=%d\n",count);return 0;}
Differences between macros and functions in C LanguageI. Code Length: the macro is completely replaced and inserted into the program to make the code longer. The function code only appears in one place and is called there when used. Ii. execution
C language-dynamic sequence tableA sequence table is a linear table stored in the computer memory as an array. It stores the linear structure of data elements in sequence with a set of sequential storage units. Linear tables are stored in sequence.
C exercise code-201511081. Programming implementation: How many bits are different in the binary expressions of two int (32-bit) integers m and n? Input example: 1999 2299 output example: 7
int ce_bin_wei(){//unsigned int a=1999,b=2299; int a=1999,b=
Objective-C -- Extension
In my previous blog, I explained in detail the Category "Objective-C -- Category details", and the extension and Category are very similar. Today we are going to learn more and expand.
Extension is added after Objective-C 2.0
C monkey eat peachThe monkey has a peach problem. On the first day, the monkey picked several peaches and immediately ate half of them. They were so addicted that they ate another one. The next morning, I ate another half of the remaining peaches,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service