i have this array
Code:
char subcode[CODELENGTH];
say the value JJ123
i also have
Code:
char subjectcode[MAXSUBJECTS][CODELENGTH];
i have this for loop and it doesnt work
Code:
inFile>>subcode;
cout<< "Subject Code" << subcode;
for(int p=0;p<CODELENGTH;p++)
{
subjectcode[MAXSUBJECTS][0+p] = *subcode;
cout << subjectcode[0][CODELENGTH];
}
can some1 help me please
also if i enter it all in a 2d array.. is it possible to search it.. and retrieve the first line..
that is.. supose the array ends up being
J1234
J2314
J1235
if some1 types J1234 will i be able to search it and retrieve ...
thankyou