struct namect {
    char * fname;    //使用指针,而非数组
    char * lname;
    int letters;
};
void getinfo(struct namect * pst){
    char temp[8];
    gets(temp);
    pst -> fname = (char *)mallco(strlen(temp) + 1);
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-11-17
  • 2021-11-01
  • 2021-11-16
  • 2022-12-23
猜你喜欢
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
相关资源
相似解决方案