Search:

Type: Posts; User: r00t

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,119

    What do you mean a software task? Is it...

    What do you mean a software task?

    Is it possible to provide an example :) ?
  2. Replies
    5
    Views
    1,119

    yes, that's exactly what i was wondering about.....

    yes, that's exactly what i was wondering about..

    can u tell me about the alternative method? how do i organize it in CLI?

    Thanks!
  3. Replies
    5
    Views
    1,119

    Two thread interactive program

    Hey everyone,

    I'm writing a two thread application.

    First thread:
    Requests for commands and processes them.

    Second thread:
    Periodically, for example every 10 seconds, shows all items in...
  4. yeaaah i know i know... any suggestions? i think...

    yeaaah i know i know... any suggestions?
    i think what im gonna do is (as it was suggested above) sort the words into the array
    and the count the most frequent one, that's an easy way of doing it......
  5. yep, it should be called bucket sort, but i dont...

    yep, it should be called bucket sort, but i dont remember the exact name.
    and yes, the whole point of this thread was to discover the right algorithm to encrypt it :)

    thanx for the code _Mike,...
  6. yeah i c what u mean, but it wont work with the...

    yeah i c what u mean, but it wont work with the arrays right? i cant use that integer as an index of an element of an array. would u recommend any other way to solve my problem?
    thanx :)
  7. the maximum number of characters in a word is 30,...

    the maximum number of characters in a word is 30, so if asscii value of every char is 2 digits then, i would have 60 digit integer. am i right? i dont think this way going to work.
    please correct me...
  8. that's the thing man, i need an algorithm that...

    that's the thing man, i need an algorithm that generates a unique integer, for every different string
  9. im not sure that hashing works in reverse...

    im not sure that hashing works in reverse algorithm, i.e i can get the actual string from that.. if not then i need encryption algorithm, so then i can decrypt it.
  10. ok thanx, i'll try to find hashing function

    ok thanx, i'll try to find hashing function
  11. encryption algorithm for finding the most frequent word

    Hello folks!
    Today my task is to implement the program which inputs the name of the file and outputs the most frequent word in the textfile.
    Limits: max - 50000 word, each word max - 30 chars.
    So...
  12. ah ok thnx, i'll try to pass it as you wrote..

    ah ok thnx, i'll try to pass it as you wrote..
  13. but the problem is occuring on the line i marked...

    but the problem is occuring on the line i marked red....why is that happening? i couldn't get it...
  14. so how to solve this problem? ok... if i declare...

    so how to solve this problem?
    ok... if i declare it as an array of char like char binstr[8]="00000000";
    then i want to return pointer to that string....
  15. segmentation fault on assigning char to a char of a string at index

    Hey folks sup!
    I have a segmentation fault here:


    char * inttobinstr(int n)
    {
    char *binstr;
    binstr = (char*)malloc(sizeof(char)*8);
    binstr = "00000001";
    binstr[6]='s'; <---------this...
  16. Replies
    4
    Views
    1,329

    just declare 2d array of char, and two integers i...

    just declare 2d array of char, and two integers i and j
    i=0, j=0;
    using getchar() increase j, if you see '\n' -> increase i and j=0.
  17. Replies
    4
    Views
    1,329

    what your input file looks like?

    what your input file looks like?
  18. Replies
    23
    Views
    7,481

    Hey thanks a lot, Adak, now i know how fread()...

    Hey thanks a lot, Adak,
    now i know how fread() works!

    Thanks everyone!
  19. but then why do you need getUserName() method?...

    but then why do you need getUserName() method?
    as i understand your input is username and you need to look for his password in .txt file, is that right?
  20. Replies
    23
    Views
    7,481

    it is this way: you read first 3 bytes(key)....

    it is this way:
    you read first 3 bytes(key).
    then you read N bytes until you reach \0 terminator. (Name)
    after that, you count 20-N bytes(ignore them).
    and then read 4 bytes (Mark)


    which...
  21. Thread: cprogramming

    by r00t
    Replies
    4
    Views
    1,315

    or char *s = "hui";

    or
    char *s = "hui";
  22. Replies
    23
    Views
    7,481

    Adak, have you taken a look at my bin file?

    Adak, have you taken a look at my bin file?
  23. Replies
    23
    Views
    7,481

    RapidShare: 1-CLICK Web hosting - Easy...

    RapidShare: 1-CLICK Web hosting - Easy Filehosting
  24. Replies
    23
    Views
    7,481

    I can't put the contents of binary file because...

    I can't put the contents of binary file because there are some characters which cannot be displayed in simple text editor. for example null character '\0'
    so, ok here is the example of bin file with...
  25. I think you should declare username variable...

    I think you should declare username variable first in main() and then pass it to getUsername()
    as a second arg, and then deal with it in that method, rather than making a new one and then
    setting...
Results 1 to 25 of 46
Page 1 of 2 1 2