| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Comments:
<0> yaya base64 <1> bealtine: didnt that come from the old basic-like strings? <2> ja <2> i believe it means B(asic)STR <1> i just remember the basic strings to have the exact same syntax <1> and since MS has a lot of legacy stuff, 1+1 = 2 <3> thanks everyone... I am going home ... <0> who here has implemented a 2-4 tree before? <1> Not I <2> Jeff probably did <2> what was his nick again? <2> he wrote a number of templated tree libs <4> ****! <2> your point is? <1> He lacks vocabulary <2> you frightened him
<1> I am sorry <2> haha <1> Next time I will try and refrain from making any comment. <1> hm i was wondering <2> oh noes <1> can one set the name of 'main' to a different one when using gcc compilers? <1> I am working on an envelope :P <2> iirc you can change the entry point but it must call main <2> but then what would I know :) <1> Ideally i would do something like: myobfuscatedmain() { main(args blah): } <5> Hey, is it a bad idea to write myCl*** * p = NULL; *p = blah; where blah is some myCl*** object? or will it just do nothing but it's okay? <6> that will explode in an entertaining fashion <6> p = &blah; is fine <6> dereferencing a null pointer is not a good idea <5> damn <6> why? <0> strcmp() retval a singed int right? <6> yes <0> Asriel, nice, a minus value means the LHS is smaler then the RHS? <5> Nothing, doesn't really matter... I just thought that, rather than overloading a function (one to take a myCl*** object by reference as a second argument in which to store something, and one to have no second argument and not store anything), I could just have one function, whose second argument is a pointer to a myCl*** object with a default value of NULL. (and I would just have to dereference it since it's a pointer and not p*** by reference) <1> c-bot strcmp <0> does strcmp compare it in lexical or whatever style? <6> or "man" if you're on a suitably configured unix system <0> aawww <0> ok, I will RTFM then <5> Asriel: but I guess I'll just have to overload the function, eh? or is there a better way? <0> *grumble* <6> jauncie - Overloading would be tidier. Or you can just do a NULL check before you store in it <5> Hey, can you return; from a constructor? <7> yes <5> awesome <5> Thanks <7> you could have just tried <2> why "try" when you can just "ask" <2> jeez <2> :) <7> heh <2> bit twiddling idiot <0> hehe <0> I had a nightmare, 1's and 0's everywhere, and I even thought I saw a 2 <8> help <2> there you go <8> some knows a site where could i found a course for C/c++ . a pdf or somethin ? <2> most online tutorials are crap <2> you could try this : http://cplus.about.com/od/beginnerctutorial/l/blcpptutorials.htm <2> but a book would be better <2> www.rudbek.com/books.html <0> I had an orly C++ ebook somewhere <0> no idea where it is now <0> plus I abide by copyright laws so even if I did have it, I couldn't of sent it to you :) <8> = <8> +) <0> :P <9> Solamente says this tutorial isn't too horrible: http://cplus.about.com/od/beginnerctutorial/l/blcpptutorials.htm <10> I dunno about that. I'm yet to see anything good come out of about.com
<10> though I haven't seen this tutorial yet or anything <11> can we p*** formal parameter in the exception handling? <7> you can create an exception type with some member that you initialize with the constructor <11> that's fine. In catch block can we take formal parameter? <11> instead of taking byref <12> if in the definition of a cl*** I have the line : double val_pl() const; <12> what's with that const at the end ? <7> it's a const member function <7> that means it can't modify non-mutable members, or call non-const member functions <12> ok, but why is it at the end ? isn't "const double val_pl();" the same with "double val_pl() const;" ? <7> not at all <7> const double val_pl(); means that val_pl returns a const double <7> your book should cover it (you do have a book, right?) <12> I have a book, just don't know where to find that yet;thanks <13> ah... youngsters <7> which book is it? <12> I guess the translation would be something like :C++ Complete Manual - Herbert Schildt <2> use it as toilet paper <12> is this a good boo ? <7> I think that's one of those 'run away' authors <12> what do you mean run away ? <7> if you see his name, run away <12> :) , ok <12> so, which is a good book? <2> www.rudbek.com/books.html <7> http://www.rudbek.com/books.html <13> The ***ual Adventures of Jennifer Clementine <13> thats also a good book <13> teaches you everything you need to know about private members <7> heh <13> not a lot of protected members in that book actually <14> Anyone know how to trim a string? I want to remove all whitespace on the right side of a string and I'm wondering if there's a built-in C++ tool to do the job. <14> i.e. turn a string like "this is my string " to "this is my string" <12> yeah , OK :) <2> whats a "string"? <13> Jennifer Clementine knows about strings too <14> either a char *mystring, a char mystring[x] or a string mystring ... whichever works fine for me <14> if there's a function that takes any of them as an argument I'd be happy :P <15> awesome, my firce C# compiler ICE <15> and man did it ICE hard <15> heh <15> first <7> ICE = ? <7> oh <7> nice <15> had about 20+ ICE error messages, and then pretty much every token in the file after it encountered it caused an error <13> BDPE: use STL's find_last_not_of(" ") <15> intellisense's highlighting of the errors was pretty funny too <15> should have taken a screenshot <15> basically the whole file was one giant squiggly <14> Quantum`` ... nice <14> Quantum`` ... so is there a function to truncate string at character X ? <13> pfff <13> look it up <13> well <13> Ill be nice <7> BDPE: str.erase( index ); <7> erases from [index, end) <7> but yeah, look it up <13> string s = "BDPEisGheay " ; k = s.find_last_not_of(" ") ; s = s.substr(0, k ); s is now BDPEisGheay <13> fun fun fun for the entire family <14> how nice <13> :) <13> Quantum`` pleasing people since 1984 (tm) <13> thats the official .ie dinner <7> std::string::size_type k = s.find_last_not_of( " " ); if( k != std::string::npos ) { s.erase( k + 1 ); } <13> even better! <13> no copying <7> indeed <13> yay <13> who cares, its all boring <7> heh <2> you old cynic
Return to
#c++ or Go to some related
logs:
#MissKitten bennyhillslovechild #linux #apache #linux mepis vdr #php #c++ psychosis-marijuana miniclit
|
|