The essence of the structure is a data abstraction in C language. In layman's terms, it is a reorganization of basic data types. Why is restructuring required? Because the basic data type is not enough. Why is it not enough? Because too many types
Author: Qing Dujun
Method 1:
Two functions are required to obtain the file size: fseek () and ftell ()
Fseek () function:
Prototype:IntFseek (FILE* Stream,LongOffset,IntFromwhere );
Parameters:
Stream: The first parameter stream is the file pointer.
I. Recognize the truth of functions
1. Origins of functions
Program = Data + Algorithm
C program = Data + Function
2. Functions
Modular Program Design
Modularization in C Language
3. process-oriented programming
# Process-oriented is a
1. each time a file calls an input/output function, a new ferror () function value is generated. Therefore, the ferror function value should be checked immediately after the input/output function is called, otherwise, the information will be lost.
Short/int: % dA =, );
Long: % ld; (long is an int modifier. It cannot be regarded as a separate data type, but it only has four bytes more storage space than int)
Long: % lld
Char: % c
Float/double: % f float is a 6-digit decimal output by
A = * p = & * q = (*); printf (, & printf (, * printf (, ** q =; printf (, * printf (}
Running result:
Analysis:
A is an int variable whose address is 0x18FEF0. * p points to this address, which is equivalent to a new name named P for this
For example, enter 1, 2, 3,..., n * n in the n * n square matrix and fill it with a snake. For example, if n = 4, the square matrix is:
10 11 12 1
9 16 13 2
8 15 14 3
7 6 5 4
In the square matrix above, the extra space knowledge does not need to be
Browse the previous article about cool shell today. So I checked the information and found out the "zero-length array", that is, the flexible array. The record is as follows.
A zero-length array is generally found in a struct, and a zero-length
/*************************************** **************************************** * ******** Question link: http://acm.nyist.net/JudgeOnline/problem.php? Pid = 77 th path: first, input 2 data, then define an array, there are only two States between
Introduction:At the beginning of C language learning, when we mentioned preprocessing, we thought of the # define macro definition and the # include header file. Later, with the in-depth study of C, we found that preprocessing is more than that. For
08-Objective-C special Syntax: @ property, @ synthesize 1. @ property is used in @ interface to automatically generate the setter (setter) and getter (constructor) declarations using @ property int age; you can replace the following code:-(void)
1. sqlite3
Http://www.sqlite.org/
Download
Wget http://www.sqlite.org/2014/sqlite-amalgamation-3080403.zip
Tar xvf http://www.sqlite.org/2014/sqlite-amalgamation-3080403.zip
Cd sqlite-amalgamation-3080403
2. Write and call the main function and
I reviewed the C language ING and found that the complicated function pointer statement could not be understood. I finally learned a little bit about Baidu for half a day.
Talking about a more detailed blog:
It took some time to make the garden look good. continue now.
Function Name:Putc Function: outputs one character to a specified stream.Usage: intPutc(Int ch, FILE * stream );
_putc_lk(_c,_stream) (--(_stream)->_cnt >= 0 ? 0xff &
1. Unknown pipeline (PIPE): pipeline is a half-duplex communication method. data can only flow in one direction and can only be used between unrelated processes. The kinship of a process usually refers to the parent-child process relationship.
2.
Storage area of C language programs
After a program written in C language is compiled with links, a unified file is formed, which consists of several parts and several other parts will be generated when the program is running, each part represents a
C language is easy to get started, because there are a few commonly used Syntax structures. Below are some simple program examples of these syntax structures, you can quickly review the C language. The program contains the use of bool variables,
Some people think that, in the era of java and. net, who needs C and assembly? Java and. net is built on software, and is built to monopolize the market. It is like digging a golden wall brilliant pitfall. Please jump down and think you are standing
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