华为机试注意点

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

 

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

 

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

 

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

 

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

 

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

posted @ 2013-07-19 16:42  helloweworld  阅读(341)  评论(0编辑  收藏  举报