标题:求助:编程,使用指针将两个矩阵相加.
只看楼主
dragon311
Rank: 1
等 级:新手上路
帖 子:92
专家分:0
注 册:2005-3-27
 问题点数:0 回复次数:1 
求助:编程,使用指针将两个矩阵相加.
请问这个程序应该怎么写啊?
搜索更多相关主题的帖子: 指针 矩阵 相加 
2005-05-22 23:21
Rank: 1
等 级:新手上路
帖 子:255
专家分:0
注 册:2005-4-25
得分:0 
int a[][],b[][],*p1,*p2,*p3,c[][],i;

p1=a;
p2=b;
p3=c;
for (i=0;条件略;i++)*(p3+i)=*(p1+i)+*(p2+i);

/bbs/showimg.asp?BoardID=5&filename=2005-4/2005427111228529.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=5&filename=2005-4/2005427111228529.jpg');}" onmousewheel="return imgzoom(this);" alt="" /> 欢迎加入C语言QQ群698156 我们都是菜鸟乃至新手 坚信有一天定能展翅高飞 因为有着努力的决心 衷心盼望你的到来 让我们一起进步
2005-05-23 11:26



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-19064-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.600581 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved