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