~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Man is foolish.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Suspicious girls of Egypt inhale ancient dust while stalking smart actors.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

marred

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

spoon - feed

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get favs.

I put in sands of time.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Are you saying your peers frown upon the use of stimulants such as caffeine?

Kind of...yes. :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Assuming that the condition is "The loop should only be executed again (since its a do while loop) when the first is less than second AND the third is not equal to fourth OR when the number of iterations is still less than 5", you should have something like this:

// will be executed atleast once
do
{
    // something
}
while ((first < second && third != fourth) || (iterations < 5)) ;

Correct use of parantheses makes the expression logically correct as well as more readable.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

When on a project I drink 6 cups of tea / 10 cups of coffee. Accelerates my thinking process and increases the dependence of something which is frowned upon by my peers... ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hey there my friend, welcome to Daniweb.. :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

surf

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Linux is growing.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

An invention this

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Suspicious girls of Egypt cough fragile dust while imitating posh actors.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

ill communication - concussion

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get to decorate NYC with it.

I put in daffodils.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I am evil.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Jnabeel, the problem in your case is arising because of faulty logic. You need to place three loops to create a generic matrix multiplier. Read up on matrix multiplications here.

A sample implementation I came up with:

// UNTESTED

#include <iostream>
#include <iomanip>

int main()
{
    using namespace std;

    const int ROWS_FIRST_MATRIX = 3 ;
    const int COLS_SECOND_MATRIX = 3 ;
    const int COLS_FIRST_MATRIX = 3 ;

    int mat1[3][3] = { {1,2,3}, {4,5,6}, {7,8,9} } ;
    int mat2[3][3] = { {1,2,3}, {4,5,6}, {7,8,9} } ;
    int mat3[3][3] = { 0 };

    for (int i = 0; i < ROWS_FIRST_MATRIX; ++i)
    {
        for (int j = 0; j < COLS_SECOND_MATRIX; ++j)
        {
            for (int k = 0; k < COLS_FIRST_MATRIX; ++k)
            {
                mat3[i][j] += mat1 [i][k] * mat2 [k][j] ;
            }
        }
    }

    for (int i = 0; i < ROWS_FIRST_MATRIX; ++i)
    {
        for (int j = 0; j < COLS_SECOND_MATRIX; ++j)
        {
            cout <<  setw (5) << mat3 [i][j];
        }
        cout << endl ;
    }

    getchar ();
    return 0;
}
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Renowned girls of Egypt cough fragile dust while imitating slick cats.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Exist for a reason.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

turion

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get Avada Kevadra.

I put in some rice.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

brother jesus - blood brothers

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

the only thing

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get 13th of Friday.

I put in some candles.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

scent

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Die and let live.. ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

a place humans should not go - Heaven

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

counting the pebbles.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You are granted forgiveness.

I put in world peace.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Live and let live.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Renowned girls of Egypt cough moldy dust while imitating slick, Cairo cats.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Fight of Icarus - Iron Maiden

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Excellence..or was it excellent ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

squid - octopus

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Renowned pharaohs of Egypt exchange moldy dust while imitating slick, Cairo cats.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get quality sound.

I put in a priest.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

orient

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hello.

Its okay friends, everyone has his / her own opinions. Starting a distro war would just result in getting this thread closed or someone getting infracted. I hope you guys understand...

Have a nice day.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Why don't you just follow the outline of the Cooley-Tukey algo?

Do you seriously think he expected an answer...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

sushi - sweet

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

the same old

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

by running a

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

prudent

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Here to stay - Korn

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Midnight is when I am fully operational.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Your problem is that the newline character ( '\n' ) which remains in the input stream after you give the choice (yes or no) is picked up by the getline function and hence your program fails to run as expected.

Either place a getchar () after the cin >> response statement or resort to better methods of accepting input from the user.

And btw, using system ("pause") is not good choice for making the console window stop, better use getchar () again or cin.get () .

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

The end is here - Alterbridge

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Renowned pharaohs of Egypt exchange magic dust while breeding slick, Cairo cats.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get a gal called Kimberley.

I put in some strawberries.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

kind of help.