twomers 408 Posting Virtuoso

>> now can someone please lock this thread.

Done. Now nobody can post on this without the passcode which I possess.

twomers 408 Posting Virtuoso

>> Nah, we just don't know any better.

Well I for one definitely don't learn from my mistakes :)

twomers 408 Posting Virtuoso

>> I laughed.
Good work. You loose ... zero cool points.


I used to say lol and rotfl to amuse myself and to annoy people but then stopped cause I heard someone who said it in earnest all the time and it sounded ... not good.

jbennet, I like the sound of (a).

Oh, also (when I atext message on my phone), I don't use shortened words. It annoys me too :/

twomers 408 Posting Virtuoso

>> Maybe cause it would scare me.
Note - I am not currently in a relationship :)

twomers 408 Posting Virtuoso

>> Why should it?
I dunno. I guess it's just because the thought of marrage for me at this time is nearly as far removed from me as something that's miles away.

Maybe cause it would scare me.

twomers 408 Posting Virtuoso

My point about the flat earth was not that its roundhood has been known since the Greeks but that a major "wrong" was believed as a "right". OK. It wasn't the greatest analogy to pull on second thoughts. I'm not going to say what I think might be right or wrong ... but I'm certain that some things we think are right (or rightish :)), aren't.

Meh. Ignorance is bliss :)

twomers 408 Posting Virtuoso

I predict that a couple of decades from today when scientists has a good explanation of dark matter the religious lines will be altered again.

And I predict that in a couple of decades from now scientists will change their opinions too! It's not as though science is the church's specialty. Nor is religion the forte of scientists. I bet we all will change our opinions on every matter when more information on it is discovered. Who here can really say they know enough or have training enough to argue intelligibly over matters which are not understood? Nobody. Come on. We thought the earth was flat. Everyone speculates. Nobody is infallible - neither scientists or the church. Everyone makes mistakes. "Let him who is without sin cast the first stone", as is said. Who knows. It is possible that many of our current theories are as flat as the earth of old.

twomers 408 Posting Virtuoso

Nah. I crank it to 11 so I can't hear them. However. What's wrong with Polka? :P

twomers 408 Posting Virtuoso

Sure you can -

int main( void )
{
    int  thing_i;
    char thing_c;

    std::cout<< typeid( thing_i ).name() << '\n';
    std::cout<< typeid( thing_c ).name() << '\n';

    if ( typeid( thing_i ) == typeid( thing_c ) )
        std::cout<< "Both types the same!";
    else
        std::cout<< "Types are of different types. Phooey!";

    return 0;
}

Oh. I misinterpreted what you meant.

You could use stringstreams I guess. They're great. Or isdigit() or any of those issomething()'s.

twomers 408 Posting Virtuoso

>> func(hello);
Doesn't that flag an error? Isn't that like using an 'overloaded consturcor' ... after construction?

>> (*func)(hello);
func->hello :P Heh.

twomers 408 Posting Virtuoso

I just choose the value 42 there. You could use any number and I *think* you should get the same numbers. So I reckon the time(NULL)'s were returning the same number each time.

The static type ... you should do some reading on it. It basically doesn't really go out of scope when the function ends. It kind of globalises local functions within a set scope, in a sense. So the boolean value (is_set), is there. Then I test it as to whether it's true or not. If it isn't I seed rand with one value and then set its value to true. This means for the rest of the
duration of the program it's value is true which means it doesn't get seeded again with the same value.

twomers 408 Posting Virtuoso

Have you ever tried calling rand() without seeding it? If not use a loop and call it ten times. Note the results. Then execute your program again and look at the results. You should notice the same numbers coming up:

int main( void )
{
    for ( int i=0; i<10; i++ )
    { 
        printf ( "%d ", rand() );
    }
    return 0;
}

(also, could you use code tags? It makes code easier to read.)

I'm not certain, as I said, but I think you're calling the functions quite fast after one another, so perhaps they're getting seeded with the same value ...

int main( void )
{
    srand( 42 );
    for ( int i=0; i<10; i++ )
    { 
        printf ( "%d ", rand() );
    }
    
    printf ( "\n" );

    srand( 42 );
    for ( int i=0; i<10; i++ )
    { 
        printf ( "%d ", rand() );
    }
    return 0;
}

