@# 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> The docs say it would be non-intrusive :/
<1> so, add it
<2> #include <boost/serialization/set.hpp>
<2> Didn't you say you're reluctant to use Boost, anyway?
<3> anyone every use GNU commonc++? I like its minimalness.. or should I just use Boost for everything?
<2> commonc++ is GPLed ... so I don't use it.
<3> oh.. well i don't have that problem as i develop OSS software anyway..
<2> I do, too.
<4> Run
<3> load "*" ,8,1
<5> hey ev
<5> i need some help in php
<0> wtf
<0> /usr/include/boost/archive/basic_xml_oarchive.hpp:71: warning: unused parameter t
<0> Can't they even get that right? I'm not going to use libraries that generate warnings :/
<5> so ?



<6> iterator and indexing are the same right?
<7> unused parameter?
<0> YUY0x7: yes
<7> why would that produce a warning? function parameter?
<6> (int i = 0; i != 100; i++) i prefer this way instead of (vector<int>::iterator i = vec.begin(); i != vec.end(); i++)
<0> use ++i
<0> not i++
<6> and why?
<7> they don't do the same thing there
<6> both are the same
<0> because i++ is slower, it makes a copy of the iterator (calls the copy constructor).
<6> Run: why do we use iterator insetead of simple (int i = 0; i != 10; ++i)?
<6> instead*
<8> because an iterator is a well defined, generic interface that can be used throughout the standard library
<9> iterators provide independance from the container you're using.
<7> you couldn't do index iterating for a std::list for example
<7> or most other containers for that matter
<6> so if dealing with containers i must use iterator?
<6> coz i tried size_type in vector and it worked fine
<9> You don't "have to" with all of them, but it's good practice.
<9> If you ever change that vector into a std::list, then you won't have to rewrite your code.
<7> yes, vector is random-access
<6> ahh k
<6> my favorit is favorite and easy way is (int i = 0; i != 10; ++i) so i'll stick to it
<6> thanks guys
<7> btw, it's i < v.size(); not i < some_magic_number ;P
<9> At least he did >++i instead of i++!
<0> I wouldn't use indexing with a std::vector.
<0> There is no reason for it, and you might generate easily an out of range.
<7> out of range, how?
<9> Hm, i<v.size() has no more chance of generating out of range access than i!= v.end()
<0> if the size is less than 10
<10> i++ would be equivalent.
<0> and he uses that i != 10 .. then it will core
<10> it has less of a chance
<6> i think its i != v.size() not i < v.size()
<10> wrong
<7> use <
<10> what if you do i+=2
<0> != is for iterators.
<10> or i+=10
<6> i++ is the standard
<10> yes, but nothing prohibits i from being incremented inside
<0> And he is a clueless newbie who thinks that because he used int more than iterators, int must be better.
<10> heh
<9> Well, I think theres a point in saying indexing through a vector is slightly more readable than iterating over it.
<10> I must admit I am guilty of using the normal for syntax with non-iterators for vectors
<6> DrkMatter: i agree, more readable and easy to understand
<0> I think it's a horror that you have to keep in mind that it is a vector at all while reading the code.
<9> javaq_: But I like I said, iterating has a lot of bigger advantages than "slightly better readability".
<10> I rarely if ever use for_each... even though maybe I should start.
<9> for_each is a bit limiting.
<10> yeah, bu lots of times it is sufficient
<6> * and & are they the same?
<10> no.
<9> & = address-of operator. * = dereference operator
<10> if they were the same, why would there be two of em? Just to confuse people?
<6> * is equivalent to [i] right?
<10> no.
<9> No.
<10> * and & both have multiple meanings depending on where they are used.



<9> In most situation, *dereferences the variable it is applied to. It go fetch what's at the address it points to, adn returns an object.
<3> anyone here know what happens to global variables in a dll that is shared between processes on windows? do the globals get their own storage in each process?
<10> I doubt it, but I am not sure. Me and DLL's don't get along too well yet.
<9> I don't know either, but I' sure it wouldn'T be hard to google. I'll do it for you if you send me donuts.
<3> if they don't that would seriously ****
<3> heh
<11> i ttok input from an ascii file with getc and put them in an char array[60] .. now i wanna concat the 5th to 10th elements of that array and make a string.. how do i do that ?
<6> does .size() works in arrays?
<3> javaq_, nope.. this ain't java ;)
<3> Cyclop, you want to concat 2 chars, the 5th and 10th?
<11> i am using C
<12> then go to #C
<13> but then again, you shouldn't be using raw arrays
<13> std::vector for teh win
<11> yeah .. went there .. but nobody answers
<6> KrispyKreme: so i'll have to count the numbers inside array. pain in the a**
<12> well this is a C++ channel
<6> or elements
<13> javaq_: std::vector
<3> vectors are your friends..
<0> What do you guys think, should one indent source lines following a 'template<typename T>' line, or not?
<11> well anywayz .. can any1 help me ? i think i am missing something very simple
<12> no Run
<10> not
<13> Run: no
<14> what does indent mean?
<15> #include<iostream.h>
<15> #include<conio.h>
<15> cl*** convert_to_metric{
<15> private:
<15> int feet;float inches;
<15> public:
<15> void length(int feet_part,float inch_part);
<6> vector is gay
<15> void convert_and_display(int feet, float inch);
<15> };
<15> main(){
<15> clrscr();
<10> oh geez
<15> convert_to_metric oA;int iB=17;float fC=15.5;
<15> oA.length(iB,fC);
<11> crap
<13> Run: I've never seen anybody do that
<11> hahaha
<10> I don't indent anything unless it follows a } more or less
<14> what does indent mean?
<10> except wrapped lines cause I keep 80 char rule
<3> sk8ing, it's like putting a tab before stuff
<13> I only indent what emacs tell me to indent
<10> does anyone here actually use tabs?
<10> and how many spaces if not tabs?
<11> what ARE these rooms for !? NOBODY FRIGGIN HELPS !
<14> hmm
<0> I use 2 spaces to indent.
<10> I usually stick to 2 spaces too
<13> calc fallback
<16> fallback = We are NOT your fallback channel. If you can't get help somewhere else (not related to C++) you won't get it here. If you keep going with this, chances are you'll get your *** booted.
<3> calc fallout
<16> Nothing found for 'fallout'.
<3> calc God
<16> God = Bjarne. See also: TC++PL, D&E, http://www.research.att.com/~bs/homepage.html.
<3> calc calc
<16> calc = Calcs are for you, the user, to learn from and for us, the ops and regulars, to teach you with. CalcMe is a bot which responds only to ops and regulars (others - don't bother trying to calc).
<0> calc indent
<16> indent = consistent indenting style is important! See http://www.tuxedo.org/~esr/jargon/html/entry/indent-style.html for a summary of different styles.
<10> heh, nice.
<3> wow i'm a 'regular'?
<15> anyone knows round robin
<3> i know square marvin
<10> I know paste site
<10> and my name on some days.
<3> wow you're smart


Name:

Comments:

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






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

Taryl Walker
What colour are the castellated walls of the Kremlin ?
#MissKitten
#php
#AllNiteCafe
Publicus String Replacement
it was until you spoke
swydm pass
te gadil
#london



Home  |  disclaimer  |  contact  |  submit quotes