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



Comments:

<0> I mean, points to a value.
<0> Or .end(), depending.
<0> Or god knows where.
<0> So, why do you need the index?
<1> ah haa! so let say the vector got this value one,two,three ... then i "one" then "two" and then "three" for each iteration
<0> You're still making no sense.
<2> GeekNoobness: USe *i to get the value to which iterator i points.
<0> DrkMatter, he still hasn't said exactly what he's trying to accomplish.
<0> Or why.
<1> so i is an iterator and is a value which I can get by using *i, but I dont understand what value that *i hold
<2> Well, I gather that's the information he wants by the other question I answered for him earlier.
<0> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcstdlib/html/vclrfvectorcl***.asp
<0> GeekNoobness, you really really really need a book.
<2> GeekNoobness: You should go read a tutorial on the STK.
<0> "The Standard C++ Library" by Nicolai Josuttis
<1> aye aye sir



<0> STK?
<2> STL.
<0> Software Terrorism Kit
<1> To extend that joke I offer, STL : Standard Terrorism Library
<2> Well, terrorists have long been looking for a set of standard containers they could put jsut any type of weapon in.
<1> What I'm trying to do is to get index vector element given the element itself
<1> int GetVectorIndex(StringVector theList, std:string theElement)
<1> StringVector is typdef std::vector<std::string>
<1> http://www.noidea128.org/sourcefiles/15988.html ... my attempt at that ... i'm sure there is a better way of doing it
<0> But *why* do you want the index if you have the iterator?
<0> And the way to find an element, if that's what you're trying to do, is with std::find as rdragon already said.
<0> Which returns an iterator pointing to the value.
<0> or .end(), if the element isn't there.
<1> I need index, I'll try experiment with iterator
<1> is there a way to get index from iterator... that will help a lot
<1> my program is not yet next gen in the sense that it needs index to works :(
<1> Many thanks, really appreciate the feed back regarding iterator and std::find ... I will experiment with that shortly
<3> std::distance will get you the distance between two iterators, btw
<4> GeekNoobness to get an "index" from an iterator you do distance(c.begin(), iterator)
<1> thanks again
<1> Today is just not my day ... i use std::find and VS.Net 2003 complaint that find is not member of 'std' ... MS is against me somehow
<1> ok ... my bad ... i need to add #include <algorithm>
<3> heh i'm in first place and i'm suicide running
<3> bwahaha gold star
<5> heh
<5> this company wanted me to write a flood-fill algorithm
<5> that worked with the console as graphics output :/
<5> so, that was uninteresting
<5> and thanks to wiki, I didn't have to bother coming up with an algorithm
<5> http://en.wikipedia.org/wiki/Flood_fill
<3> rdragon = cheat
<5> I'm not an algorithm designer ;)
<5> im an implementor, heh
<5> and I put the link to the wiki page in the code, anyway
<6> I reviewed the code that was in the Amiga graphics chip to see if we could make it run faster, but I really don't recall how it worked any more
<5> yeah
<5> the algorithms on the wiki looked good enough
<5> i wouldn't be surprised if it wasn't much different or exactly the same
<7> is there a math function that can return the Y value of a point on a circle having the Ray and the Angle?
<5> certainly
<8> sin()
<8> well
<5> x,y is cos(t),sin(t) when the ray is length 1
<7> i know tan() is used for that, but is there a wrapper of tan() that handles angles such as 0, 90, 180, 270 and negative values
<8> what do you mean by "ray"?
<7> th ray... the distance between the border and the center point
<8> static3d_, you are thinking of atan() and atan2()
<8> erm
<8> StaZ[home],
<8> the radius?
<8> y = r*sin(t)
<7> atan2() takes the X, Y and return the angle, i need it backward
<7> oh yeah radius, sorry, translation
<5> y = radius * sin(angle)
<5> so, there you go
<7> sin(90) won't make an error?
<8> it's in radians
<5> sin(90) is 0
<8> not likely
<5> (90 degrees)



<5> er, 1
<5> *shrug*
<7> the windows calculator says incorrect entry... but yeah it takes radians...
<8> :)
<8> you need to convert to radians first
<7> yeah... okay thanks
<7> oh i really mixed up myself sorry for that
<3> hmm, my neighbor's unencrypted http traffic is booooring
<5> heh
<8> inject something interesting then
<3> i'm not /<rad enough
<5> krad?
<3> j00 d0n7 gn0 /<r4d?!
<8> you're the one sniffing packets ;)
<5> at least he's not sniffing jb, his usual
<3> they're the one's sending packets through my walls unencrypted like fools
<8> heheh
<3> for all i know, i could help route them
<3> manually
<9> anyone know a good visual basic channel?
<9> #vb.net and #vb pretty much ****.
<10> heh, I ditched #vb off my autojoin after one of the nazi ops had a spaz at me
<10> what do you want help with?
<10> sum it up in one sentence, so I have an idea if I can actually help :P
<9> right, i want to modify the date and time picker control so it only functions as a time picker. changing its Format property to 'Time' ony hides the date string portion, but you can still click for the dropdown calendar :S
<9> so yeah, pretty much it.
<10> what vb are we talking?
<10> and besides, why not just make your own with a few numeric up/down fields
<9> never tried making my own control :S, vb.net 2005
<10> don't need to make a whole new control, just chuck a few controls on a form and go for gold :D
<10> bbl
<9> err, that's kinda lame :P
<9> thanks anyways
<1> this is the only active programming chanel, as far as i know
<1> anyone know an active open source MMORPG development using c++
<11> I'm sure there are about 9000
<11> Everyone who came in last year asking how to write an IRC client has come in this year asking how to write a MMORPG
<5> heh
<5> GeekNoobness forget about MMOs... do something more realistic
<1> such as?
<5> like pacman
<1> MMO pacman
<5> *shrug* how about just pacman first?
<12> an online multiplayer PONG would be nice as well
<13> if there's a program in windows that allows you to open files by dropping a file on it, does that mean the program has to have some type of command line?
<5> what does it mean to "have some type of command line" ?
<11> I do think that's the default behavior, tie
<5> you can p*** 'command line arguments' to programs that aren't console programs
<11> It has the effect of opening that program with the dropped file's name as the first parameter
<13> JBlitzen: ok cool
<1> one of this day I will invite u guys to play my MMO ;)
<11> And every windows program accepts command line params
<11> If I had a nickel, Geek
<1> i will call it MOMO just to be cute
<5> GeekNoobness - one of these days, yeah
<13> thanks
<5> even big teams of newbies can't make MMOs
<1> that difficult huh.. i guest I'll try something simple
<12> is your IRC client already working then GeekNoobness ?
<11> Hahaha
<5> hehe
<1> that one sound less interesting
<5> programming isn't always too interesting ;)
<1> true... that is my biggest stumbling block
<5> although I don't know why a gigantic project that guarantees you'll never get anywhere is so 'interesting'
<11> Well
<11> In fairness
<11> He originally asked about an open source project
<11> Which leads me to believe you were actually just looking to help out on one, Geek
<11> But, we choose to make fun of you anyway
<1> it is OK ... I love FUN, even at my own expense
<5> *shrug* i'm working with an indie company that's making an MMO that needs good coders
<5> but they're a bunch of 'pros' doing this in their spare time
<5> saga of ryzom supposedly has some sort of engine open source


Name:

Comments:

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






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

#teens
24online crack
gustuza
#AllNiteCafe
#apache
#php
starman +undernet
#c++
#AllNiteCafe
canim



Home  |  disclaimer  |  contact  |  submit quotes