@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7



Comments:

<0> the key is main
<1> rdragon syntactically, this belongs to c++ too :)
<2> haha
<0> /join #C main
<1> thx :)
<0> zxy do you have a syntax question?
<3> thxn
<1> rdragon i'm sure it's syntax related :-D
<1> i guess i'll wait in c. thx for giving out hte key
<4> zxy
<4> whats the problem anyway?
<1> when i call _calloc()
<1> seems memtab is remaining null
<1> even after initTab()
<4> yes
<1> but inside init tab, it's not causing a prob.



<4> make it a pointer to a pointer
<4> the argument
<4> of inittable
<5> It is keyed thanks to spambots.
<1> aha.
<1> lemme try this
<4> else you wont modify what it is pointing at
<4> or since it is C++ you could use a reference to a pointer
<4> but your code is icky C anyways
<4> so who cares
<1> yea.. i tried to p*** a ref be4.
<1> 1 sec .. lemme look at the code
<4> ref to a pointer tho
<0> you shouldn't be using identifiers that begin with an underscore anyway - they're reserved by the standard to library implementors
<4> rd, what part of the world are you at?
<0> FL, USA
<4> ah sunny FL
<0> :)
<1> yea.. i'll drop the underscore
<4> dont drop it off the functions, they will clash with the C ones :)
<4> unless you change the function names
<0> put them in a namespace or something
<0> and start using C++
<4> agreed
<0> or stick to #C
<6> please, can anyone tell me how do i dereference this ptr: ptr1->ptr2->value (i want to work with value, that is an integer)
<1> rdragon i use C++ .. .but this is for my cl*** in wuteva operating system using a compiler that ****s
<4> or have a date with Madame Palm and her five lovely daughters
<0> zxy there isn't one bit of C++ in your code - it screams bloody C on every line
<4> hehe
<4> its bloody C
<1> rdragon i mean , i normally use C++.
<1> i'm trying to make garbage collection in this C code.
<4> duro: **ptr1
<0> so, is it supposed to be C or C++ ?
<4> duro, but it smells like bad code
<6> why quantum?
<1> rdragon i said i was waiting in #c , but i Quantum`` tried to help, i wouldn't refuse his helpful comments :)
<4> it just does
<0> so it's supposed to be C?
<6> is one list, that has another sublist in each node
<4> yea, duro, most probably you shouldnt be using your own list
<5> zxy - you were slow to type and I saw you were getting at least some response in here, so I was waiting before this conversation died down before further responding in #c.
<4> duro, use the collections the STL offers you
<6> is a code for C quantum, thats the thing
<4> is it C remembrance day today?
<6> lol
<1> Quantum`` u're saying if a p*** a pointer as a param, i'll get another pointer with a different address, taht points to the same original location?
<6> thanx for your help quantum :)
<4> zxy if you p*** a pointer to a function it is p***ed by value, meaning - you can change the contents of the memory address you p***ed, but you cannot modify the address the pointer is pointing at
<4> in your case you have a pointer that points to 0
<4> and you want to modify it inside inittab so that it points to a memory block
<4> hence you want to change the address it is pointing at
<4> the only way to do this is to p*** the pointer by reference, either by doing inittab( MemTab** mem ... ) or inittab( MemTab*& mem
<6> quantum, sorry to bother u again, but the compiler says not an allowed type when trying to do **ptr1->ptr2->value
<1> aha
<4> duro, I obviousely didnt understand what you said before
<6> for example, if i want to copy the value of an integer, to ptr1->ptr2->value, how do i do it?
<4> ptr1->ptr2->value = myOtherInt
<6> ok, thats fine, now, how do i, for example, print ptr1->ptr2->value
<4> jebus man, get a book



<7> God dammit ... !
<4> blasphemy!
<7> Oh ... sorry ...
<7> Bod dammit!
<4> Dog dammit!
<6> quantum?
<7> rdragon : hey you know what? It still not working, and I'm about to kill my cochamber! :D
<4> duro, you are asking me questions that are totally obvious if you had done some reading
<0> cochamber?
<4> flat mate?
<6> i cant find help quantum, cause value is a void* where ptr1->ptr2->value = malloc(sizeof(int))
<7> flat mate? lol
<0> roomate? heh
<7> Yeah, that's better!
<4> hes obviousely french speaking
<7> Tho she's got her own room! :P
<4> co-loc
<7> Quantum`` : as a matter of fact, yes I am ... :P
<4> I know you are
<4> thats why you said cochamber
<4> cause you did a 1-to-1 translation
<7> I've heard that before ...
<4> which is wrong
<4> WRONG!!
<7> From an english speaking person ...
<7> You speak French Quantum``? :)
<4> yah huh
<4> well
<6> ok, quantum, thx anyway
<4> my belgian accent is horrid
<4> oooh, i made another enemy tonight
<7> lol
<7> Another?
<4> I have millions of enemies
<7> At least I don't think you have to worry about getting hacked by him ;)
<4> heh
<4> he might knock on my door in a few minutes and beat the **** out of me
<4> is the canadian currency called the loony?
<8> I thought that referred to canadians
<7> rdragon : Ok, back to this fu**ing I/O problem of mine ... is it possible to correct the problem without modifying the current loop (while and switch) ?
<7> Kniht : AHAHAH ...
<7> Who said I'm Canadian? :)
<8> your ISP
<7> Quantum`` : Lock your door man, lock your door! Tho I wonder if he's good enough to find it?
<7> Kniht : I'm not Canadian, I'm from Quebec ... ;)
<4> even worse....
<8> I'm sorry man, I really am. :P
<7> Ahahah ... b*tches ... :oP
<7> You're just jealous ... :)
<1> Quantum`` thx a lot dude. i think i should read a lil bit more about p***ing struct pointers as args.
<8> perhaps, but never jealous of the weather :P
<7> Kniht : That, I totally agree!
<8> the first very nice day here in a while
<7> Kniht : But, we don't have earthquakes, tornadoes, hurricanes, tsunamis, terrorists attacks ... and so on lol
<8> neither do I
<7> Kniht : Where are you from?
<8> here
<7> Oh ... cool!
<7> That's in Europe right?
<4> zxy, to solve your problem all you need to understand is to why I told you to make it a pointer to a pointer - once you understand that, everything will make sense. You will understand why night after night you spent time infront of your computer
<8> no, left of europe
<7> Kniht : You live in the Atlantic? Wow! That's cool! :)
<8> farther left
<7> You're a newfie?
<5> Yeah, he lives in the Pacific.
<1> Quantum`` i tried it with a ** , but it didn't work. i don't know
<7> frob : No, a newfie lives in Newfoundland ... ;)
<5> I figured that much.
<4> zxy, you mean its not compiling? :)
<7> zxy : have you tried -> ?
<1> it's compiling
<4> show me your updated code
<1> but it's still returning: Segmentation Fault (core dumped)
<4> oh happy daaaaays


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#linux
Lunnark
blonda_rea
#MissKitten
#linux
#linux
What colour are the castellated walls of the Kremlin ?
#teens
#c
#MissKitten



Home  |  disclaimer  |  contact  |  submit quotes