@# 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 8 9 10 11 12 13 14 15 16 17



Comments:

<0> ./join #c main
<1> :(
<1> -
<1> [11:48] [
<1> [#c] Cannot join channel (+k) - Press F10 to keep trying to join
<2> hi, I know that this isn't the right place to ask, but do you know why the "filecopy" statement in delphi doesn't copy files that include the "~" char?
<2> if someone does, please help!!
<2> :(
<1> Concerning me I Don't knew:(
<2> ..
<2> thanks anyway
<2> anyone else..... pleeeeeeeease
<0> go to #delphi
<2> yes, I am also there, but I don't get any answer...
<0> so
<2> ok... thanks anyway.



<2> byeeeeeee ;)
<1> Nasty bealtine
<3> uh, a very stupid question here, how is structure different from a cl***? (granted i just found out what structures are, but still), to me it looks like a cl*** does everything a structure does and more, no?
<0> the biggest diff is w/ a cl*** everything is private by default
<3> aha, but aside from the private/public/factoring?
<4> well, it's also the only difference.
<3> hehe
<0> well true :)
<3> is there any reason then to use structs at all?
<5> sure, if there's no private members
<5> then there's less typing
<3> hah, wicked
<6> even so, a lot of cl***es i have seen still have a public: at the top, and the private:'s at the bottom ...
<5> yeah
<4> |Serpent: by convention, many programmers use struct when something is compatible with a C struct, and cl*** otherwise.
<6> right, POD types
<3> hmm, why would anyone bother with c when theres cpp, but then again i know very little :D
<6> i usually use struct as a data container, and cl***es for things that actually do something :)
<5> |Serpent we wonder that a lot too
<4> Even without C, it is still helpful to know what a POD is.
<3> what is a pod then?
<4> (even though that is somewhat complicated)
<6> POD stands for Plain Old Data
<4> pod = short for "Plain Old Data". It describes all types that one can legally memcpy(). The actual definition is quite complicated, see 'POD struct', 'POD union', 'POD cl***' and 'aggregate'.
<4> pod struct = A POD-struct is an aggregate cl*** that has no non-static data members of type pointer to member, non-POD-struct, non-POD-union (or array of such types) or reference, and has no user-defined copy ***ignment operator and no user-defined destructor.
<4> pod union = A POD-union is an aggregate union that has no non-static data members of type pointer to member, non-POD-struct, non-POD-union (or array of such types) or reference, and has no user-defined copy ***ignment operator and no user-defined destructor.
<4> aggregate = An aggregate is an array or a cl*** with no user-declared constructors, no private or protected non-static data members, no base cl***es, and no virtual functions.
<4> pod cl*** = A POD cl*** is a cl*** that is either a POD-struct or a POD-union.
<3> hmm
<3> that makes me wonder how useful this is(if i understood correctly)
<4> adding to the confusion, the 2003 edition of the 1998 standard modified the definition of POD a little.
<6> well if it is only a little ;) ;)
<4> (allowing for pointers to members, IIRC)
<3> pod is either a cl*** or an array, that has no interface and nothing that can ever change, nothing derives from it and everything is accessable?
<3> sounds, at the very least, very very weird
<4> struct foo { }; // is a pod. struct bar : foo {} ; // foo is still a pod
<4> It's all a long description of what conditions a type must meet in order to be memcpy()able.
<3> so basically if it doesn't meet one of these rules, it isn't a pod hence isn't memcpy()'able, i'm not sure what memcpy() is but it seems to me that pod's only there for that, otherwise it's useless
<3> or in other words it's read-only data
<7> |Serpent did someone tell you what POD was?
<3> [m]aniac well i think now i was just told
<3> otherwise "pod" for me is killing someone in a mmorpg i'm playing, no more no less
<7> |Serpent I mean what P.O.D. stands for...
<3> plain old data
<7> ok, that's what I was getting at, yea
<3> so it's read-only data in other words?
<7> no
<3> but it can't have non-static data members
<7> but that doesn't have anything to do with it
<7> look up memcpy... see how it works
<7> it has more to do with contigous memory and "simple" types
<3> one google firing up
<3> well yea as i ***umed it copies whatever's in a specific address(es?) in memory to different address(es?)
<0> thankfully the smell from my earlier brainfart has cleared up
<8> bealtine, unfortunately that only masked your normally pungent, rancorous smell
<8> sometimes i wish i were black
<8> then i could say "RACIAL PROFILING!!!" whenever i smack a cop
<8> worst congresswoman ever
<0> you never had to persevere through the minstrel show over there then
<8> come again?
<0> umm



