User Profile

Collapse

Profile Sidebar

Collapse
geo20
geo20
Last Activity: Jan 19 '14, 04:08 PM
Joined: Oct 13 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Iterate a 2D matrix in order to exchange columns and rows using pointers

    Hello! I am trying to iterate a matrix in order to exchange rows and columns element by element. Although the function that exchanges the rows has come out well, i don't seem to figure out how to do the same on columns.The columns switch for a matrix like
    1 2 3
    1 2 3
    1 2 3
    if i try to switch column 3 and 2,is:
    1 3 2
    1 3 2
    1 2 3

    Any suggestion would be much appreciated. Here...
    See more | Go to post
    Last edited by geo20; Jan 19 '14, 03:31 PM.

  • geo20
    started a topic C++ Binary Multiplication Program
    in C

    C++ Binary Multiplication Program

    Hello! I'm writing a program that multiplies binary numbers but i want to avoid using Booth algorithm.I'm trying to stick to the oldfashioned way of writing a line of 0's if the digit of the multiplier is 0 and writing the multiplicant again if the digit digit is 1, and make the sum of all those results to obtain the result of the multiplication. Now, the question is, how should i write the code to tell the program to look at each digit of the multiplier?...
    See more | Go to post
No activity results to display
Show More
Working...