设计一个函数,把数字字符串转化成整数 #include <stdio.h> /* 设计一个函数,把数字字符串转化成整数 */ int integer(char str[]){ int i,num; num=0; for(i=0;str[i]!='