Search:

Type: Posts; User: Supra

Search: Search took 0.01 seconds.

  1. Thread: Bucket hashing

    by Supra
    Replies
    7
    Views
    7,250

    Data Structures-A pseudocode Approach with c but...

    Data Structures-A pseudocode Approach with c
    but there is no code inside, just algorithm

    And all i want to do is trying to make an 2d-array and store
    the elements into the row'th (bucket) and...
  2. Thread: Bucket hashing

    by Supra
    Replies
    7
    Views
    7,250

    thanx Quzah, but can you give me an example of...

    thanx Quzah, but can you give me an example of passing by reference ? And I put my whole code maybe you can figure out whats wwrong with it

    thanx in advance!



    #include <ctype.h>
    #include...
  3. Thread: Bucket hashing

    by Supra
    Replies
    7
    Views
    7,250

    well i wrote a insert hashing function by using...

    well i wrote a insert hashing function by using array, but it doesn't work
    can anyone tell me whats wrong with it?



    Data type and define:

    #define SLOT 3
    #define TableSize 256
  4. Thread: Bucket hashing

    by Supra
    Replies
    7
    Views
    7,250

    Bucket hashing

    Can anyone tell me where I can find the sample insert code
    for Bucket hashing? I cna't find in my book, and i'm so mess up with hashing. thanx a lot
  5. Replies
    13
    Views
    10,709

    thanx you all very much, but i still have...

    thanx you all very much, but i still have questions about masking
    number
    I wrote a small program:


    #include <stdlib.h>
    int main(void)
    {
    unsigned char i='a';
    unsigned char b='c';
  6. Replies
    13
    Views
    10,709

    really big thanks to you all!! my last two...

    really big thanks to you all!!
    my last two questions are

    1. how can i "and" or "or" those binary in c#?

    ex:


    1100110
    (and) 0011100
  7. Replies
    13
    Views
    10,709

    big thanx for you guys!! now another question is...

    big thanx for you guys!!
    now another question is how can I mask those binary #
    for ex:

    111000101
    if i want shift right to 3, it will become
    101111000,
    just like what shr does in assembly...
  8. Replies
    13
    Views
    10,709

    convert word to binary

    How can I convert a word such as 'A' to the number represented in ASCII ? Another question is how can i convert a decimal number to binary number? Is any function in c allows us to do that?

    Thanx...
  9. Replies
    1
    Views
    1,289

    stop read in newline

    hi all, i'm so mess up w/ this pro.
    suppose a data file File.dat:

    a b c d e
    f g

    how can i stop read those character when matching the newline?
    note: # of words must be counted

    my code:
  10. Replies
    2
    Views
    3,221

    Read Array pro!!Plz help!!

    Hi all, i got trouble reading array file

    sample file to be read:

    ---------------------------------
    START 3
    . 000 2 100 . 000 . 000
    0 100 1 050 . 000 . 000
    . 000 . 000 . 000 . 000
    . 000 ....
  11. Replies
    3
    Views
    1,001

    Thanx a lot novacain!! I'm kinda get that but...

    Thanx a lot novacain!!
    I'm kinda get that
    but i still confuse about what you said:

    >>fgets(word, 5, infile);
    and then try to read 4/5 characters into the array that will only hold 2.
    ...
  12. Replies
    3
    Views
    1,001

    Having pro with String & array!!

    I try to make a string array with 5 element to access data file, but I'm so mess up!! So can somebody take a look at my code and help me out? thanx for any help.

    sample data file:a.dat


    aa bb...
  13. Replies
    0
    Views
    2,449

    data read problem

    Well, I have trouble with reading data file by using binary search tree. I can't read file! Can some body help me out plz!!

    sample data file:



    XYZ
    3
    John Go
    Supra YA
  14. Replies
    3
    Views
    2,054

    but how can i find the repeat decimals?

    but how can i find the repeat decimals?
  15. Replies
    3
    Views
    2,054

    Well, it is a contest problem... oringinal...

    Well, it is a contest problem...
    oringinal problem set is here:

    http://isaac.lsu.edu/class/udv/v2/202.html

    Hope someone can help me, thanks!
  16. Replies
    3
    Views
    2,054

    Help me for repeating decimal numbers plz

    hi all,how can I repeat decimal numbers to print out?
    for example:
    1/6=0.1666.. repeating cycle is 6 and cycle length is 1
    5/7=0.71428571428571...repeating cycle is 714285 and cycle length is 6...
  17. Replies
    8
    Views
    2,534

    Thank you very much Salem. And my last question...

    Thank you very much Salem. And my last question is how to add a song to a cd list?
  18. Replies
    8
    Views
    2,534

    Hey Salem, I really appreciate for you help and I...

    Hey Salem, I really appreciate for you help and I can read data now. But I have another pro w/ print those data. I got some error when match song's number. I got segmentation fault when the number is...
  19. Replies
    8
    Views
    2,534

    Anyone help plz?

    Anyone help plz?
  20. Replies
    8
    Views
    2,534

    Hey thank you very much, Salem, but I still...

    Hey thank you very much, Salem, but I still confused abiut how to
    fill and traverse data. I write my code below and hope you ca help me out!!
    Thanx and Thanx again!

    void ReadData(ARTISTPTR *P)...
  21. Replies
    8
    Views
    2,534

    Ok the correct format should be look like below:...

    Ok the correct format should be look like below:

    artist1 cdname1
    3
    1:00 song1_1
    2:00 song1_2
    3:00 song1_3
    artist2 cdname2
    4
    1:30 song2_1
Results 1 to 21 of 21