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



Comments:

<0> james bond sux
<1> hi
<2> having a hard time understanding why my sorting function is slowing down here... http://www.rafb.net/paste/results/7vwSLZ81.html
<2> id appreciate if someone has time to take a quick look and tell me where its getting in trouble
<2> im thinking its those stl methods i used on the vectors
<3> what about the stl?
<2> I think that things like insert() and size() may be slowing it down
<3> well size() on a vector is cheap.. insert is not
<3> whereas with a list, the reverse is true
<4> are you inserting in the middle?
<4> crostyna why are you writing your own sort?
<3> if you insert at the end, and you reserve() space, it is cheap
<4> there's one in the standard library
<3> yeah.. heh
<3> i bet it's for a cl***
<5> hi everyone, i have an array containing 4 differents numbers and i want to display them on the screen but using * and + symbols, where * equals 2 and + equals 1, so 7 would be like ***+ and so on. i thought about using the modulo operator but i'm not too sure where to start, can anyone give me a hand ?



<4> mast` you're only going to have 2 symbols??
<5> yes, one for 2 and one for 1 (used when the number is not pair)
<6> sounds like just a (stupid) homework ***ignment
<5> it is, i'm not asking anyone to do it for me though, just an hint of where to start
<4> so if you were going to print 2345 it would take a LOT of space
<7> Well, not like a huge amount of space
<6> mast`, well think what is the fist thing you should determine?
<6> s/fist/first
<7> * *+ ** **+
<4> 1173 chars?
<5> vawjr, the numbers are small. the project was to take numbers between 1 and 4 from a file, store the amount of each of them in an array and show the little "graph"
<7> Oh, not per digit
<7> I gotcha
<4> he said "number" I don't know yet
<5> ouch
<7> What would be the output for 25?
<8> 12 *'s and 1 +?
<5> 12 times * and a +, but 25 is way higher than what i will have to print
<7> Damnit moo, am I asking j00
<8> am I understanding mast correctly?
<8> I'm asking t00 f00
<7> So you're just looking at up to 4
<7> How many iterations?
<7> What would a sample file look like?
<5> JB, not really.. if I have 7 or 8 times "4" in my file, I'll have to print 7 or 8... but there's 24 numbers in the file so..
<8> mast`: cn28h gave the best starting point
<7> Yeah, but up to 4 for input
<8> look at one integer in isolation, and plan to represent that
<5> my array is something like {5, 8, 10, 1}
<8> you should write a function that'll work regardless of integer
<4> mast, this is for school, right??
<5> yes
<8> for a start don't think of the whole array, just think of one integer
<9> hi, how can i convert .html to an executable
<9> ?
<8> how would you create its *+ representation
<4> pirounis you cannot
<6> pirounis, what would said executable do?
<8> you are on the right track with mod
<6> html isn't executable code
<6> it's markup
<9> i have a project and i want to protect it this way
<5> i wanted to use modulo, to see how many 2 i have in the number, the substract 2* this number to the int, and check if i have 1 left
<4> "protect" it??
<9> because its gonna be distributed in cdrom format
<5> 5%2 would returns 2 right ?
<6> html is obsolete, anyway
<6> mast`, no
<4> mast` no
<4> it returns 1
<9> i found some programs they convert html files into executable
<9> any suggestions ?
<4> pirounis we have NO idea what you're babbling about
<5> oh, then i'd have to loop until <number>%2 is 0, and remove 2 every times then see if i have 0 or 1 left ?
<9> look, i have a html project and i want to convert it to exe
<8> yep
<4> pirounis I have NO idea what a "html project" is
<6> pirounis, just put a javascript p***word on them to protect them
<6> anyway, I'm out
<6> later all



<9> vawjr ok its not a html project its a project in html format
<9> satisfied?
<4> pirounis nope
<9> ok
<8> wait, no
<5> oh ! that explains it, I thought <number>%2 would return the number of 2 there's in <number>
<7> Are you hiding content or what, pirounis?
<4> html is a markup language.. suitable for displaying stuff in a browser
<4> that's all
<9> i just want to protect the content my graphics and stuff
<4> mast` no, that's divide
<7> I suppose you could store it in an encrypted format and use a decrypting custom browser to display it
<8> how about you skip mod and just keep subtracting 2
<7> You basically can't, pirounis, they could always take a screenshot.
<7> There are some image formats that make that difficult, but by no means impossible
<9> lol yes they can
<5> vawjr: it is, but only if the number is pair.. otherwise i would get a decimal
<4> mast` nope
<9> they also can copy the html files
<9> and change'em a bit
<7> Legal protection would be more useful with that sort of thing
<7> Or maybe wrap it in a flash movie or something
<7> But really, it's unclear what your goal is
<9> look, we are in the development of a multimedia magazine, with games mystery articles and lots of stuff this project is gonna be distributed in cd rom disks
<9> its not unclear, my english is bad :)
<4> ok, and what do you need to do?
<9> html to exe can be done, i found some programs they convert html files into executables but they are not exactly what i have in mind because they have some kind of browser non compatible with the project
<9> all im asking if someone here can suggest me a nice program to convert html files into exe
<4> you want to take an html page and convert it to an exe that when executed displays the page?
<9> yeap
<4> because someone has suggested to you that this will "protect" the content?
<9> it wont be protected?
<9> anyone can open a html file an read the code
<4> so far you've come to us with a solution, but havetn't stated what the problem is
<4> read what "code" it's just a description of how to display stiff
<9> the problem is what i havent found the program that meet my needs
<4> not surprising, you haven't expressed your needs very well, IMO
<9> my bad english
<9> not my fault
<9> i know what i want i cant express it
<4> we are hard pressed to offer suggestions
<5> personne reste ste-anne de bellevue ? :/
<5> crap wrong channel sorry
<10> ,/j #asm
<10> oops
<11> what's the point of using:
<11> #ifndef FGETDATA_H_
<11> #define FGETDATA_H_ 1
<11> #endif
<11> than:
<11> #ifndef FGETDATA_H_
<11> #define FGETDATA_H_
<11> #endif
<0> corstan, it's useless
<11> why digit after #define FGETDATA_H_
<11> hm, ok :)
<11> I've seen it several times
<0> corstan, the value is unimportant
<12> how do I write a telnet client
<11> Zoffix19, by learning to?
<13> ciao
<11> any tip in how to include two functions from another c++- file into a c++-file
<11> do I have to use header files?
<11> to prototypes in a header file?
<11> two
<14> ?
<14> read the book
<4> corstan normally you don't include entire functions
<11> no?
<4> no, you just include a declaration
<11> got a tip from #C than I could use extern
<15> corstan, what ever answer you got from #c applies in c++ too
<4> you then let the linker put them together


Name:

Comments:

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






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

#chatzone
#linux
#AllNiteCafe
#php
#chatzone
gentoo gcc-config prune
hry barbye
MrSolo mIRC
wget bnc
nisma, xxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Home  |  disclaimer  |  contact  |  submit quotes