经典代码--二进制转十进制!!!

#include using namespace std; unsigned int BtoD(char *str) { unsigned int result=0; while(*str) { result<<=1; result+=*str-48; str++; } return result; } int main() { char B[33]; cout<<“请输入”<>B; cout<

    原文作者:进制转换
    原文地址: https://blog.csdn.net/fmp_fantasy/article/details/1572783
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