if i remember correctly....
doubles aren't 100% accurate. i don't think you can compare them conditionally. if you know the precision of the numbers you can multiply by 10's to make them whole...
Type: Posts; User: computation
if i remember correctly....
doubles aren't 100% accurate. i don't think you can compare them conditionally. if you know the precision of the numbers you can multiply by 10's to make them whole...
Yeah, those were typos....i do it all the time with 'string' and 'str'....
i'm liking the begin()+index idea..haven't tried it yet, but i'm sure it works..
thanks Dave .... ("good effort " to...
All i'm trying to do is erase the first occurance of a character in a std::string.
str::erase(iterator) takes an iterator as an argument, but std::find() returns size_type.
This is the best i...
but int's aren't that big
Is there a way to return bit fields via class methods? ..Or even typedef them?...Or maybe even (void) pointers to them?
example:
class BitField
{
typedef unsigned:28 Bytes7
public:...
sorry for posting in the wrong section....i was originallyl going to ask a c++ question, but changed my mind.
so when i read about hashing and it says "formula", it doesn't necessarily mean a...
I'm a little unclear as to what hashing is exactly. I'm in the process of writing a word jumbling program and I came up with a scheme to compare a large number of words fairly quickly. I want to know...
good point. originally i didn't add the '\0'. i put that in out of desperation at 4 o'clock in the morning.
I remember trying to use next_permutation with strings about a year ago. If I remember...
I'm trying to give my program some letters and have it "jumble" them around to find words. This means I need to find all permutations of all 'lengths' of the word. My program seems to find the first...
When's the last time you've been with a woman?
3 Words:
E-Town Concrete
If your words are true, and you've never heard them, you need to. As a matter of fact, you can find them on myspace.
If you like 'em we gotta talk. I need to find...
I love how message boards work
google: "myspace lawsuit austin"
First google return:
http://www.statesman.com/news/content/news/stories/local/06/20myspace.html
(not sure if i've read this one yet... hope it's not biased)
WHY should myspace be responsible at all? Why is it that people feel that myspace should take security measures? Are there any laws which say they have to? People should be thankful that they put in...
I don't know how anyone could possibly fathom the idea of suing an internet site (myspace.com - in case you haven't heard) because their kid got raped. I'm sorry, that's just stupid. I pray to God...
when i first saw it and actually thought that at first. i had been reading for a few hours on my computer before i picked up where i left off in the book......my eyes were fried
the brown code?
I'm intrigued, in the da vinci code, on page that should be marked a page 153, it says "SOS" in place of the page number. I've been searching the internet but I can't find anything about it. Any...
I ussually wait until i'm completely fed up with the problem and then post.......and then realize I could have had an answer 2 and a half hours earlier
glad we could help :)
I had sygate for a while but it kept making my system lock up, so i switched to zone alarm
Plus it's in the linux programming section
Rebuilding the kernel is pretty easy actually....
the process is basically this...
download a kernel
untar it
cd into that directory
now, 'make menuconfig' #this is where you configure your...
in short, we are accustomed to counting in multiples of ten. we use the digits 0-9. once we need to count past nine we add another decimal place, giving us the number 10, hexidecimal is exactly the...
i don;'t know much about sockets, but it's probably because you aren't dereferecing wsocket and rsocket. try *rsocket and *wsocket in the FD_SET() function call