So for part of my assignment I have to make a table with 12 rows and 3 columns. I wrote that but I'm not getting the output I want so far. This is what I have.
for (int i = 0; i < 12; i++) {
cout << left << setw(12) << a[i] << setw(12) << b[i] << "\t" << setw(12) << c[i] << endl;
}
You could create a struct if you wanted to contain the values together. The struct would have a month, rainfall and Classification then have a list or array of those. 3 separate arrays also works