|
Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2014-10-27. : 12:58 am] jjf28 -- Dem0nDem0n shouted: If I do *bucketArray = new_table->bucket[0], can I access it by doing like bucketArray[2]? sounds about right[2014-10-27. : 12:55 am] Moose -- Dem0nDem0n shouted: If I have this, how can I access [0][2] using pointers? Delete facebook, lawyer up, hit the gym![2014-10-27. : 12:55 am] Dem0n -- If I do *bucketArray = new_table->bucket[0], can I access it by doing like bucketArray[2]?[2014-10-27. : 12:52 am] Moose -- jjf28jjf28 shouted: yea uhh, I don't care enough to work through that mess of english rekt[2014-10-27. : 12:48 am] Dem0n -- I know that, farty, but I have to use pointers to access it, which is confusing me[2014-10-27. : 12:48 am] Dem0n -- If the pointer is equal to the memory of a pointer pointing to the array at position 0[2014-10-27. : 12:48 am] O)FaRTy1billion[MM] -- Dem0nDem0n shouted: Like there could be multiple elements at buckets[0], but I don't know how to access them buckets[0][0]?[2014-10-27. : 12:47 am] Dem0n -- jjf28jjf28 shouted: Bucket *bucketArray = new_table->bucket[0]; Bucket *aBucket = &bucketArray[0]; aBucket->something = 5; Does setting a pointer equal to the memory of a pointer pointing to an element in an array mean that you can then index that initial pointer to go through the array at position 0?[2014-10-27. : 12:44 am] poiuy_qwert -- check out this: http://www-ee.eng.hawaii.edu/~tep/EE150/book/chap7/section2.1.3.html[2014-10-27. : 12:39 am] jjf28 -- assuming new_table->bucket is an array, I'm not looking at these definitions[2014-10-27. : 12:38 am] jjf28 -- Bucket *bucketArray = new_table->bucket[0]; Bucket *aBucket = &bucketArray[0]; aBucket->something = 5;[2014-10-27. : 12:34 am] Dem0n -- Like there could be multiple elements at buckets[0], but I don't know how to access them[2014-10-27. : 12:33 am] Dem0n -- Well the table is supposed to represent a hash table, and I'm using chained hashing, so when there's a collision, the element is supposed to be put in a new bucket at that spot, so that's what I need to access[2014-10-27. : 12:28 am] Dem0n -- So if that creates an array of table_size elements, how do I access them? new_table->buckets[0], etc?[2014-10-27. : 12:28 am] Dem0n -- new_table->buckets = (Bucket **) calloc(table_size, sizeof(Bucket*))[2014-10-27. : 12:26 am] jjf28 -- might do templates as scrips, might be a binary file; haven't decided[2014-10-27. : 12:24 am] jjf28 -- groups have their own abstraction as well, but i'm still doing the theorycrafting on that[2014-10-27. : 12:23 am] jjf28 -- they're trigger generators (easily created by regular users, easily shared, commonly useful & well implemented ones will come with chkdraft) from which you can make a trigger or trigger group[2014-10-27. : 12:23 am] poiuy_qwert -- Dem0nDem0n shouted: Holy shit nigga I am still so confused about double pointers and arrays ![]() [2014-10-27. : 12:12 am] Dem0n -- Holy shit nigga I am still so confused about double pointers and arrays[2014-10-26. : 11:14 pm] jjf28 -- even strings and wavs, those dialogs can be brought up at the same time as triggers...[2014-10-26. : 11:07 pm] jjf28 -- coordinate based actions, sure, trying to think what tabs if any should be included[2014-10-26. : 11:05 pm] Moose -- Ideally, units and locations would be autocompletes once you start typing where a unit or location would go[2014-10-26. : 11:02 pm] jjf28 -- http://puu.sh/crX53/da451d56da.jpg hmm... would anything else be terribly useful to have quickly available for triggers?[2014-10-26. : 9:59 pm] Devourer -- Haha. Ups. Mostly because I do not know how to put it in without stretching the design and where. Maybe a small box with scrollbar? I do not know. I dislike the idea of having a second window open.[2014-10-26. : 9:39 pm] Devourer -- Rule #1: don't get close to people who are bleeding out of their eyes </exaggeration>[2014-10-26. : 9:29 pm] jjf28 -- sounds like Ebola isn't infectious till after symptoms appear (which takes 2-21 days), doesn't sound apocalyptic, though still not something to ignore[2014-10-26. : 9:19 pm] Echo -- He was a doctor who had high temperature. Decided to go bowling with friends. Took 3 different subways, which are all connected.[2014-10-26. : 9:09 pm] Devourer -- Ehrmahgehrd by 2017 "we will all be dead". Yes. Oh wait. Probably not.[2014-10-26. : 7:41 pm] jjf28 -- I miss classes where I got to write largely undocumented C-style code[2014-10-26. : 6:13 pm] O)FaRTy1billion[MM] -- at least, integers are trivially interchangeable when it's little-endian[2014-10-26. : 6:12 pm] O)FaRTy1billion[MM] -- all integer types are interchangeable. strings in assembly are the same as strings in C ;o |