so it shoots out the same numbers. Remember it's not truly random. Just pseudo-random

twomers 408 Posting Virtuoso

I'm assuming you don't want to use the cosine function either :) You could create a table of results and read the values off that instead of using the sine function. Alternatively you could use exponentials and imaginary numbers ...

twomers 408 Posting Virtuoso

>> Haha, I literally LOL'd when I read that. :P
Hang on. Did you say "LOL", or did you laugh. I really hope it was the latter. People who do the former are weird!

>> talk about lame come backs :P
You're a lame comeback!

>> "yeah well ur mum!"
I hate those ones. Some friends of mine brought it to such a level that no matter how well humoured the joke I have to punch someone very hard. Or at least I want to. Or I get out of the room and play loud music.

twomers 408 Posting Virtuoso

I think it's to do with where you seed rand. I'm not absolutely certain, but I think (note, this wasn't compiled so it mightn't), this should work -

int getCard(void)
{
    int range;
    int card;

    static bool is_set;
    if ( !is_set )
    {
        is_set = true;
        srand(time(NULL));
    }
    else
        is_set = false;

    range = (10 - 1) + 1;
    card = rand() % range + 1;

    return card;


}


int first2(void)
{
    int firstCard;
    int secondCard;
    int total;

    firstCard = getCard();
    secondCard = getCard();

    total = firstCard + secondCard;

    printf("\n\nYour first card is a %d, and your second card is a %d.\n", firstCard, secondCard);
    printf("The total for the hand is %d.", total);

    return total;
}
twomers 408 Posting Virtuoso
twomers 408 Posting Virtuoso

>> but not the state between the two

I dunno. Nagasaki, I think, gave us a good indication.

twomers 408 Posting Virtuoso

>> hmm.. I think that's a rather poor metaphor to use for human consciousness[...]
>> Is it fair to say that a thread is composed of physical matter?[...]
Thankfully I was being as blatantly sarcastic as I could be.

>> Caleb and I are probably going to get married in a couple years...
Does that not scare you?

twomers 408 Posting Virtuoso

>> In Cavascript++ the parenthesis for function parameters are not mandatory.

How does one tell the difference between a function and variable then? That sounds like not a great feature.

twomers 408 Posting Virtuoso

Resurrecting ... three years ... days ...

nevermind.

twomers 408 Posting Virtuoso

>> assert ((time - t1) < NOT_LONG);

Unless time is a local variable which gets updated all the time I would expect that should be time()-t1 ...
>> bebo.wonder_what_the_what_that_is();
Best not ask.

twomers 408 Posting Virtuoso

>> back to "Destiny"
On a side track, you reckon threads on daniweb have destinies to become the best threads there are?

If you look at any thread they're made up of sentences, words, letters, characters, symbols, atoms, dark matter etc etc. In English whenever something happens there's always a 100% chance that someone will misinterpret the underlying meaning. This is unless someone interprets the meaning for people. Since each thread is made up from atoms then everything that happens inside them is predetermined by the font, language and the speed at which someone types out the thread or post. Now, think of the brain of the thread - it is also made up out of chemicals, and atoms and dark matter. Everything it thinks, everything it instantiates, everything is is determined by the chemicals and the chemical reactions that happen. Every day. Every moment. Every semi-planck-second. It's all cause and effect.

Do we really have the power to put forward our own thoughts to the threads without influence? Or does the timing of the thread predetermine out replies? Just an idea I had is all. Think it's possible?

twomers 408 Posting Virtuoso

Wow. Bebo changed how it looks. The text is now smaller. ARGH! I'm still on it, aren't I?

twomers 408 Posting Virtuoso

>> Yeah, that has to be wrong lol.

Wow ... is that ye agreeing on something :P

twomers 408 Posting Virtuoso

Ye should go to college in Ireland then :) It's pretty much free comparatively.

twomers 408 Posting Virtuoso

780

A challenger, eh?

twomers 408 Posting Virtuoso

>> Haha, I literally LOL'd when I read that. :P

No, you LOL'd ... hang on.
... I think maybe I should go to bed.

