void openNCB(); change from d equals to 1 TO give d the value of 1 

Old: d == 1;
New: d = 1;