Thread: Stuck on a friend's challange

  1. #31
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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
    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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Well....I'll get right on that....



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, 12:40 PM
  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