Search:

Type: Posts; User: akidamo

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    3,729

    Yea I am using borland 5.5 and compiling it in...

    Yea I am using borland 5.5 and compiling it in dos. It was just that I had an example program I wanted to run, to see what the output was so I could maybe understand it better, and it included that...
  2. Replies
    7
    Views
    3,729

    ahhkay thanks, when I use it thought my compiler...

    ahhkay thanks, when I use it thought my compiler is saying unable to open include file unistd.h
    is there anywhere I could get this to put it amond my libraries?
  3. Replies
    7
    Views
    3,729

    While I am here, I came across the library...

    While I am here, I came across the library #include <unistd.h>
    anyone know what it is for?
  4. Replies
    7
    Views
    3,729

    oh, I already have done o/e and o/e merge sort (i...

    oh, I already have done o/e and o/e merge sort (i think), just need a few more.
  5. Replies
    7
    Views
    3,729

    parallel sorting

    Hi,

    I am interested in implementing parallel sorting algorithms for comparison. They just have to sort a list of integers.

    Though I am not very familiar with the whole area, can anyone suggest...
  6. Replies
    11
    Views
    1,619

    How do I add two arrays together into a new...

    How do I add two arrays together into a new array?

    Say I have
    a1[3 5 6] and
    a2[7 8 9]

    and i want to add them together so I have a3 [3 5 6 7 8 9]?
  7. Replies
    11
    Views
    1,619

    oh god please why am i so dumb :( if anyone...

    oh god please why am i so dumb :(
    if anyone knows where i can find sample code on an o/e merge sort, it would be great.
    I don't wanna copy I just want to comprehend.
    I already have my own oe sort...
  8. Replies
    11
    Views
    1,619

    is there any functions that allow me to cut or...

    is there any functions that allow me to cut or chop an array.
  9. Replies
    11
    Views
    1,619

    ahh thanks, i see that using a = (int*)...

    ahh thanks,

    i see that using

    a = (int*) malloc(n*sizeof(int)); helped.

    I'll maybe post my full code a bit later once I work on it a bit more first.
  10. Replies
    11
    Views
    1,619

    Hiya yea I was noticing a problem with that, my...

    Hiya yea I was noticing a problem with that, my original O/E sort works, without any splitting, although it isn't very correct, because:

    if I have

    int a[];

    I get an error: size of a is...
  11. Replies
    11
    Views
    1,619

    oh but mostly pleaseee......first things first ...

    oh but mostly pleaseee......first things first

    say i have a o/e sort function.

    and I want a split function that splits my array, and sends both halves to the o/e function. How do i do this?
    ...
  12. Replies
    11
    Views
    1,619

    Just adding..... cus if I split the array into...

    Just adding.....

    cus if I split the array into two say 3 5 4 7 2 8

    it will end up 345 and 2 7 8

    merged it will be: 3 4 5 2 7 8 or will it?

    so yea its how can I get the whole list sorted?...
  13. Replies
    11
    Views
    1,619

    Sorting & Spliting

    Hi there,

    I want to adjust my o/e transposition sort algorithm, so that before it sorts the list using odd and even phases, it splits it into two first.

    But i've been trying it for ages now and...
  14. Thread: spaces

    by akidamo
    Replies
    3
    Views
    834

    cool thanks, also, how do you capture the...

    cool thanks,
    also,
    how do you capture the length of an int array
    ... if someone enters 2 1 15

    cus i want to do the for loop like this:

    for (i=0; i<length; i++)

    or could i do the above
  15. Thread: spaces

    by akidamo
    Replies
    3
    Views
    834

    spaces

    I'm nearly there with everything, I've been working on my program alot, and I've learnt so much from all your help thanks, couldn't have done it without.But still some trouble...

    When the user...
  16. Replies
    24
    Views
    3,438

    yay

    ok figured out how to get the right answer,

    after using alot of temps!


    printf("\n Decryption: \n");
    for (i=0; i<length; i++) {
    temp2 = (double)pow(ciphertext[i],7);
    temp3 =...
  17. Replies
    6
    Views
    2,049

    lol thanks very much so simple! helped me figure...

    lol thanks very much so simple!
    helped me figure out something harder tho :)
  18. Replies
    6
    Views
    2,049

    Ok, Thanks for pointing that out. I noticed...

    Ok, Thanks for pointing that out.
    I noticed there was supposed to be a round function in the math lib, but I don't appear to have it.
    I looked at another few past posts but I am still a bit...
  19. Replies
    6
    Views
    2,049

    rounding up a double.

    Hey again,

    is there anyway I can round up a double, like:

    2367.4242 to a long 2367
  20. Replies
    24
    Views
    3,438

    Yea i figured size was the problem, The answer...

    Yea i figured size was the problem, The answer for 26^7 is 8031810176. I just wanted to know was there a way to get around it.
  21. Replies
    24
    Views
    3,438

    It seems you cant modulus a float or double, and...

    It seems you cant modulus a float or double,
    and when i do this....


    int i;
    double temp2;
    int cseven[30];
    long temp3;
  22. Replies
    24
    Views
    3,438

    nope now im gettin the wrong answer again :(

    nope now im gettin the wrong answer again :(
  23. Replies
    24
    Views
    3,438

    ahhhhh!

    ok i donno :(


    int i;
    double temp2;
    double cseven[30];

    printf("\n Decryption: \t");
    for (i=0; i<length; i++) {
    temp2 = pow(array1[i],7);
  24. Replies
    24
    Views
    3,438

    ok wait i have to use something larger than an...

    ok wait i have to use something larger than an int dont i?
  25. Replies
    24
    Views
    3,438

    ok just while im in the middle of trying stuff...

    ok
    just while im in the middle of trying stuff then....
    I noticed that when I have

    temp = pow(array1[i],3);

    it calculates the right number,

    but if I have
Results 1 to 25 of 36
Page 1 of 2 1 2