storing and comparing EEPROM

Hello guys,

i am making barcode attendance system. i have successfully printed barcode( student roll number in barcode ) on LCD. now i want to print students name of corresponding roll number. for that i have stored array. now how to tell arduino to print name of corresponding roll number.

Here is code by me is it right?

incude<EEPROM.h>

char name[] = {name1, name2, name3};

char roll_number[] = {num1, num2, num3};

That code doesn't compile, so no, it isn't right.

Please remember to use code tags when posting code