
Lesson 11-4: Two-Dimensional Arrays
266 | Chapter 11
Name __________________________________________ Date _______________________
Section _________________________________________
This lesson uses program Chart2.
// Program Chart2 manipulates a two-dimensional array
// variable.
#include <iostream>
#include <fstream>
using namespace std;
const int ROW_MAX = 8;
const int COL_MAX = 10;
typedef int ItemType;
typedef ItemType ChartType[ROW_MAX][COL_MAX];
void GetChart(ifstream&, ChartType, int&, int&);
// Reads values and stores them in the chart.
void PrintChart(ofstream&, const ChartType, int, int);
// Writes values in the chart to a file.
int main ()
{
ChartType ...