okay the arrays are kicking my ass..

this progam is a multi demison array.. and i am to calculate the temperature distribution..
it works but idk if i did this right

i have alot of degrees and other information i just dont know where i would put them

help


//glenda hayes
//lab 7

#include <iostream>

using namespace std;



int main()
{
const int rows=9;
const int columns=9;//this is for the Outside
const int innerRows=3;
const int innerColumns=3;//this is the inner part of the machine
int f;//row
int j;//column
int k;//innerRows
int e;//innerColumns
int temp1;
int temp2;
int temp3;
int temp4;
int average;

for(f=0;f<rows;f++)
{
cout<<"Please enter in the tempeture.." <<endl;
cin>>temp1;
for(j=0;j<columns;j++)
{
cout<<"please enter in the tempeture.."<<endl;
cin>>temp2;

for(k=0;k<innerRows;k++)
{cout<<"please enter the tempeture.."<<endl;
cin>>temp3;
for(e=0; e<innerColumns; e++)
{cout<<"please enter the tempeture.."<<endl;
cin>>temp4;


}
}
}
}
average=temp1+temp2+temp3+temp4/4;
cout<<average;

system("pause");
return 0;
}
A few issues here, but no arrays.

I think the array section here is pretty good (?)

http://www.cplusplus.com/doc/tutorial/arrays/


i have numbers that go in to it..

the top part of the thing the temp is100degree
the bottom is 32
the inner is 212
right side from 32 to 100
idk what the formula is and i dont know where theses numbers going
Topic archived. No new replies allowed.