-
Category : Other
Tags :
- Update : 2013-12-07
- Size : 354kb
- Downloaded :0次
- Author :服*****
- About :
Nobody
- PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
[Problem Description] Write a function itob (n, s, b), is used to convert the integer n base b string and stored in s. Written procedures, use the function itob (n, s, b) the input integer n, converted to a string s, the s output. strings converted from the highest non-zero bit to start output. If n is negative, the first character of the output is - . b is greater than a value of less than 37 of any nature. When b = 2, the output character can only be 0 and 1 When b = 16, the output string may contain characters 0 - 9 , a - f (letter in lower output). b may also be other values . For example, enter n = 33, b = 17, the output 17 hex value "1g" 33 s.
[Form] input console input integer n and b, where n can be negative. n and b separated by a space.
[Output format] console output after conversion string s.
Sample input [52]
Sample output] 101
[Description] binary sample 5 is 101
[Standard] results entirely correct score 20 points, 4 points for each test poin
Packet file list
(Preview for download)
getprimenum
...........\Debug
...........\.....\getprimenum.exe
...........\.....\getprimenum.ilk
...........\.....\getprimenum.obj
...........\.....\getprimenum.pch
...........\.....\getprimenum.pdb
...........\.....\itob.exe
...........\.....\itob.ilk
...........\.....\itob.obj
...........\.....\itob.pch
...........\.....\itob.pdb
...........\.....\vc60.idb
...........\.....\vc60.pdb
...........\getprimenum.dsp
...........\getprimenum.dsw
...........\getprimenum.ncb
...........\getprimenum.opt
...........\getprimenum.plg
...........\itob.c
...........\itob.dsp
...........\itob.dsw
...........\itob.ncb
...........\itob.opt
...........\itob.plg
Related instructions
- We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
- The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
- Please use Winrar for decompression tools
- If download fail, Try it againg or Feedback to us.
- If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
- Before downloading, you can inquire through the uploaded person information