[QUOTE=Moustach3;29376900]The problem with this site is that not enough info is provided as to how the data will be entered. Will it be from a file, or from user input? What file do you read from? etc.[/QUOTE]
-snip nevermind im wrong-
Just found out NuFound only claims compatibility with OPENSTEP, so I get to claim I've just pulled NSAutoreleasePool, NSValue, NSNumber and Foundation's typedefs into the 21st century. The day I have to reimplement KVC/KVO from scratch I plan to slit my wrists. (I got a rating from Chandler! My life is complete.)
[QUOTE=Moustach3;29376812]If that's truly the answer, what the fuck? That was mentioned nowhere.[/QUOTE]I thought that too, I ended up with that only by trial and error.
It uses standard input and the sample input should show you enough to know how to parse it.
[QUOTE=Dlaor-guy;29376604]That might be the SFML-crashing-on-ATI-cards bug. Download this DLL and place it in the same folder as your EXE and see if it works:
[url]http://www.kn00tcn.net/kn-atigktxx-10.4.zip[/url]
I had the exact same problem with my game, so...[/QUOTE]
I wish it was so simple :(
I'm on a nVidia card
[QUOTE=Chris220;29377413]I wish it was so simple :(
I'm on a nVidia card[/QUOTE]
Is there any reason why it needs sfml 2?
Or can 1.6 be used?
[editline]23rd April 2011[/editline]
[QUOTE=Chris220;29376091]I have a challenge for anyone bored enough to take it up. A project I was working on mysteriously started crashing and I have no idea why. If you have nothing better to do, download it and see if you can find out why it's crashing and, even better, fix it!
I haven't got anything to offer you but my eternal gratitude.
[url]http://dl.dropbox.com/u/6661951/Programming/ma_src.zip[/url]
Needs to be linked with SFML2
Edit:
I should add that me and Austech and BlkDucky (mostly Austech) sat on my livestream for hours trying to figure it out, with nothing found at the end of it all. Very mysterious![/QUOTE]
So whats the problem your having?
[img]http://img10.imageshack.us/img10/5388/unledzb.png[/img]
also it doesnt seem to like:
[cpp]CellField::~CellField()
{
assert(0);
for(int x = 0; x < X_CELLS; x++)
{
for(int y = 0; y < Y_CELLS; y++)
{
if(cells[x][y]) delete cells[x][y];
cells[x][y] = 0;
}
}
}[/cpp]
Specifically the assert(0);
I also had to comment out this line
if(Fatal) exit(ErrorCode);
As it didnnt know what exit(); was
I really need to begin learning what Arrays are. Seems pretty much people are using them. Though I have no idea how it actually works.
[QUOTE=Richy19;29377758]Is there any reason why it needs sfml 2?
Or can 1.6 be used?
[editline]23rd April 2011[/editline]
So whats the problem your having?
[img_thumb]http://img10.imageshack.us/img10/5388/unledzb.png[/img_thumb]
also it doesnt seem to like:
[cpp]CellField::~CellField()
{
assert(0);
for(int x = 0; x < X_CELLS; x++)
{
for(int y = 0; y < Y_CELLS; y++)
{
if(cells[x][y]) delete cells[x][y];
cells[x][y] = 0;
}
}
}[/cpp]
Specifically the assert(0);
I also had to comment out this line
if(Fatal) exit(ErrorCode);
As it didnnt know what exit(); was[/QUOTE]
The assert I left in by accident, it's supposed to "crash" the program like that. exit() is defined in windows.h I believe.
And, so it runs for you? That's odd. Ran for austech as well, but crashes for me.
I used SFML-1.6 and CodeBlocks, dont know if that makes a difference
[QUOTE=Staneh;29378754]I really need to begin learning what Arrays are. Seems pretty much people are using them. Though I have no idea how it actually works.[/QUOTE]
Think of it as a grid (2D) or a cube with sections (3D).
[editline]l[/editline]
Why all the boxes? It's just how I visualize an array. :smith:
[img]http://i.imgur.com/jCc8W.png[/img]
UML is for wimps. :v:
[QUOTE=leontodd;29378974]Think of it as a grid (2D) or a cube with sections (3D).[/QUOTE]
Is it like a table in lua, or?
[QUOTE=Icedshot;29375800]hi
variables a and b don't have a memory address
they are "uninitialised variables", they have a random value (well, not really random but not something you can rely on at all), and no memory address. So trying to access the memory address of something that doesnt exist gives strange results :v:[/QUOTE]
wow
[QUOTE=leontodd;29378974]Think of it as a grid (2D) or a cube with sections (3D).[/QUOTE]
An array doesn't have to be two dimensional at all. An array is simply a data structure consisting of a collection of elements identified by an index.
An array can have as many dimensions you want it to have.
[QUOTE=Staneh;29379196]Is it like a table in lua, or?[/QUOTE]
It's basically just a big collection of variables (of the same type) which can be accessed via indexing the array.
You can use Lua's table construct to emulate an array, although tables are far more flexible.
Basically it's like this:
You have an array of three elements, created like this:
(C#)
[code]
int[] numbers = new int[3];
[/code]
Now, we basically have a list of three numbers, all null for now.
Visualized:
[code]
numbers = null, null, null
[/code]
Now, what if we want to change the second value to 1? Well, first off, arrays are 0-based. Meaning that when you want to change the FIRST value, in code, you really change the ZEROth value.
Let's change the second (and since it's 0-indexed, you'd change the "first") value to 1.
[code]
numbers[1] = 1;
[/code]
Now, visualized:
[code]
numbers = null, 1, null
[/code]
awesome! Let's change the others.
[code]
numbers[0] = 0; // First index
numbers[2] = 5; // Third index
[/code]
Visualized:
[code]
numbers = 0, 1, 5
[/code]
Awesome. Now how do we read from this array? Simple.
[code]
int thirdValue = numbers[2]; //We're reading from the third value, or, 5.
[/code]
thirdValue now equals 5.
How about algorithms? How are they created, and used?
[QUOTE=Staneh;29380373]How about algorithms? How are they created, and used?[/QUOTE]
Please do elaborate on what you mean by algorithms.
Soooo, my client was satisfied at first, but finally complained, I was kinda expecting this:
"CPU usage is too much!"
No shit, we're capturing video from a live source, encoding it to h.264 then transcoding it twice, then decoding it for display in a flash player..
Pffft..
So, I'm in the process of writing a new task scheduler for [url=http://www.live555.com/liveMedia/]live555[/url] (which I use extensively in my filter), apparently calling select() hundreds of times in a loop has bad effects on windows. Not exactly set on how this'll work out though, I need microsecond accuracy, and Sleep() is a terrible idea.
[QUOTE=SEKCobra;29379482]An array can have as many dimensions you want it to have.[/QUOTE]
Can I have an array with a decimal number of dimensions? :colbert:
[img]http://i.imgur.com/6QDvC.png[/img]
My hooking class works! :toot:
(and no, it's not using MS Detours or any other existing library - hence the third argument of the constructor is the size of the prologue of the function to be replaced, as the class doesn't know machine code and can't figure out where an instruction ends)
[QUOTE=Moustach3;29380499]Please do elaborate on what you mean by algorithms.[/QUOTE]
Like, patterns.