Reprint Address: http://hi.baidu.com/thewillreigns/blog/item/67e665c4296e69c038db492d.html
Char and unsigned char are unsignedBoth are used words as words that are indistinguishable, but when integers are used differently:Char integer range is-128
Town Field Poem:——— Dream who feel, the water month Build blog. Baiqian tribulation, only know the vicissitudes of the world.——— today holds the Buddhist language, the technology is boundless willing to learn. Willing to do what you learn, cast a
In C #, December 2, December 8, and hexadecimal notation are converted to a decimal positive number,
I once thought about the problem of converting other hexadecimal to signed integer. I found it so easy only after I thought of a solution.
1.
C # conversion between decimal and binary, hexadecimal, and octal,
1. Convert decimal to binary
After dividing the decimal number by 2, you can enter all the remainder into two parts to obtain the required binary data.
Public static string
/*hexadecimal conversionsRequirements:1. Input data from keyboard (with input prompt)2. Using custom methodsIncrease:For the number of inputs, the conversion is 8-and 2-binary.*/Import Java.util.Scanner;public class arraytest{public static void Main
Data SegmentBuf1 dB 20DB?DB 20 DUP (?)Buf2 dB 20DB?DB 20 DUP (?)Input dB 'Remember to use the symbol, input: $'Output dB 'output: $'CTRL dB 0dh, 0ah, '$'Shi DW 0ah; it cannot be dB, DW is used, and word multiplication is requiredFuhao DB? ; Save the
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.