#include<stdio.h>
#define N 2
long fun(char *p)
{
long n=0;
int flag=0; //标识符号位的标记变量
while
功能:编写函数long fun ( char *p),将一个数字字符串转换为一个整数(不得调用C语言提供的将字符串转换为整数的函数)。
最新推荐文章于 2023-07-08 19:37:48 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include<stdio.h>
#define N 2
long fun(char *p)
{
long n=0;
int flag=0; //标识符号位的标记变量
while