Thread: Problem with 'Matrix Multiplication using Pointers'

  1. #16
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    for anybody to understand
    Code:
    void display(int(*x)[10],int *p1,int *p2)//printing matrix
    {
        int i,j;
        for(i=0;i<*p1;i++)  {
            for(j=0;j<*p2;j++) {
                printf("\t%d",x[i][j]);
            }
            printf("\n");
        }
    }
    why you pass the sizes of the array as a pointer is a mystery to me
    kurt

  2. #17
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Look "JennyG", you're coming across as one of those idiots who just continually posts their broken code and ignores everyone's advice, hoping that someone will eventually just get sick of you repeating the same crap and write it for you. Guess what? It ain't gonna happen!

    I strongly suggest you go back over every post on this thread and try to apply all the advice you have been given. Where you get stuck applying that advice, ask questions about that advice. Until you do that, I'm done wasting any time on you!
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  3. #18
    Registered User
    Join Date
    Jul 2012
    Posts
    10
    Thanks who have replied with their valuable comments.

    Also, yes I kinda agree with you all (those who have PM me) this guy "iMalc" does look like a psycho path, will ignore him
    (Thanks for giving me heads up)

  4. #19
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by JennyG
    Also, yes I kinda agree with you all (those who have PM me) this guy "iMalc" does look like a psycho path, will ignore him
    (Thanks for giving me heads up)
    On the contrary, I think iMalc gave good advice in this thread, though it was rather hard hitting and a little of a rant at one point. I don't actually know if iMalc is or is not a psychopath, being a professional software developer rather than a mental health professional unlike those mysterious people who messaged you privately, but I can tell you that you ignore his good advice at your own peril.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #20
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    Quote Originally Posted by JennyG View Post
    Also, yes I kinda agree with you all (those who have PM me) this guy "iMalc" does look like a psycho path
    What is wrong with you? Calling someone who provides you with free help (albeit bluntly) a psychopath is stupid on so many levels, and I highly doubt that anyone "PM you" in agreement. It's not his fault that you won't fix your ........ty code!

    Quote Originally Posted by JennyG View Post
    will ignore him
    (Thanks for giving me heads up)
    Saying specifically that you'll "ignore someone" is very immature. Also, you've been ignoring his advice the whole time, so I can't possibly see what you'll do different.

    Assuming you're not a troll, you should go back to the *very* basics of C, reading tutorials and using a more modern compiler.

  6. #21
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Quote Originally Posted by JennyG View Post
    Thanks who have replied with their valuable comments.

    Also, yes I kinda agree with you all (those who have PM me) this guy "iMalc" does look like a psycho path, will ignore him
    (Thanks for giving me heads up)
    Bravo, well played! Got sucked right into that one.

    Perhaps both of us will learn something from this.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 05-14-2011, 09:28 AM
  2. Problem in Matrix Multiplication (Using friend function)
    By wantsree in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2011, 08:03 AM
  3. Hi, problem with pointers and matrix multiplication
    By Phadelity in forum C Programming
    Replies: 2
    Last Post: 11-23-2010, 11:53 PM
  4. Matrix Multiplication
    By Warped1 in forum C++ Programming
    Replies: 2
    Last Post: 11-05-2001, 11:48 PM