Those are pointers to arrays of characters. the equal ('=') operator only works on POD (plain old data) types or classes that implement the equal operator. For C-strings, you need the standard C library string copy functions like strncpy():

Code:
  strncpy(ptr->name,name,29);

  //...

  strncpy(ptr->company,company,49);