レス書き込み
スレへ戻る
写
レス栞
レス消
スレを勃てるまでもないC/C++の質問はここで 25
[隔離病棟]
©2ch.net
PC,スマホ,PHSは
ULA
べっかんこ
公式(スマホ)
公式(PC)
で書き込んでください。
名前
メール
引用切替:
レスアンカーのみ
>>76 > 書いたぞ。 > > #include<iostream> > #include<vector> > using namespace std; > class Point{ > public: > int x,y; > Point(int a,int b){x=a;y=b;}}; > ostream &operator<<(ostream &o,Point p){o<<"("<<p.x<<","<<p.y<<")";return o;} > vector<vector<Point> > point_list; > init_list(){ > vector<Point> l; > for(int x=0;x<9;++x){ > for(int y=0;y<9;++y)l.push_back(Point(x,y)); > point_list.push_back(l);l.clear();} > for(int y=0;y<9;++y){ > for(int x=0;x<9;++x)l.push_back(Point(x,y)); > point_list.push_back(l);l.clear();} > for(int X=0;X<9;X+=3){for(int Y=0;Y<9;Y+=3){ > for(int x=0;x<3;++x){for(int y=0;y<3;++y){ > l.push_back(Point(X+x,Y+y));}} > point_list.push_back(l);l.clear();}}} > int main(){ > init_list(); > for(int i=0;i<point_list.size();++i){for(int j=0;j<point_list[i].size();++j){ > cout<<point_list[i][j]<<" ";} > cout<<endl;} > }
ローカルルール
SETTING.TXT
他の携帯ブラウザのレス書き込みフォームはこちら。
書き込み設定
で書き込みサイトの設定ができます。
・
ULA
・
べっかんこ(身代わりの術)
・
べっかんこ(通常)
・
公式(スマホ)
・
公式(PC)[PC,スマホ,PHS可]
書き込み設定(板別)
で板別の名前とメールを設定できます。
メモ帳
(0/65535文字)
上
下
板
覧
索
設
栞
歴
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.013s