Search:

Type: Posts; User: Crazed

Search: Search took 0.01 seconds.

  1. Replies
    19
    Views
    15,840

    Hi, I was looking at this example earlier and it...

    Hi, I was looking at this example earlier and it just wouldn't leave me alone, so I created a quick program that brute forces it (i know brute force really isn't the "right" way to solve it but it...
  2. Replies
    7
    Views
    1,254

    I totaly agree but I don't see where I'm doing...

    I totaly agree but I don't see where I'm doing that, do you mean this line
    if (bday[i] == bday[k + i]) if it is, I don't see the flaw.

    Nucleon, that is a good idea, BUT not for what I'm doing,...
  3. Replies
    7
    Views
    1,254

    I must say I don't understand what you mean.Yeah...

    I must say I don't understand what you mean.Yeah you're right that is wierd, now that I see it, I'll go with the num. of matches, more natural
  4. Replies
    7
    Views
    1,254

    Looking not founding (the problem)

    Hi Guys!

    I have this little piece of code, that generates an exception if I set NUM_P to lets say 4000 or more.


    #define NUM_P 2300
    #define PARTY_NUM 100
    #define PEOPLE_PER_PARTY...
  5. Replies
    3
    Views
    3,017

    Thank you very much Salem, this is what I call an...

    Thank you very much Salem, this is what I call an explanation :)
  6. Replies
    3
    Views
    3,017

    pointer to int array?

    Hi, I have been battling with this one for too long, so I'll just ask you guys here, lets start slow.



    typedef int (*ImagePointer)[3]; // is this same as if I say
    ImagePointer my_point; //...
  7. Thread: pointers

    by Crazed
    Replies
    3
    Views
    1,006

    No. int *p; int a; p = &a; *p = 20; //...

    No.


    int *p;
    int a;
    p = &a;
    *p = 20; // as if you said a = 20;
  8. Thread: confused

    by Crazed
    Replies
    6
    Views
    1,293

    as stevesmithx allready said it writes a '*' for...

    as stevesmithx allready said it writes a '*' for every letter inputed, but it is flawed for it only accepts letters up to 'm' cuz of your
    freq[2*(tolower(c)-'a')]++; and I don't think this was such...
  9. Replies
    10
    Views
    2,219

    it's C

    it's C
  10. Replies
    10
    Views
    2,219

    I don't think this would work cuz the simple...

    I don't think this would work cuz the simple (gets) prog. has no GetMessage funct. so I don't see a way for him to handle the messages, please correct me if I'm wrong. (and with that being said, like...
  11. Replies
    10
    Views
    2,219

    back so quick, I looked at the SendMessage and...

    back so quick, I looked at the SendMessage and the first param HWND is pretty simple a handle which I got, then the UINT msg, now it is obvious that it takes a unsig. int as one of the predifined...
  12. Replies
    10
    Views
    2,219

    hmmm, thats what I thought the SendMessage...

    hmmm, thats what I thought the SendMessage between progs, I just made a small little brute force prog. just for sports and another very simple as I said program that waits for a gets input, so I'm...
  13. Replies
    10
    Views
    2,219

    interfacing with a program

    Hi

    My question is, how can a program manipulate some other program, for starters I'm thinking something really basic, just accessing a console program( where as it stands and waits for a gets()...
  14. Replies
    6
    Views
    8,473

    no problemo, :P & tnx

    no problemo, :P & tnx
  15. Replies
    6
    Views
    8,473

    thnx Vart, works well.

    thnx Vart, works well.
  16. Replies
    6
    Views
    8,473

    a type problem (TCHAR, LPCWSTR)

    Hi, I got a small situation that I just can't figure out




    hFile = CreateFile ((LPCWSTR) bla , // this parameter bothers me
    GENERIC_READ, //...
  17. Thread: Compiler for C

    by Crazed
    Replies
    23
    Views
    2,796

    I recommend a simple Pelles C IDE (just google...

    I recommend a simple Pelles C IDE (just google it, it's free), you could also get the dev c++ ( as far as I know all c++ compilers compile C code just as well ).
  18. Replies
    13
    Views
    3,815

    for (x=0.0 ; x < 5.0 ; x += DIF) { y1 =...

    for (x=0.0 ; x < 5.0 ; x += DIF)
    {
    y1 = (pow(x,2)+2);
    y2 = (pow((x+DIF),2)+2);
    mid = (y1+y2)/2;
    result += mid*DIF;
    }


    this on the other hand works like a charm, 99.99999&#37;...
  19. Replies
    13
    Views
    3,815

    did both of those, same result, my guess would be...

    did both of those, same result, my guess would be that there may be some concealed detail to the naked eye, or the more probable that the computer gets carried away while doing so many calculations,...
  20. Replies
    13
    Views
    3,815

    Lets simplify it... I sure do agree that I'm not...

    Lets simplify it... I sure do agree that I'm not very clear on the N.I. part, but that's not really my point, that little algorithm of mine, is very simple as you see, I really don't see the problem...
  21. Replies
    13
    Views
    3,815

    I do not totaly understand what you mean, but my...

    I do not totaly understand what you mean, but my plan is to take 2 values main fuction is Q(temp) so the first value: Q1(temp) and second: Q2(temp + dif) the dif is their "X axis" difference I sum...
  22. Replies
    13
    Views
    3,815

    Again I just keep on seeing mistakes I made, the...

    Again I just keep on seeing mistakes I made, the DIF part was meant to say " DIF isn't too SMALL".
  23. Replies
    13
    Views
    3,815

    woww the comments aren't sopose to look like...

    woww the comments aren't sopose to look like that, I lined them up when I made the thread, upss
  24. Replies
    13
    Views
    3,815

    Numerical Integration

    CODE:



    #define Pi 3.14159265 // PI equivalent
    #define DIF 0.001 //differencial size

    double IntegralCharge(double Time);

    int main()
  25. Replies
    2
    Views
    1,395

    End Thread assistance

    Hi, my question is in reference to ending threads from within a main function, (C extended function) _endthread is easy but can only be ran from within a runing thread, so if there are any known...
Results 1 to 25 of 25