螺旋输出N*N矩阵
摘要:
1 #include <iostream> 2 #include <vector> 3 using namespace std; 4 int main() { 5 int x[] = { 0, 1, 0, -1 }; 6 int y[] = { 1, 0, -1, 0 }; 7 int n; 8 int pos_x = 0; 9 int pos_y = 0;10 cin >> n;11 int counter = 1;12 vector<vector<int> > A(n, vector<int>(n, 0));13 i. 阅读全文
posted @ 2012-09-20 21:30 kakamilan 阅读(339) 评论(0) 推荐(0)
浙公网安备 33010602011771号