|  | 
 
| 
#include "stdafx.h"
x
马上注册,结交更多好友,享用更多功能^_^您需要 登录 才可以下载或查看,没有账号?立即注册  #include<stdio.h>//(input、output)""和<>声明方式不同
 #include"stdio.h";//预处理指令
 #include<math.h>;
 #include<iostream>;
 #define M 10//宏定义后面没有分号,只要出现M,则预处理会把所有M替换成10.宏主要容易理解,而tpyedef 是一种类型定义
 
 //自己实现pow函数并尝试验证
 double power( double x,double y);
 
 void main(void){
 double x = 2.0,y = 3.0,z;
 z = power(x,y);
 printf("%.lf to the power of %.lf is %lf\n",x,y,z);
 }
 
 double power( double x,double y){
 double z;
 while(y){
 z*=x;
 --y;
 }
 return z;
 }
 请问为什么报错没有声明?代码里明明声明了啊
 | 
 |