Stuck on a friend's challange

This is a discussion on Stuck on a friend's challange within the C++ Programming forums, part of the General Programming Boards category; So it would be: int *Matrix=(int *)malloc(size<<1); Well anyways I should have used a signed byte array...but the point is ...

  1. #31
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    So it would be:


    int *Matrix=(int *)malloc(size<<1);

    Well anyways I should have used a signed byte array...but the point is it does what you want it to do.

    I missed the stupid sizeof(int) or sizeof(int *Matrix) which is the same since Matrix is an integer pointer.

  2. #32
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Location
    Mt. Prospect, IL
    Posts
    2,572
    Bubba I was looking forward to a solution in x86 from you...what gives damnit!?

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #33
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Well....I'll get right on that....



Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 10-23-2006, 07:22 PM
  2. string array stuck:(
    By mass in forum C Programming
    Replies: 18
    Last Post: 05-22-2006, 04:44 PM
  3. Program stuck in infinite loop-->PLEASE HELP
    By Jedijacob in forum C Programming
    Replies: 5
    Last Post: 03-26-2005, 11:40 AM
  4. Stuck on random generating
    By Vegtro in forum C++ Programming
    Replies: 3
    Last Post: 10-01-2003, 07:37 PM
  5. stuck ky
    By JaWiB in forum Tech Board
    Replies: 2
    Last Post: 06-15-2003, 08:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21