Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 11-30-2011, 05:18 PM   #1
Solid State Member
 
Join Date: Jun 2011
Posts: 13
Default Multidimensional Arrays Question

[TABLE="class: tborder, width: 100%, align: center"]
[TR]
[TD="class: alt1"] Hello, I am having a tough time with this problem in my C++ course and was wondering if I could have help with it. I'd appreciate it!

(Algebra: multiplying two matrices) Write a function to multiply two matrices a and b and save the result in c. The header of the function is...

#include <cstdlib>
#include <iostream>
#include <iomanip>

using namespace std;

#define N 3

void multiplyMatrix (const double a[][N],
const double b[][N],
double c[][N]);

void printMatrix (const double a[][N]);

int main(int argc, char *argv[])
{
[/TD]
[/TR]
[TR]
[TD="class: alt2"] [/TD]
[TD="class: alt1, align: right"] [/TD]
[/TR]
[/TABLE]
__________________

Kearsed is offline   Reply With Quote
Old 11-30-2011, 05:23 PM   #2
Solid State Member
 
Join Date: Jun 2011
Posts: 13
Default Re: Multidimensional Arrays Question

***Each element Cij is ail x b1j + ai2 x b2j + ai3 x b3j Write a test program that prompts the user to enter two 3 x 3 matrices and displays their product.***
Kearsed is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Electronic goods? puddleface Social Lounge | Off Topic 1 08-06-2004 07:29 AM


All times are GMT -5. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0