摘要: /* 例 4.19 电文加密,每个字母转换为字母表中循环右移的第三个字母, 解法一 */ #include "stdio.h"void main(){ char s[256]; int i=0; printf("请输入一行字符,之后按回车键\n"); gets(s); while(s[i]!=0) { if(s[i]>=65 && s[i]=88 && s[i]... 阅读全文
posted @ 2008-04-17 16:58 emanlee 阅读(1819) 评论(0) 推荐(0) 编辑
摘要: /* 4.16 5*5矩阵中每行的绝对值最大值,与同行对角线交换*/ #include "stdio.h" #include "math.h"void main(){ int a[5][5]={{1,2,3,4,-5},{3,5,-2,4,2},{4,1,2,3,-2}, {1,3,-2,4,6},{2,2,0,7,4}} ; int i,k,max,s... 阅读全文
posted @ 2008-04-17 16:15 emanlee 阅读(2789) 评论(0) 推荐(0) 编辑