错误1:C++显示应输入声明怎么办啊? 错误2:error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
#include"stdafx.h"#include<iostream>usingnamespacestd;inti=0;voidfunc();voidmain();{f...
#include "stdafx.h"
#include<iostream>
using namespace std;
int i = 0;
void func();
void main();
{
func();
}
void func()
{
int i = 10;
{
int i = 100;
{
int i = 1000;
cout << "i is" << endl;
}
cout << "i is" << i << endl;
}
cout << "i is" << i << endl;
} 展开
#include<iostream>
using namespace std;
int i = 0;
void func();
void main();
{
func();
}
void func()
{
int i = 10;
{
int i = 100;
{
int i = 1000;
cout << "i is" << endl;
}
cout << "i is" << i << endl;
}
cout << "i is" << i << endl;
} 展开
1个回答
2016-09-08
展开全部
void main();///////////这个;号删除
{
func();
}
{
func();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询