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...
Type: Posts; User: Crazed
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...
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,...
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
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...
Thank you very much Salem, this is what I call an explanation :)
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; //...
No.
int *p;
int a;
p = &a;
*p = 20; // as if you said a = 20;
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...
it's C
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...
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...
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...
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()...
no problemo, :P & tnx
thnx Vart, works well.
Hi, I got a small situation that I just can't figure out
hFile = CreateFile ((LPCWSTR) bla , // this parameter bothers me
GENERIC_READ, //...
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 ).
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%...
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,...
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...
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...
Again I just keep on seeing mistakes I made, the DIF part was meant to say " DIF isn't too SMALL".
woww the comments aren't sopose to look like that, I lined them up when I made the thread, upss
CODE:
#define Pi 3.14159265 // PI equivalent
#define DIF 0.001 //differencial size
double IntegralCharge(double Time);
int main()
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...