converting Binary Numbers in to decimal numbers

前端 未结 6 666
情歌与酒
情歌与酒 2021-01-28 23:42

I need a program to convert Binary numbers into Decimal number in Java or in C++.

is there some one who can help me.

6条回答
  •  余生分开走
    2021-01-29 00:22

    In C++, there are the library functions "strtol", "strtoull", etc. that take a string and the base to use for conversion. If you need more than 32 / 64 bits, then you can use the GMP library which is only limited by available memory.

提交回复
热议问题