@# 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 18 19



Comments:

<0> I guess
<1> this->-> would be funny
<1> almost looks like a little man
<2> I thought I read somewhere that operator -> would "look at the target and IF there were an operator -> defined, call it"
<2> I'm pretty sure it was in one of Bjarne's books
<1> return m_hr = (*this)->Open(), SUCCEEDED(m_hr);
<1> i like code like that too
<1> wait, i lost my appetite again
<1> people that publish code like this do a grave disservice to everyone else in the profession
<0> If you use it much, I guess you could do T & thisthereturnofthevengeance = * this;
<3> hey guys
<4> hey
<3> im trying to use the ... in a parameter-function i need a little push
<0> va_list, etc
<1> off a cliff?
<0> But why would you use ...



<3> i have an undeterined amount of variables i need multiplied
<1> this sounds like a job for: std::transform man!
<0> And a good old vector
<0> Or even an array
<0> Or anything you can iterate over
<3> i want to do something like int mult(...) - so i can send mult(intar[0], intar[1], ntar[2]) and so on depending
<1> ok, i need to get some food quickly before another code snippet makes me lose my appetite
<1> bbiab
<5> ashe are you same ashe on SoG
<1> there can be only one ashe
<2> KBM why do you want variable number of args?
<1> two would require vast amounts of stupidity the likes of which the universe has never seen
<3> sch project
<3> i need overloading funtions
<3> and one of them (...)
<0> What's SoG?
<2> KBM "need" is a very strong word
<5> nm
<0> mult( intar, intar + 2 );
<0> Looks so much better
<2> or even mult(intar, 3)
<0> I prefer the iterator way
<0> More flexible
<2> boost::range ??
<3> ok can u guys just show me the ... way?
<0> nope
<3> point a webside out
<2> KBM we think you're doing it all wrong and we'll be happy to discuss it
<2> but you don't want to...you've already decided you want to use ...
<2> so, go use it
<3> i dun understand the iterator way
<2> Ashe` suggested a 'half open" range defined by two iterators
<0> Then just vawjr's mult(intar,3)
<0> That's easy to understand
<3> lol - i dun get it
<2> KBM it really depends on what you're doing (which you haven't said)
<0> T mult( T const * args, size_t n ) { no?
<2> KBM what exactly are you trying to do?
<3> ok im reading in a line
<3> this line is goin to be something like "5 6 85 65 65 6 9 9"
<3> and so forth
<0> Ok, then istream_iterator ;)
<2> or getline, if the line means somethign
<3> then i have something reading the amount of spaces
<2> huh?
<3> and then i have a funtions that gets the 5 and puts it inside a int * array
<2> kBM we're not interested in your solution, we're interested in the problem
<3> lol
<2> geezus, a dynamic array instead of std::vector???
<3> sure why didnt u say so
<2> c'mon
<3> lol
<3> well teach hasnt discussed vectors so he doesnt want us using it
<0> So you want to do 5 * 6 * 85 * 65 etc?
<3> yea, depending on what the user types
<2> but he want's you using dynamic arrays? tell your teacher s/he's a fool
<3> yea.
<2> damned teachers will be the death of C++ yet
<3> well.. wat can i use an iterator or a funtion(...)
<2> KBM there is a library thing that will return the product of an arbitrary container of any numeric type
<6> KBM, You can shut this dumb up counting the number of letters, then creating a dynamic array by a new (size_t) operator



<2> teaching you how to do it any other way is folly
<2> and since you already have read the line into "something" you probably don't even need the array
<4> Hi all, can someone give me an IT career advice
<4> Im a fresh grad still struggling on what to do lol
<2> what do you _want_ to do
<4> i do like technical side of it
<4> im thinking of getting into SAP heard of it?
<2> "technical" is still kinda vague. no
<7> is thre a channel for crystal reports
<4> i dont mind programming
<4> just that it seems programming jobs are getting offshored
<0> You don't like Bollywood?
<4> who me?
<0> And I doubt there's still someone left who has not heard of SAP
<4> ic
<4> well i just heard of it
<4> lol
<2> given the way we teach supposed programmers, it's no wonder they're going offshore
<4> but i heard its good
<4> Ashe: what do u do for a living
<4> SAP is an ERP package
<4> its just a huge business packages
<4> widely used
<8> whats the difference between func() and func(void)? And which is better programming practice?
<2> the 1st won't compile as C
<8> and that is really it?
<0> It'd compile as C
<2> I guess I shoulda said standard C
<0> odez909: travelling, and some programming
<0> It's like func(...) for a prototype
<0> And like func(void) for a definition
<0> Nope?
<4> ic
<8> so I should use func(void) then?
<2> I think the standard tightened it down and you need to say func(void) now (in C) in C++ func() is fine and used often
<8> ok
<8> Thanks :)
<8> i have to take a programming cl*** and we started with the structure of a main program for two days (2 hours a cl***) :(
<2> SB_ sounds like it's gonna go slow... what's the "title" of the cl***?
<8> 'Programming and Problem Solving'
<2> and what language are they using ?
<8> c++
<2> I sure hope the prof has read AC++
<0> s/hope/dream
<1> mmm, nothing like some good chicken noodle soup on a near record high day in january
<8> i dunno
<2> because getting bogged down in arrays/pointers/malloc is gonna screw things up fast
<8> he used to do OS work (not sure what that entailed) for IBM
<2> where you located?
<8> youngstown
<8> US
<2> dont' think I know any Ohio IBMers
<8> one sec
<8> lemme give him a nem
<8> *name
<8> Bodnovich
<2> do you know which office he worked in?
<9> good morning
<8> i can email him and ask
<8> lol
<9> I'm trying to declare a pointer to a function that returns an STL object, and I can't get the syntax right
<2> most of the guys I knew were in the Toronto office.. had some problems w/ some drivers in OS/2
<8> oh
<10> boost::function< std::string(int, int)> func;
<8> want me to email to find out or do you not really care :)
<0> STLthing (*p)();
<9> well, maybe function pointers are the wrong way to go
<9> I'm trying to make a cl*** that's generic across a few kinds of search, and the person using the cl*** needs to define completion, comparison, and successor functions for the cl*** to use
<9> I figured they could just define the functions and p*** pointers to 'e,m
<9> 'em
<0> You could inherit and have them virtual


Name:

Comments:

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






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

#MissKitten
aptronyms: the booby trap
#linux
eglo krono
#linuxhelp
#teens
#c++
startx parameters fc5
#linux
MrSolo Undernet



Home  |  disclaimer  |  contact  |  submit quotes