do you ever get horny? lol
and for the one saying it's a linked list gone wrong. I sure hope you have at least some form of constant time lookup in your brain :)
Type: Posts; User: Laserve
do you ever get horny? lol
and for the one saying it's a linked list gone wrong. I sure hope you have at least some form of constant time lookup in your brain :)
at first I agreed with you, but then I noticed you're somebody else then who I quoted.
He was talking about sockets windows programming, not about routers or something where C# is not in the picture...
why? homework?
btw, next time search google for "PS_ENDCAP_ROUND windows CE" or something. First hit would've told you. And specify what compiler and platform you use immediately if you think it could be related to...
strange that you say that for network programs where most time is spent waiting for network I/O and has nothing to do with language.
I also noticed a trend on this forum that a large part of all...
by typing int main(void)
check in your compiler's include directory if PS_ENDCAP_ROUND exists. If not, you might have an old compiler or incorrect library. if it does there might be some #ifdef's around it.
What compiler...
because C has a standard that defines that main returns int and not void.
If a compiler happens to accept void as return type its coincidence, so this code will compile on some compilers and not on...
and your C++ question is?
this is not necessarily true. As was said in this thread too, more and more programmers get convinced that OO actually is *not* the way to go and that it's easier to maintain procedural programs. It...
Next time try and write your godly code at the first attempt then
The timings already went from 0.313 to 0.138 which is 3 times as fast on such a stupid example
I cant believe you keep...
dont make suggestions about making the program wait. If you are developing a console program on MSVC for instance you fire up the program and it adds the wait for you. So when adding a manual wait...
I would agree with you 100% if not for the fact that you're only looking at your own domain.
The speed issue is no issue at all anymore on desktop and client/server applications.
For instance, I...
OO is a programming paradigm which has nothing to do with the language you use. you can code OO in C perfectly, its just that languages designed with OO in mind give you more expressiveness to code...
well, it's completely retarded to say things like that. He probably just likes java more because he was too incompetent to learn C++ completely :)
there is another difference.
one is named struct and the other is named class
funny wont be my middle name for a long time
lol, well since he was saying ANY C++ program we better start strangling ourselves
no doubt about it that you have a corrupt heap.
I think it got screwed up somewhere else thuogh, so you'll have to provide more context
blasphemy!
Oh my its decided! java is slower!
What do *you* think you're actually testing here? this is nothing more than a I/O system test of 1 java and c++ implementation.
And then, this just shows...
thats no question, thats the reason he's asking for it!! lol, just having fun with our little thread hijack
Super hacky but you could try to find out the address of the function in the executable and then do some inline asm :)
_asm
{
mov eax, 0x0040101E;
call eax;
}
or if you have control...
o rly, lets see
maybe next time I wont try to be helpful :P
In general, C++ is faster than java. Sure you can do contests with average C++ coders against experienced java coders and the java coders would win.
You need experience to write fast code in Java,...
to format to hexadecimal immediately:
std::cout << std::hex << (void *)pointer << std::endl;