im a begginer with this kind of program can you help me how to use the 2d array in c++...because i dont know how to make program in 2d array...this would be the output...
MIDTREM GRADE
//input 5 int
[1] 90
[2] 99
[3] 98
[4] 99
[5] 89
FINAL GRADE
//input again 5 int
[1] 87
[2] 88
[3] 78
[4] 99
[5] 98
//then the output would be the
[1] 90 87
[2] 99 88
[3] 98 78
[4] 99 99
[5] 89 98
//end of program...
please help me... hope somebody help me with this problem
wat would be the program that i must use..?
Initialize two one dim arrays so that each array has one data set.
Use a for loop to print a[i]" "b[i] "\n"; with an ending condition of i<5;
......or must you use a two dim array to solve?
ok cnoeval...
@jhen try making a 2d array like this: arrayA[index] and arrayB[index];
then you will use a nested for loop a loop within a loop... well the algorithm goes like this... the loop goes by column... and the outer loop will determine the column and the inner loop will input for the rest of the index inside the said column right???? jah get it?
you know what thanks for that info now i know it....thanks guys!!!
now guys could you help me again on how to make a program of COUNTRY code like updating and declaring new value on it....i dont really yet understand the process of array thats why i dont know how to use it....
thanks=))