yo yo
yo yo
Last edited by BamaMarine06; 03-01-2010 at 03:28 AM.
Here i is the row of the two dimensional array "grades".Code:for( i = 0; i < NUM_STUDENTS; i++) for( j = 0; j < NUM_TESTS; j++) grades[i][j] = value;
j is the column of the grades array
The above code snippet will describe an idea about storing the values in a two dimensional array.
Last edited by thillai_selvan; 03-01-2010 at 12:55 AM.
So, do i define NUM_STUDENTS before int main(void)?
Yeah.!!!
Sample:
Code:#define NUM_STUDENTS 100 #define NUM_TESTS 5
Store each word as a row of a char array, making sure a null character is stored at the end of each word so it can be treated as a string (up to 30 words with 20 chars each should be sufficient, no need to check for going past the end). "This would be defined as...................................#define NUM_LETTERS 20
#define NUM_WORDS 30, correct?
Yeah. Great!!
Thank you so much. Brand new to this and am completely lost. Read the textbook and took tutorial but not understanding.
Welcome Bama...
I suggest you to go through the following URL which lets u get familiar with two dimensional arrays.
TWO-DIMENSIONAL ARRAYS.
This is outstanding!!!!! Ya'll are some real good people in here looking out for us "Newbies". Thankx, also real quick. Got a link for a newbie that cannot understand c programming. A place that would baby step me through it? I did the tutorial son cprogramming but still not connecting.