| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12
Comments:
<0> Yay <1> okok. fine. it's no big deal <2> ;) <3> Ashe` : U ok? <3> :oP <0> If ok == as usual <0> Then yes <0> Time to go grab the girls from uni <0> And I'm so lazy <0> Boohooo <4> it's one of those corners of C++ thats pretty useless <3> warning: deleting array ? <3> With this line : delete[] liste; <5> Hey question <3> Is something wrong with it or what? <4> not if liste was declared properly
<5> PHP has a GREAT reference site, an encyclopedia of everything at php.net <5> What is a good place for C++ <5> so for instance, I don't remember the order of the arguements in substr() <3> www.cppreference.com <3> bealtine : Personne liste[20] = {Personne("Pierre-Marc","Rioux"), ....}; <6> you don't need to delete that <6> in fact, you can't <3> Why ? <6> you only need delete if you used new <3> Oh <6> because it's an array <3> Good! <3> SJr|Nbook : Does the website help? <4> see what cn28h said...however that looks pretty weird <5> yes <5> however I think its going to be very limited <5> but we'll see as I continue to learn it <5> thank you <3> ;) <5> Does the following trick work <5> if (inMark % 101) != inMark then inMark has to be greater than 100 or less than 0 right? <2> why don't you just test it for being greater than or less than 0? <5> I'm just curious if that little trick would work, I know its like wtf? but I was just wondering <2> it looks like it'd work <2> but it's probably less efficient than two tests <2> and certainly not as clear <5> but its less typing :P <2> that's terrible justification <5> lol I know <5> :P <3> rdragon : Computer people are usually lazy ... :) <5> hmmmm <3> Time to go! See you later folks! <3> SJr|Nbook : Good luck with your ***ignment! :oP lol <5> if I'm in a member function cl*** I can call other member function cl***es directly by there function name right, and they will work on the current object correct? <2> yes, SJr|Nbook <2> get a book. <5> I have a book <5> I'm just trying to keep the flow going <4> any book written by a policeman cant be good <0> [12:13.11] <5> PHP has a GREAT reference site, an encyclopedia of everything at php.net <0> MSDN :o <5> lol <5> thanks but something tells me it won't be to helpfull with g++ <4> msdn has a reasonable reference for the "STL" <0> You're using C++, not g++ <5> yeah but g++ is my compiler :P <0> And why would that matter? <4> oh well <5> hmmmm because MSDN is for Visual C++ <5> afaik <4> STL is C++ <5> and might be wierd <5> yes I know that <5> however at the moment <5> I've got to code, and its taxing me to the extreme <5> my teacher gave me the pseudo code basically <5> and I have just have to type it <4> get on with it then <5> I will thanks. <5> Hmmmmmm
<5> Uh with a string object how can I switch case or a case insensitive comparison <4> whats a string object ? <5> well a C++ String sorry <4> std::string? <5> yes <4> std::transform is one way <5> hmmmmm <5> okay <5> Since I don't know about transform <4> modifies the string tho <5> how about <5> converting to c-string and then using toUpper <5> or is that bad <0> toUpper doesn't exist, so who knows <5> lol I hate you <5> http://www.cppreference.com/stdstring/toupper.html <5> and yes I know the case is different <0> for (string::const_iterator it1 = str.begin(), it2 = str2.begin(); it1 != str.end() && it2 != str2.end(); ++it1, ++it2) if (tolower(*it1) != tolower(*it2)) return false; <0> There, make a function out of it <5> Hmmmmm lol this is for an ***ignment I can't just paste functions in here :P <5> lol I'll just right my own function. <0> Which would look exactly the same, ok <5> nah <0> Then it will **** <0> Har <5> lol <7> hello <7> any one here <8> read the topic <4> no the channel list is an illusiion designed to confuse you <7> I cant see people talking <8> maybe he's using telnet :P <4> you are, so obviously you are here <9> hello. can anyone tell me, why my code doesn't draw a long grey line, and a black short one? it draws two black ones.... <9> http://www.noidea128.org/sourcefiles/16115.html <9> black is defined as 0x00000000 <9> dc is a CPaintDC MFC cl*** <10> Are you properly cleaning up your dc after drawing to it? <2> could be a palette thing <2> why are you painting with dc's anyway : <2> :/ <9> do you know a better way? <10> dc's cache the drawing until you clean them up at the end. <9> it draws everything, it just doesn't want to change the color <11> hi,how can i call a function that exist in a cl*** object,thats cl*** object exist insaid a dynamic list that defined using <list> ? <6> use an iterator and the -> operator? <11> what you mean ? <6> it->fun(); <11> oh <11> i will try that,thanks <12> w00t, spring is here <12> mid 70's for the next few days, lowest for 10 days upper 60's <12> about time <12> off to work <13> Hi, are STL questions appropriate here? <2> of course <13> I'm using a STL queue but want to make sure that the item I'm adding is not already in the queue... I need to know that it's FIFO so I can't use a list, can I? <13> The standard find function doesn't seem to be happy since the queue is not a reversible structure (I think) <2> you can use a list as a fifo <2> I think a queue typically uses a deque by default internally <13> I can? Does push_back and pop_front do the same as push and pop for the queue <14> std::find needs a random access iterator. queue doesn't have such an iterator. <13> ? <14> Yes, they do. <13> Ahhh, that would be logical <14> You can also use std::deque <13> Are there any advantages of deque over queue? <14> You can use std::find. <13> Excellent, thanks! <11> i have a problem with <list> once i decleared iterator i cant access the list functions like begin() push_back() etc <11> what can i do to solve it ? <15> Those are methods on the list, not the iterator. <11> yes ,but how can i get them back ? <15> What?
Return to
#c++ or Go to some related
logs:
likes: dirty socks #AllNiteCafe kill all sleeping mysql processes #linuxhelp #java hunedoara+chatten #skype #apache Compuware stl string No instrument mapped to drum realfont
|
|