Thread: C matrices: what to return ?

  1. #1
    Registered User
    Join Date
    Nov 2018
    Posts
    18

    Question C matrices: what to return ?

    Hello everyone I need to get some help on my matrices functions.
    Anyone wanting to help me (will not take more than 10 minutes), please send me a private message (because I cannot display the functions here for readability). The thing is that I have a print_matrix function and a transpose_matrix function, which are both void. How can I use print_matrix on transpose_matrix if there is no return in transpose_matrix ? what should print_matrix take as argument ? Send me a private message if you have an idea I will send you the whole subject) but since I am a beginner it should not take you more a than 10 min I think it is evident

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You pass the output matrix as a parameter to transpose_matrix.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Return pointer to a vector of objects as a function return
    By Adaptron in forum C++ Programming
    Replies: 14
    Last Post: 04-07-2016, 09:23 AM
  2. Replies: 1
    Last Post: 07-04-2007, 12:20 AM
  3. Replies: 12
    Last Post: 04-07-2007, 11:11 AM
  4. Replies: 6
    Last Post: 04-09-2006, 04:32 PM
  5. Matrices
    By scottmanc in forum C++ Programming
    Replies: 0
    Last Post: 11-18-2003, 06:14 PM

Tags for this Thread