Code:
else if(first[lp]=="/0" && second[lp]!="/0")
should probably be
Code:
else if(first[lp]=='\0' && second[lp]!='\0')
Not sure if
Code:
data.get(*program[lp]);
is correct...

Not sure I understand why you need a for loop in charchech() ..