矩阵的加法运算
来源:互联网 发布:数据库物理设计图 编辑:程序博客网 时间:2024/05/16 01:35
#include<stdio.h>void main(){int a[3][3],b[3][3],i,j;for(i=0;i<3;i++){for(j=0;j<3;j++){scanf("%d",&a[i][j]);}}for(i=0;i<3;i++){for(j=0;j<3;j++){printf("%5d",a[i][j]);}printf("\n");} printf("------------华丽风格线-----------------------\n");for(i=0;i<3;i++){for(j=0;j<3;j++){scanf("%d",&b[i][j]);}}for(i=0;i<3;i++){for(j=0;j<3;j++){printf("%5d",b[i][j]);}printf("\n");}for(i=0;i<3;i++){for(j=0;j<3;j++){a[i][j]+=b[i][j];}}printf("------------华丽风格线-----------------------\n"); for(i=0;i<3;i++) {for(j=0;j<3;j++){printf("%5d",a[i][j]);}printf("\n");}}
0 0
- 矩阵的加法运算
- 分块矩阵的加法和乘法运算
- 稀疏矩阵的加法、减法、转置运算
- 线性代数·矩阵的加法减法乘法运算简单实现
- 稀疏矩阵的各种基本运算并加法乘法
- 矩阵的加法
- 虚数的加法运算
- 整数的加法运算
- jQuery的加法运算
- jQuery的加法运算
- 指针的加法运算
- java第二周作业--实现矩阵的加法和乘法运算
- 稀疏矩阵的十字链表表示法及其加法减法运算算法
- 矩阵加法的CUDA实现
- 矩阵的加法和乘法
- 36进制数的加法运算
- 大整数的加法运算
- 十进制大数的加法运算
- Java中外部类访问内部类的方法
- Linux内核中的进程组及会话 http://blog.csdn.net/daniel_h1986/article/details/6067685
- POJ 3186 Treats for the Cows(区间DP)
- 玩转vsftpd服务器的四大高级配置
- 1103 host is not allowed to connect to this mysql server
- 矩阵的加法运算
- QT中的内存管理一个小经验
- C#学习日记06---数据类型 之 浮点数类型
- hdu 5486 Difference of Clustering
- HTML5 Form Data 对象的使用-jQuery
- UIScrollView与NSTimer计时器、分页指示器控件的使用
- Java 用hashmap统计词频
- 使用多态的注意事项
- 定位服务 CLLocationManager 的简单用法