TC工程文件问题
这是我在钱能编的<<C++程序设计教程>>第六章里的第一个例子.
是建立一个工程,然后见两个文件,
是
//******************************
//** ch6_1.cpp **
//******************************
# include <iostream.h>
void fn1 ()
void fn2()
int n ;
void main()
{
n=3;
fn1;
cout<<n<<endl;
}
void fn1()
{ fn2
}
// **************************
//*** ch_1_1.cpp **
//****************************
extern int n;
void fn2()
{
n=8;
}
我运行就报错:
er ch6_1.cpp 3: Declartion syntax error
errror ch6_1.cpp 13: Function 'fn2' should have a prototype .
急急