首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

帮小弟我看看是那里出错了吧

2012-02-23 
帮我看看是那里出错了吧#includestdio.h#includestdlib.h#includemath.h#includectype.h#include

帮我看看是那里出错了吧
#include   <stdio.h>  
#include   <stdlib.h>  
#include   <math.h>  
#include   <ctype.h>  
#include   <string.h>  


#define   MAXOP   100  
#define   NUMBER   '0 '  
#define   MAXVAL   100  
#define   BUFSIZE   100  
#define   NAME   'n '  


int   getop(char   s[]);  
void   push(double);  
double   pop(void);  
int   getch(void);  
void   ungetch(int   c);  
double   atof(char   s[]);  
void   mathfnc(char   s[]);  
void   clear(void);  


编译的时候提示double   atof(char   s[]);这一句     类型不匹配在 'atof '的宣告
怎么改一下才行啊,我刚学的,不是太会

[解决办法]
double atof( const char *string );

改成这样:
double atof(char* s);
传个数组名,也就是首地址指针过去。

热点排行