[C language library function source code]
[This program is compiled in Dev C ++ 4.9.9.2]
/*
Splits the floating point number X into the ending number and the index. X = m * 2 ^ exptr, and M is a normalized decimal.
Returns m and stores the index
Original address: http://blog.sina.com.cn/s/blog_605f5b4f0100x3ep.htmlFirst declare: in VC + + compiled printf does not automatically do type conversion, such as int a=3; printf ("%f", a), error during operation, runtime error r6002:floating point
go to: http://blog.csdn.net/zhanzheng520/article/details/10434791The meaning of a format symbol 1, D format character: output in decimal format.%d output digit length is the actual length of the variable value%MD Output M-bit (insufficient space,
Background and ideas:51 small vacation before, the company asked me to do a server patrol.1, wrote a simple script to obtain the various basic information of the server: CPU, memory, swap partition usage, disk, network card information various,
1, write the program, printing * Diamondthe number of blank spaces and * numbers to be printed in line I, printing each line in the For loop
Copy Code code as follows:
#include ///Total print 2*n-1 line, print line by row
void print1 (int n)
Switch statement
The C language also provides another switch statement for multiple branch selections, in the general form of:switch (expression) {case constant Expression 1: statement 1;Case constant Expression 2: statement 2;...case constant
the most important features of C language are: Strong function, easy to use and flexible. C Compiled program for grammar check is not as strict as other high-level language, this gives programmers leave "flexible room", but still because of this
1. The distinction between uppercase and lowercase letters is ignored when writing identifiers.
Main ()
{int a=5;
printf ("%d", A); }
The compiler says that a and a are two different variable names, and the error message is displayed. C considers
C compiled programs are not as strict as other high-level languages. This gives programmers the "flexibility", but still because of this flexibility to debug the program has brought a lot of inconvenience, especially for beginners of the C language,
Question of printf, printf
I used to implement printf when I learned the book "write an operating system by myself" by yuan, but it is a relatively simple version. I recently read the programmer interview book to answer this question:# Include Int
A senior Linux program developer's development experience-general Linux technology-Linux programming and kernel information. The following is a detailed description. Sppence Murray is one of the Linux developers and has long been a strong supporter
: This article mainly introduces the development experience of senior Linux programmers. For more information about PHP tutorials, see. Since the first time using the simple environment vi supported by SunOS in the middle of 1980s, the Emacs editor
Experiment 2-1Enter 3 numbers and output in order from large to small. Experimental requirements: Write a C program, enter 3 numbers, and output in order from large to small. Reference: Source: #includeintMain () {inta,b,c,t; printf ("10,20,111;");
%-0 M.N L or H format charactersThe following describes the items that comprise the format description:①%: Represents the starting symbol for the format description, which is indispensable.②-: Yes-Indicates left-aligned output, such as omitting to
Test instructions: Give a square with an edge length of a, give D, give n, output the coordinates of the distance i DThis article of studyhttp://blog.csdn.net/synapse7/article/details/21595639Fmod can be used to take the floating-point number of
[C language library function source code]
[This program is compiled in Dev C ++ 4.9.9.2]
Double my_pow10 (Double X)
{
Register double ret, value;
_ ASM __(
"Fldl2t;/n/t"
"Fmul % ST (1);/n/t"
"FST % ST
[First hello Word program]
1. Create a new main. c file on the desktop. open the file editor and tap the C language code.
2. Enter CD desktop in the terminal
GCC main. c
./A. Out // The generated a. out is an executable file.
GCC main. C-o main //
Getting started with iOS development☞C language Series 2, iosConstant
C language has rich data types. during development, constants or variables are usually used to represent the data.
"Volume" Indicates data. Constant indicates some fixed data,
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.