※ 引述《mmkider.bbs@bbs.nsysu.edu.tw (9)》之銘言:
> > 直接以變數作為大小宣告陣列
> > 這個只有C可以,C++不行
> 2. c++ 也行喔
> #include<iostream>
> using namespace std;
> int main()
> {
> int abc;
> cin>>abc;
> int ggg[abc];
> cout<<sizeof(ggg)<<endl;
> return 0;
> }
> it's ok to compiling this file with g++-3.4.2 .
it's g++'s language extension. . .
..
--
@, ●秘密情人● (bbs.cse.ttu.edu.tw)
~\ ◆ Post From: summer93a.ttu.edu.tw ◆