摘要:华为2道机试题:/**
@date:2010/09/14
@author:weedge
@comment:
1. 识别字符串中的整数并转换为数字形式
问题描述: 识别输入字符串中所有的整数,统计整数个数并将这些字符串形式的整数转换为数字形式整数。
要求实现函数: void take_num(const char *strIn, int *n, unsigned int *outArray)
【输入】 strIn: 输入的字符串
【输出】 n: 统计识别出来的整数个数 outArray:识别出来的整数值,其中outArray[0]是输入字符串中从左到右第一个整数...
阅读全文
posted @ 2011-05-19 15:32
浙公网安备 33010602011771号