malloc is ugly.
I think the only reason the compiler is choking is because 3MB is too much for the stack.
Allocating 3MB using malloc (or new) should work perfectly fine.
a*b + c*d = n
Assume that a*b and c*d both equal n/2 (n/2 + n/2 = n)...
a = (n/2)/b
c = (n/2)/d
#include <iostream>
using namespace std;
int main(int argc, char**argv)
{
if (argc < 4)
return 1;
int b = atoi(argv[1]);
int d = atoi(argv[2]);
int n = atoi(argv[3])...
Could you give a better explanation?
From what I get, the user enters 3 numbers : x, y and n, producing:
z*x + z*y = n
Where you're trying to find z? But, that seems kinda too simple to me...
Yep. HL2 is needed to be eligible to download the Source SDK (which includes Hammer, Model viewer and source code).
Once you do get HL2, you'll be able to download and install the SDK through Steam.
That part was soo much fun :)
I assume the update was very small, if you opened up the Monitor window, it showed that HL2 had been updated back to 100%.
I reckon the surprise will be HL2 Multiplayer myself, but then again it's been said that the SDK will contain a multiplayer example, so...
Hmm, seems news is slow today. That would have been the Steam patch which was released a couple hours ago.
Maybe it's not big enough of an update to warrant front page news though.
Apparently not. Maybe the reason they are delaying this patch is so they can have fixes for both problems in...
Hmm...
Sorry dude, I can't help then. I just tried to reset mine as well (even went as far as removing the whole half-life 2 directory), to no avail. It seems that these settings must be re-written back into the .gcf.
All I can think of is making sure you aren't setting anything else to...
linking to hl2world isn't allowed (AFAIK, it had something to do with them quite openly supporting the leak).
Stop running the game with those command line options (specifically, remove -shaderdll and -dxlevel), and try deleting half-life 2/hl2/cfg/config.cfg.
Hopefully, HL2 will recheck...