Search:

Type: Posts; User: myjay

Search: Search took 0.01 seconds.

  1. Thread: suffix trees

    by myjay
    Replies
    1
    Views
    1,769

    suffix trees

    Does anyone know a site that might have some information on algorithms/design for suffix trees for C++? I have to creat one from scratch and it's a bit tough because I don't have any idea on how to...
  2. Replies
    3
    Views
    1,096

    I didn't know that, ha, I would have made a loop...

    I didn't know that, ha, I would have made a loop to do it -- :)
  3. Replies
    2
    Views
    1,670

    main function arguments

    my main fucntion is declared as follows:

    int main(int argc, char **argv)

    the name of the program is crypt.exe .. and the two arguments are supposed to be p and q which are integers...
    ...
  4. Replies
    5
    Views
    1,130

    can you only perform shift operations on ints,...

    can you only perform shift operations on ints, can youdo them on chars?

    John
  5. Replies
    5
    Views
    1,130

    hmm, it says Bus error (core dumped) that's...

    hmm, it says Bus error (core dumped) that's weird. considering it works fine if you print in hex or decimal
  6. Replies
    5
    Views
    1,130

    printing most sig byte...??

    I have a pointer p that contains a valid address and am trying to print the MS 8 bits... since there isn't a way to do that in printf that i know of, i'm using a loop and it looks like...



    ...
  7. Replies
    11
    Views
    1,776

    I believe you can use the strstr() ...

    I believe you can use the strstr() function...

    char *strstr(const char *string, const char *substring)

    char *myString = "@foobar@";
    char *target = "foobar";
    char *result


    result =...
  8. Replies
    7
    Views
    2,053

    if (x=sob){ ... what are you trying to do?...

    if (x=sob){

    ... what are you trying to do? are you trying to compare them? or are you assigning sob to x?

    from your use of the if statement i'd say your comparing them... in this case it...
  9. Thread: looping problem

    by myjay
    Replies
    2
    Views
    926

    hahahaahhaah nice -- i deserved that... ...

    hahahaahhaah

    nice -- i deserved that...


    thanks man
    john
  10. Thread: looping problem

    by myjay
    Replies
    2
    Views
    926

    looping problem

    while((quit=getc(stdin))!='q');
    print crap
    p ++;

    i'm trying to make a loop that keeps going if the user pushes 'enter' and will quit when they...
  11. Replies
    5
    Views
    8,181

    hmm i got it to work... just i used sscanf to...

    hmm i got it to work... just i used sscanf to load the number, the other function was being dumb...
  12. Replies
    5
    Views
    8,181

    hmm okay thanks that works,, but now i have a new...

    hmm okay thanks that works,, but now i have a new problem.. the user is supposed to input a 32 bit integer.. or a 8 hex digit l number (as a string first).. i am using the following to convert it to...
  13. Replies
    5
    Views
    8,181

    printing memory at address..help!

    I was curious as to how if a user inputsa string: such as 08984732 (a hexadecimal form), and I convert it to an int, how can I print out the contents of the address with that number...

    it's kinda...
Results 1 to 13 of 13