<0> heh
<0> http://chnm.gmu.edu/courses/jackson/minstrel/minstrel.html
<0> shame about the silly flags..but hey
<8> well, i'm guessing this woman didn't either
<8> she was asked several times to stop by a metro DC police officer, he grabbed her, she hit him
<8> that's my understanding
<0> i've seen **** like that happen too
<8> she was not wearing a pin that identifies her as a member of congress
<8> so now she's playing the race card like an ignorant twit
<0> break the law and then whine about race
<0> nice
<3> guys, what are the differences between a .h and a .cpp file? they're both pretty text but what are the difference in usage?
<8> as if it excuses her behavior, racial profiling or not
<3> pretty/pretty much
<8> |Serpent: the file extension
<3> peterhu, obviously, i mean in usage :D
<0> .h files usually contain definitions .cpp the actual code
<3> aha, so .h for cl***es, .cpp for functions?
<0> but its all blrurry really
<0> blurry
<3> yea blurry is the right word
<0> .h for cl*** definitions
<0> and functions
<3> ok, do i #include .cpp files like .h files, at the beginning of the main .cpp, or is it handled differently?
<0> you dont include .cpp
<3> oh
<3> how do i 'include' them in the program then?
<0> they are linked together
<8> generally, you p*** them to the compiler
<0> compiled to obj files and linked
<0> so they are members of the project or slapped in a make file
<8> some people include .cpp for out-of-line template definitions, due to lack of export keyword support
<8> but some people are crazy
<0> aye
<3> aha, so they're all in scope as long as they're in the project, like, if i include a function in one cpp file, and call it in another, it'll run or will the compiler be cussing in french?
<0> dont make up terminology
<3> uhm, being a newbie i can't help but sound stupid
<8> except for templates (export keyword not withstanding), the compiler requires a declaration to use a function, not the definition
<8> so in foo.h: void foo(); in foo.cpp: void foo() { /* do something */ } and in bar.cpp: #include "foo.h" void bar() { foo(); }
<3> i think i understand, gonna try something similar now
<8> the compiler is p***ed foo.cpp and bar.cpp. these get built into object files. the linker then resolves the symbols. you could compile bar.cpp alone, but when it comes time to link, the linker requires an object file that defines the foo symbol
<0> patience is a virtue :)
<8> cut under my lower lip this morning, nice start to a day
<8> +way
<0> missed the neck then?
<8> pfft
<8> sigh, i've been ****ed back into WoW by coworkers
<9> Off to office
<3> meh it still says function undeclared :/
<0> what compiler
<3> i must've missed something
<3> no idea, the one that comes with dev-c++
<0> does it have "projects" ?
<10> bah, stupid connection
<10> oh wait
<10> it works!
<10> :D
<10> missed the "'s when including
<8> heh
<8> why dev-c++?
<10> vc8 is a bit too heavy for me atm, too much default stuff is written when i create a new project
<8> you can create an empty project pretty easily
<0> umm turn it off
<8> when creating a win32 console app, there's a checkbox for "empty" project, which will also turn off precompiled headers
<10> yeah, but uhm i dont know, devcpp just appears lighter, i'll have to move over to vc8 later though but learning it's interface and the language will just confuse me
<8> fair enough
<10> plus i did try it and it took me a day to figure out where to get all the default include files from and how to make vc8 actually see them so i take it it's a bit less newbie-friendly than devcpp
<8> IBM bribing people with $20,000 to switch from exchange to lotus domino on linux
<8> blech
<8> a properly administrated exchange server + outlook = great
<0> pfft domino is teh best
<8> outlook 2003 that is
<8> any previous version blows


Name:

Comments:

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






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

inqaxxar is suf
#chatzone
#MissKitten
mur ahra
#asm
#php
#c++
DarkNightsScript
qemu Could not initialize device 'tap'
#chatzone



Home  |  disclaimer  |  contact  |  submit quotes