惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
U
Unit 42
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
小众软件
小众软件
V
Visual Studio Blog
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
博客园 - 叶小钗
GbyAI
GbyAI
爱范儿
爱范儿
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
D
DataBreaches.Net
博客园_首页
D
Docker
A
About on SuperTechFans
G
Google Developers Blog
I
InfoQ
T
The Blog of Author Tim Ferriss
V
V2EX
博客园 - Franky

博客园 - laifangsong

请问福州哪里卖打折计算机图书,又可按原价开发票的? 关于目录访问的iis配置问题 福州招聘asp程序员 qq聊天的小秘密 吃鱼引发的问题和中国式管理 为什么点击flash链接到本页面,Request.Referrer将无法获得url来源 观察。总结 - 思想(一) 在csdn上看到奶牛问题,写了下算法 C#(1.1)邮件发送类,功能全面,调用灵活、方便 思考_070614 asp中JMail(4.4)发送邮件 单个文件上传类(可以自定义配置) iis6(win2003)中的aspnet_client和iis5,5.1(win2000,winxp)不一样,系统迁移时一定要注意。 看似诡异的session赋值错误 不错的分页存储过程(转) 委托:两个例子(主人仆人、打游戏) 取奇数游戏(c) 用递归算法求和为指定值N的所有组合 汉若塔问题(c)
矩阵相乘(c)
laifangsong · 2007-02-08 · via 博客园 - laifangsong

/*
  矩阵相乘
*/
#include 
"stdio.h"
#include 
"conio.h"#define row 2
#define col 3

main()
{

int c[row][row]={0};
    
int a[row][col]={
                        {
1,2,3},
                        {
4,5,6}
                    };
    
int b[col][row]={
                        {
1,2},
                        {
3,4},
                        {
5,6}
                    };
    
    
int i,j,k;for(i=0;i<row;i++)
    {
       
for(j=0;j<row;j++)
       {
           c[i][j]
=0;for(k=0;k<col;k++)
           {
               c[i][j]
+=a[i][k]*b[k][j];
           }

       }
    }

    output(a,row,col);
    output(b,col,row);
    output(c,row,row);
    
    getch();
}

output(

int *arr,int _row,int _col)
{
    
int i=0;
    
while(i<_row*_col)
    {
        
if(i%_col==0)printf("\n");
        printf(
"%d ",*(arr+i));

        i

++;
    }
    printf(
"\n==================\n");
}