#
include
<iostream
>
using
namespace std;
int i
=
1;
int j
=
2;
int main()
{
int i
=
9;
//C/C++中合法,Java中出現編譯錯誤:變量已定義
int j
= j;
//C/C++中雖然合法,可是j在main內部從新聲明,致使j的值未知。
cout
<< i
<< endl;
cout
<< j
<< endl;
return
0;
}