/**/#include<string.h>#include<stdio.h>#include<math.h>int convert(char*);int main(void){ char * buf = "10110110"; int res = 0; res = convert(buf); //函数调用 printf("%s-->%d\n", buf, res);}//二进制字符串转化为十进制int convert(char * buf){ ...