i have this array
say the value JJ123Code:char subcode[CODELENGTH];
i also have
Code:char subjectcode[MAXSUBJECTS][CODELENGTH];
i have this for loop and it doesnt work
can some1 help me pleaseCode:inFile>>subcode; cout<< "Subject Code" << subcode; for(int p=0;p<CODELENGTH;p++) { subjectcode[MAXSUBJECTS][0+p] = *subcode; cout << subjectcode[0][CODELENGTH]; }
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



LinkBack URL
About LinkBacks


