hm... i finally got it to work.. the order of my includes makes hell of a difference..
then:
#include <winsock2.h>
#include <windows.h>
now:
Type: Posts; User: NewtonApple
hm... i finally got it to work.. the order of my includes makes hell of a difference..
then:
#include <winsock2.h>
#include <windows.h>
now:
Yea, ws2_32.lib was linked.. it's just that when i define _WIN32_WINNT.. it some how blocks off winsock2.h. i'm not exactly what's the problem. :confused:
hm.. seems like i forgot to define _WIN32_WINNT to 0x0501.. but now when i define this, i introduced a new problem.. it seems like this defintion blocks off my winsock2.h.. anyone knows why? im...
Hm.. I'm running Windows XP... i found the declaration of the function in winbase.h.. it's there.. i'm just not able get it to compile. i also tested this on visual studio.net.. it seems to...
Hi there, I'm working on something where I need to create a waitable timer event to be used in conjunction of winsock overlapped i/o. for some reason when i tried to set it up using...
Hm.. it'd be helpful if you'd show some code. but one of most common errors is adding a semicolon after the looping statement:
for ( int i = 0; i < 10; i++ ); //<---right here take the...
I'm assuming both arrays are the same size.. so here is what I think:
void copy (int Old[], int New[], int start, int end)
{
if ( start == end )
Old[start] = New[end];
...
You are right your method is better.. and takes less memory. But since the guy started out with indexing header, I just follow whatever he has. and i must ask, what's the point of putting a sorted...
Hm.. I think the performance of our algorithms are pretty similar. because ur codes are breaking the array in two, a binary tree will represent it pretty well. and since you are traversing the...
like i said i did this in a hurry... from what i see, obviously you didn't bother to even debug the thing. the only thing that's wrong with the code is that i use - 1 in this:
int max =...
// max number in the array is returned..
int MaxArray(int array[], int first, int last)
{
if ( first == last )
return array[last];
else
{
int max = MaxArray ( array,...