levels of contents

2018年4月5日
摘要: 7 1 计算职工工资 1.设计思路: 1.定义结构体struct emp; 2.使用for循环输入职工的各项数据 3.再用for循环输出职工姓名和应发工资; 2.流程图: 3.实验代码: include int main (void) { int i, n; struct emp{ char nam 阅读全文
posted @ 2018-04-05 22:58 linkzr 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 6 7 删除字符串中数字字符 1.设计思路: 1.使用while函数来查找。 2.找到数字不做处理,将非数字字符储存在新的数组中。 2.流程图: 3.实验代码: void delnum(char s) { int i=0,j=0; while( (s+i)!='\0') { if (!( (s+i) 阅读全文
posted @ 2018-04-05 21:43 linkzr 阅读(118) 评论(0) 推荐(0) 编辑