At the invitation of a netizen, I wrote a numeric conversion function. If you have any shortcomings, click it. # Include
/* * Function: int convert (INT num, char * STR, unsigned int Radix)* Function: convert a decimal integer to 2 ~ 36
Returns the number of 1 records.
The number of statistical items 1 can be shifted to one digit,
The advanced algorithm N & (n-1) removes 1 of the N percentile.
What does the extension N & (n-1) = 0 mean: N is a power of 2 or N = 0;
Int
First of all, we need to understand the IP address conversion to the integral type (strictly speaking is a long integer) the principle of ~
"Principle of conversion": assuming the IP is: w.x.y.z, the IP address to the integer number of the
Document directory
Unsigned integer Compression Algorithm
Unsigned integer decompression algorithm
Algorithm for compressing signed integers
Algorithm for extracting signed integers
ILASM/ILDASM
Mono Cecil
CCI Metadata
Other
CONVERT (varchar (10), field name, conversion format)CONVERT (nvarchar), count_time,121Convert is a date conversion function, typically in the time type (Datetime,smalldatetime) and the string type (Nchar,nvarchar,char,varchar)The 3 parameters of
Title: Enter a String representing an integer to convert the string to an integer and output. For example, the input string "345", the output integer 345.Analysis: Although the problem is not difficult to learn, C + + language generally can achieve
The number contains the following seven characters:I,V,X,L,C,DAndM.
Character value I 1 V 5x 10l 50C 100d 500 m 1000
For example, write the number 2 in RomeII, That is, two parallel 1. 12 writeXII, That isX+II. 27 writeXXVII, That
Implement a function itoa (int n, char s[]), convert the number of integer n to the corresponding string, and save to S.#include void reverse (char *left, char *right){while (left {char tmp = *left;*left = *right;*right = tmp;left++;right--;}}void
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.