| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Comments:
<0> or store objects <1> hi people <2> thanks Ashe, rdragon... cant store objects in this case <1> i have an input textbob and an ok button, how can i make it when i hit enter to call the button->click function ? <3> Enferex what compiller are you using? <2> g++ 3.4 <3> I haven't played w/ std::list there <4> He's using a list<T *>, vawjr <3> I didn't see that either <3> and nobody makes std::list<T*> <4> You don't see what you type, you don't see what other types <4> Maybe you have an ignore on * <4> s/other types/others type <3> no, I ofund it "list is contaiing pointers" <3> Enferex that's a pretty silly thing to do <4> Why?
<4> His T is probably an abstract cl*** <2> I need a container for a bunch of abstract base cl*** references <4> From his previous questions <3> Enferex why did you choolse list<T*> rather than some other? <2> for the sort functionality <3> std::sort exists <5> you can sort any container. And your container requires special sort handling anyhow. <2> ok ill s/list/vector/g <5> why choose vector? <2> vector supports std::sort <5> so? <4> Anything with iterators works with std::sort <4> (or close enough) <2> sort requires random access iterators; <5> You choose a container based on how you are using it. <2> yes Twister <3> Ashe` anythng with random iterators works w/ std::sort <4> Hence the "close enough" <4> Which you probably didn't see either <3> I was busy trying to correct you, saw it after I hit enter <2> It was a vector but I did not realize the std::sort (which requires random access iterators, that list does not have) <3> Enferex seems like you could use a book on the standard library (I recommend Josuttis) <2> i appreciate the recommendation <2> thanks for the ***istance <5> gcc source but you would need gcc installed already to compile it haha <2> I p***ed the sort() the less<T *> predicate and still my overloaded operator '<' is not called <2> Twister: gcc has a bootstrap which compiles the compiler <5> oh, nifty. <2> sure is <4> less<T *> would do exactly the same as the default sort() <5> heh <5> you have to send it a predicate that actually dereferences the objects <2> Im pretty sure my overloaded '<' is correct, any other possibilities as to why its not getting sorted? <4> struct lala { bool operator()( T * lhs, T * rhs ) const { return * lhs < * rhs; } }; <4> Then p*** lala() <2> Ashe`: thanks!! <6> bnc DISCONNECTED <7> lkj <7> well,,i did what yall said,,and d/led visual c++ 2005 express <8> isn't that nice <7> it says i have to remove the other visual studios 6.0 <7> if i install this on a partitioned part of my hdd <7> would i still have to remove the other visual studios? <9> The main quetion would be: WHY would you want to keep VS 6.0? <8> you WANT to remove visual studio 6. <7> only reason id want to keep it is i have vb6 on it <7> but im not attached to it <7> when i set up this laptop i partitioned 3gb for something later <7> figured if i dropped this on it i may not have to remove vs6? <9> Fred-Raud: Get VB 2005 too. =P <7> k <7> im just going to miss this enterprise edition <7> maybe not <5> The express 2005 is far better than 6.0 in basically every regard that I know of. <7> sounds good <0> delete VC6 and never install it again <7> i also picked up a c++ book while in town <5> Which one? <0> hopefully you didn't waste your money <7> sams teach yourself c++ in 21 days <5> heh
<0> yup, you did <7> k <5> You have chosen poorly <7> i was happy with my sams vb books <0> they're all pretty much trash <7> i bought it at half priced books paid 13$ <0> http://www.rudbek.com/books.html <-- here are the real books <5> well, $13 is not horrible. <0> could have bought a nice movie <7> came with a compiler and teaching cd <9> 13$ is horrible to get taught bad habits you'll have problems shaking later on. <0> try to return it - it's a waste of money <7> ok i can return it <9> ItS' like paying 13$ to get poked in the eye. <5> I've never read any of it so I cannot really comment. <0> I don't know anyone skilled that would consider recommending it <7> i asked before i left what books to get and got no resonse <7> response <7> so what should i look for when i head back to town <0> the list is linked to through the channel's website <5> I would buy #1,2, and 8 from that list <0> http://www.rudbek.com/books.html <-- here are the real books <7> k <5> then fill in the gaps <0> 8? <7> i dont know what the channels awebsite is <7> havent read the topic i guess <0> it's in the topic ;) <9> REading the topic can save you money! <5> You don't like "The C++ Programming Language" 3rd edition or later Bjarne Stroustrup ? <10> it's good if you can read it all the way through <10> but as a reference? it's awful. <0> it's not a great book to learn from <5> Well, for a newbie Id rank it rather high on the list <11> We've noted that it's like trying to drive your car by reading the hayne's manual. <10> depends on how much computer background you have, and if you like that sort of writing <10> hehe <5> cause the others only teach what not to do, rather than what is possible <0> I use Bjarne's book as a reference to the language, for the most part <5> I'd say you need at least one book telling you what is possible <10> better books will bring you along at a good pace <5> I use as a ref also. <7> im looking for a starting book <0> but even then, I don't use it often <0> Fred-Raud - then get Accelerated C++ <7> most ive done was open up my c++ in vs6 <0> and destroy VS6 <7> i saw that at the book store tonight <7> im deleting it in 1 minute <5> My order would be Accelerated, then The C++ Programming Language, then the STL book <5> but, thats just me. <0> i think the order on the site is pretty good <5> Well, I think the order is good, but if you buy the first N books, you don't have any reference to broad features of the language. <7> i guess it doesnt come with an uninstaller <7> that ****s <5> untill you get #8. <0> just buy them all at once <5> well, that would solve the problem hehe <5> e.g. you don't need a book saying "do this instead of this" if you don't know what "this" is to begin with. <11> Look in Add/Remove Programs, Fred <7> already doint that <7> doing <11> nod <0> that'll be $13 <7> i should download the SDK also,,right? <11> :D <0> the platform sdk, yes <7> will do <9> Eh! <7> hmm <7> says i need a pc with 600mhz or faster processor? <7> im at 266mhz here <9> ... Eh.
Return to
#c++ or Go to some related
logs:
como agrego usuarios a mi psy #linux tesacoil #chatzone #linux #windows #mysql #linux tattoo bleed to know your alive
#gentoo
|
|