摘要: 把"00:90:8A:1D:30:51"转换成"00-90-8A-1D-30-51",如何格式错误,显示出格式错误的种类,有些不规范的转换成规范的格式,例如,"1234:8F:90-D1:76",为不规范格式转换成标准格式。#include #include #include using namespace std;void getStandardMac(char str[],char s[]){ int count=0; int temp=0; int pre=1; char c; for(int i=0;i='0' 阅读全文
posted @ 2013-10-15 16:31 xshang 阅读(6840) 评论(0) 推荐(0) 编辑