twomers 408 Posting Virtuoso

782

How about a prime number thread? That could get interesting :P

twomers 408 Posting Virtuoso

>> haha.. he must have left to write the code
That's not completely inaccurate. Just happened to open my IDE and happened to have my fingers in the code position.

783

How much money?

twomers 408 Posting Virtuoso

>> speed chess

Anyone watch House MD? That kid was a brat last week.

twomers 408 Posting Virtuoso

Ccna?

twomers 408 Posting Virtuoso

>> I was asking Twomers.
Small t if you please -- the T looks very very wrong in my eyes for some reason. I really don't know why. Odd, eh? I appreciate the capitalisation though. Thanks. But do you not agree that it makes my alias look completely lobsided?

>> Is your work IT related?
I guess it could be ... I'm sure I could. But when you consider that most of my posts are in the coffee shop ... I'm sure I could do a few posts a day. I'll see.

>> He never mentioned where he works..
Can't talk about it. Top secret you see. Plus, you might come kidnap me or something. Never know what ye internet people will do.

IT related, yeah. Relevant :) Not a bit!

twomers 408 Posting Virtuoso

>> Ireland is a silly place
You're a silly place.

>> I love the invention of Beer in Ireland on Family Guy.
Ha. Yeah. That was funny alright. Confused archaeologists for generations. It's only recently, with FG's help, that the past has been brought to life. Amazing, eh?

>> ive only ever been to Northern Ireland
I've never been there really. Well, I passed through it, but never stayed there. Meh. Probably nothing special ... Good accent though.

twomers 408 Posting Virtuoso

I want to be a fellow, or a sir :) Not really. That's way way beyond a phd and professorship AFAIK.

twomers 408 Posting Virtuoso

788

You have me tempted now ... I'll race you!

twomers 408 Posting Virtuoso

790

Darn :( Forgot to give the number.

twomers 408 Posting Virtuoso

>> might take a while though..
Lol. I'll write an autoposter if you think it'll work.

twomers 408 Posting Virtuoso

>> Why no internet connection tuesday?
Moving house. Been in this one too long. Someone might track me down.

My laptop might find something. I have the net in work, but I'm not certain whether or not they'd like me surfing daniweb there.

twomers 408 Posting Virtuoso

Maybe that's the point ...

twomers 408 Posting Virtuoso

794

How so? Does this go to negatives too? I hope it reaches a negative googol!

twomers 408 Posting Virtuoso

>> lol.. I am.. I hope to be a rich scumbag myself someday..

Feel free to buy my vote :)

twomers 408 Posting Virtuoso

I don't like Java*. I'm a C/C++ guy meself. For online stuff PHP scripting. Hardware VHDL or Verilog. ANd Excel for everything else :P

* Never used it or learnt it.

twomers 408 Posting Virtuoso

>> HA! I converted you to Texan! I win :)

AHHHHH!!!!!!!!!!! Where did that JD come from?

twomers 408 Posting Virtuoso

>> What's the hidden text?
It'll involve doing the test again (or some searching), to find it so I guess you'll never know!

Thanks for the definition. I guess I could (and probably should), have searched for the answer. Whoops.

twomers 408 Posting Virtuoso

Dude, I hate bebo, myspace and facebook ... I happen to have an account on them all though :/ and use the formerest somewhat.

>> now, everyone must use facebook
Not me. I don't know what language that is. Phfew.

twomers 408 Posting Virtuoso

>> Every nation in the history of man has had a rise to power
I can see it now ... You don't realise how small Ireland really is.

twomers 408 Posting Virtuoso

Believe me a north Dublin growl is much worse.

twomers 408 Posting Virtuoso

You are a
Social Moderate
(55% permissive)

and an...
Economic Liberal
(36% permissive)

You are best described as a:

Centrist (36e/55s)


You exhibit a very well-developed sense of Right and Wrong and believe in economic fairness. l

OK. Someone's going to have to explain Republican and democrat stuff to me.


By the way, did anyone notice the hidden text under the results? Hard to see, I mean. Not hidden.

twomers 408 Posting Virtuoso

Well, yall better get used to it.

twomers 408 Posting Virtuoso

You're singular!