@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6



Comments:

<0> I was trying to sort the strings and then get the smallest one's
<0> but it didnt worked
<0> i quess that ill skip some of the exercises and go on the next chapter
<1> ConiX ummmm, no
<1> 3-3 seems somewhat out of place though
<0> I don't know about that... many of the exercises in chapter 3 are out of place
<1> no only that one
<2> haha
<0> 3-2. Write a program to compute and print the quartiles (that is, the quarter of the numbers with the largest values, the next highest quarter, and so on) of a set of integers.
<0> what about this one?
<1> what about it? they tell you about sort
<0> I can't find the last index of the vector
<1> you don't USE the index
<1> ever
<0> well can you gimme some hints how to complete this exercise?
<1> well, you know how many elements are in it



<3> Heh... I see he's up to the chapter that we don't have solutions for.
<1> you know how to sort
<4> v.back() <= the last element, no index needed
<2> haha Solamente
<1> Solamente yeah
<1> and 3-3 really IS out of place
<0> v.back() - this isnt' mentioned yet
<1> they haven't even mentioned find() yet
<2> ConiX: hint for 3-3, std::sort will do it
<1> Cowmoo no it wont
<2> s/do it/ help
<0> heh ok Ill sort the vector sort(v.begin(),v.end())
<0> and then I need to find the last element, the largest of the vector
<0> how to do that?
<2> wait huh
<2> why do you need to do that
<1> ConiX NO YOU DON'T
<2> you just want to output word frequencies no?
<0> 3-2. Write a program to compute and print the quartiles (that is, the quarter of the numbers with the largest values, the next highest quarter, and so on) of a set of integers.
<1> Cowmoo right now we're working on 3-2
<2> guh, ok, I'm off to find breakfast
<0> well vawjr what to do then?
<0> after i sort
<0> the vector elements
<1> ConiX well, what do you think you need to do (and you mgiht want to sort in descending order)
<1> but whatever. you know how many are in the vector, right??
<0> hah I only know sort()
<0> I think it sorts in increasing order
<1> ok, we'll live with that
<1> but whatever. you know how many are in the vector, right??
<4> Hmm, much echo in this channel
<2> moo
<2> haha
<4> You killed him
<2> vawjr: regarding my std::sort for 3-3 comment above, why do you disagree
<0> hey vawjr
<0> u here?
<1> I don't see it's going to do any good, or are you planning or sorting at the end then counting "duplicates" as you go through the vector?
<1> yes
<1> Cowmoo that will work, of course.
<5> helo
<0> well Im trying to get the last object of the vector
<2> yea vawjr
<2> the latter
<0> if the vector have 5 elements i want to get the 5-th
<1> Cowmoo ok, sorry
<1> ConiX why?
<2> npnp, was just curious
<1> Cowmoo I missed that solution, and sinci I'm writing the "answers" to that chapeter, I thank you for the idea
<0> well for the task....
<1> I _need_ 3 answers for each question
<2> oh are you workinng on a complete solution guide?
<5> lol
<1> Solamente and I are (kinda slowly)
<5> you make
<1> and we want one answer that uses only what's been covered thusfar in the book
<2> aim is to be published online, or sold as a book?
<5> x=V[5];
<5> to have the fifth elemen
<1> and as a final answer, one that uses ALL of C++
<5> of the vector v



<1> Taichimaro no
<2> ah
<1> v[4]
<5> why ?
<5> yes
<5> because it begins from 0
<5> sorry
<1> np
<0> btw, any good website of C++ sources ?
<1> ConiX not really
<1> if you want to learn C++ stick with the books
<2> ConiX: Accelerated C++ :P
<1> there's too much **** on websites and you don't know enough to tell the **** from the shinola
<1> of course, neither can Webster
<0> well after accelerated C++ what to read next?
<4> Even faster C++
<5> if i want to make the things in a file into a struc
<5> how can i do ?
<1> I recommend the books here: http://rudbek.com/books.html
<1> ConiX you need to figure out where the "quartiles" start and end
<0> vawjr you read all that books? :)
<5> who work with allegro ?
<1> yes, I own them all and have read them all
<0> wow
<1> Taichimaro what does "make the things in a file into a struct" mean?
<5> u work with it ?
<5> for exemple
<0> oh read this on the top of the page: Here are vawjr's recommended books for C++.
<0> :)
<5> i have a file which contain
<0> vawjr what compiler you use for C++ ?
<5> C01 MOUSE 100 6
<5> C02 PRINT 200 5
<1> at work I use vs2005 team system
<5> and i want to put every field of every line from the fil to the struct
<1> at home I usually use vs2005, occasionally dev-cpp
<0> and how did you learned the IDE with those books?
<1> Taichimaro I'd overload istream& operator >>(istream&, yourstruc&)
<0> they don't learn you the IDE
<1> ConiX no, the ide is something else
<1> has little, if anything, to do with C++
<5> what is IDE ?
<1> Integrated Development Environment
<0> and that was your only sources to learning C++ ?
<0> did you go to some courses ?
<0> in some education centers
<0> ?
<1> ConiX lol, no, I've been programming for 41 years professionally
<5> yes
<5> of course
<6> hey vawjr, any opinions good/bad on this book: http://www.amazon.com/exec/obidos/ASIN/0321227255
<5> but we learn for the first year
<6> (have you read it?)
<5> TURBO C++
<5> :s:s
<1> Taichimaro piece of junk compiler these days
<0> vawjr so you only read that books ?
<0> nothing else?
<1> ConiX I said I've been programming for 41 years, I sorta knew C when I started C++
<5> i'm just a beginer
<1> rdragon yes, I have the book, it's a tough read for me
<0> and in what age you started programming C++ :
<5> !
<4> He programmed dinosaurs ffs!!
<4> He started at 35!!!
<1> ConiX around 50
<5> ah yeah
<0> ?????????
<1> umm, actually maybe 45
<5> who program games ?
<0> you lie
<1> ConiX who lies?
<0> you've been programming for 41 years so if you started at 50 now you have 91 year ?
<1> no no


Name:

Comments:

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






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

#skype
#linux
configure: error: no acceptable C compiler found in $PATH install apache
#java
#php
definition liberaltarians
jenniferoo
#linux
#AllNiteCafe
anvil ospf



Home  |  disclaimer  |  contact  |  submit quotes