警告]数据定义没有类型或存储类[默认启用]

Fie*_*ine 2 c storage class definition

对于大学,我需要使用提供的模板创建一个基本的桌面计算器.我已经设法完成大部分工作,但第9行有这个错误消息(iScreenSetup();:

"[警告]数据定义没有类型或存储类[默认启用]"

有小费吗?

#include "stdio.h"
#include "conio.h"
#include "stdlib.h"
#include "string.h"



/* Prototypes */
iScreenSetup();
iDataCapture();
iProcessData();
iReport();
iExit();

/* Declare and initialise global variables */
float fNum1 = 0.0;
float fNum2 = 0.0;
float fAns = 0.0;
int iOption = 0;



int main(void)
{
/* Set up the screen */
iScreenSetup();
/* Prompt the user and capture the data */
iDataCapture();
/* Process the data */
iProcessData();
/* Generate the report */
iReport();
/* Exit routine */
iExit();
} /* End of main */
Run Code Online (Sandbox Code Playgroud)

nvo*_*igt 7

您的原型缺少返回类型.如果没有任何东西要归还,那就是void.

/* Prototypes */
void iScreenSetup();
Run Code Online (Sandbox Code Playgroud)