c34.cpp
来自「此文件可以能帮你求体积」· C++ 代码 · 共 27 行
CPP
27 行
// c34.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "Array.h"
#include <iostream.h>
int main(int argc, char* argv[])
{
int width = 5;
int length = 6;
Array a( width, length );
for ( int i = 0; i < width; i++ )
for ( int j = 0; j < length; j++ )
a.Access( i, j ) = i + j;
for ( i = 0; i < width; i++ )
{
for ( int j = 0; j < length; j++ )
cout << a.Access(i, j) << ' ';
cout << endl;
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?