Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Windows Develop
  • Category : Windows Develop
  • Tags :
  • Update : 2013-12-21
  • Size : 9kb
  • Downloaded :0次
  • Author :868***
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
#include <stdio.h>   #include <stdlib.h>   //输入十进制数N和转化的进制数M   void trans(int n,int m)   { char str[100] int i    for(i=0 n>0 i++) {if (n m<10) {str[i]=n m+ 0 } else {str[i]=n m-10+ A } n=n/m } for(n=i n>0 n--){printf(" c",str[n-1]) }   }   void main()  { int m,n,x char ch  printf("给定进制 M---")  scanf(" d",&m)  loop:  printf("给定一个 d 进制的数 X---",m)  fflush(stdin) //一个M进制的数X转10进制  for(x=0 )  { ch=getchar()  if(ch>= 0 && ch<= 9 ) { n=ch- 0 }  else if(ch>= a && ch<= z ) { n=ch- a +10 }  else if(ch>= A && ch<= Z ) { n=ch- A +10 }  else { break }  if(n>=m){goto loop }  x=x*m+n  }  printf("转换成 10 进制的数为--- d\n",x)  printf("给定要转换成的进制 N---")  scanf(" d",&m)  printf("转换成 d 进制后的结果---",m)  trans(x,m)  printf("\n") }
Packet file list
(Preview for download)


新建文件夹 (2)\各种编程语言的特点.txt
新建文件夹 (2)
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

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.