void vConvertMsg(char *pInputStr, long lInputLen, char *pOutputStr);

 

1.pOutputStr无需在函数中申请内存。

 

2.注意pOutputStr最后要加'\0'.

 

3.可以再func.cpp中再添加其他子函数。

 

4.lInputLen在函数中并不必须被使用,可以使用'\0'判断pInputStr是否到达字符串尾。

 

5.字符类型判断头文件<ctype.h>.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-11-21
猜你喜欢
  • 2022-02-05
  • 2022-12-23
  • 2021-06-22
  • 2021-08-17
  • 2021-11-05
相关资源
相似解决方案