~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get a lot of people who have no work other than wasting time on this stupid game ;)

I put in a serious lawyer

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

have a new

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Exam -> nerd

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

SOME bozos work without any coffee.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

This way you would be sure of the fact that the sum of 10 times this statement can never be more then 1.

..and neither would the sum be more than 0.7 ;)

@manu124:

I sure hope you understand the implications of the statement you are trying to put up. You want a random generation program but still want the sum to be deterministic that is less than 10 and more than 7. How do you think that could be done without actually cheating....;)

My idea:

  1. Start off by generating numbers between 0.01 and 0.1 ( since you haven't mentioned the precision you require, I will safely assume these two values).
  2. Generate 9 such random numbers and at the last iteration check whether the sum is greater than 0.7.
  3. If yes then continue with normal processing for the 10th element.
  4. If no, then set the sum to 0.7.
  5. Generate a new random number between 0 and 0.3 with whatever precision you like eg. 0.1, 0.01 etc (0.3 since 1 - 0.7 = 0.3 ) and add this to the new sum.
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

The quote was taken from an article where Bjarne quoted the places where C++ was used, so he obviously must have meant C++ when he said Visual C++.

Also you can call C++ code from other langauges by writing wrapper functions in C, that is how it is usually done.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

To test whether the matrices are compatible for multiplication, you have to check that the second dimension of the first matrix ( y1 ) is equal to the first dimension of the second matrix ( x1 ).

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get a mouth which has started to water.

I put in some strawberries

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

None of the MS-Windows win32 api was written in c++. But some of the other programs and make up the OS may have been, I don't know.

*Ahem*

Literally everything at Microsoft is built using various flavors of Visual C++ - mostly 6.0 and 7.0 but we do have a few holdouts still using 5.0 :-( and some products like Windows XP use more recent builds of the compiler. The list would include major products like:

  • Windows XP
  • Windows NT (NT4 and 2000)
  • Windows 9x (95, 98, Me)
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

to be respected.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get an apple ;)

I put in a pencil

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

trial and error -> testing

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

All BOZOS work without any hacks.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

12800 km is how far a pebble would go if I threw it.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Found -> search and replace

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You starve the monkeys to death.

I put in some grass

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

have their own

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

when you start getting old the second thing to go is eyesight.

The first being..?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hey there Steve, welcome :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

All LOSERS cheat with great strategies.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

something which you...

PS: And btw my 2000th post ;) Yay

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get someone from Atlanta.

I put in some wine

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

treble clef -> cliff hangar

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Infinitive is not the same as infinite.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Those in search of best signatures should definately read this one by Mr. Dave Sinkula.

The formatting and context of this post may have been altered from my original via my use of features that are now disabled.
Any advertisement triggered by IntelliTxt in this post is not endorsed by the author of this post.

Bleh...helping the newbies but with a disclaimer...too good. :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Err...yes, I apologize Nanna. :P

Hoping to see you around in the forums and yeah Merry Christmas to you too..:D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hello there Sir, welcome to Daniweb..:D

We have got a lot of grandpa's around here so you won't be bored by being with the younger generation alone..;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Really? Did it happen at a forum I never visit, or over PM or something? You're making me so curious...

Naa..its happened in the moderators section, so you probably won't know about it, but yes there was some this and that and I changed my sig for the best.

Wow. That is simply one of the best sigs I have ever read.

If it is his original, then yes it's pretty good...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

nice girl -> Innana (one of the members here)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

All friends PLAY with cooperative strategies

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

things it would

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

~s.o.s~ -> nice guy (bleh..)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Sometimes we wonder

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get to live in a Igloo

I put in Antartica

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

ALL enemies operate with cooperative strategies.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get some booze

I put in a bar

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

we have been

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Bleh..too much XML like things are injurious to brain.... :P

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get a Jaguar

I put in Photoshop

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

No enemies OPERATE with cooperative government.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Well..that's what they are supposed to do, aren't they ? I mean be fidgitty...;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Welcome Akshay, greetings from an Indian :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hey there Satya, welcome to Daniweb...:D

Maybe you should post your question in the Computer Science forum to get more help.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I'm sure you eagle -eyed pro's can spot the problem in a New York minute, but I've been straring at this too long!

I don't blame you, since what you encountered is one of the C++ gotchas and not many starters know about it.

What you are trying to do here is to create a function which will befriend all the specializations of the Array class, which I don't think any compiler conforming with the standards will allow you to do.

There are some things which you have to do to get around this...

1. Forward declare the class, along with the templated overloaded function.

template <class T> 
class Array ;
template <class T>
ostream& operator<< ( ostream&, Array<T>& ) ;

2. Place <> after the overloaded operator to let the compiler know that this is a templated funcion you are tryign to code here (syntactic sugar...bleh). Something like:

template <class T> //declare the template and the parameter
class Array       // the class being paramterized
{
    public:
        ....
        friend ostream& operator<< <>(ostream&, Array<T>&);
    private :
        ....
};

For an interesting read look here.

SpS commented: Nice~~SunnyPalSingh +3
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

All enemies cooperate with COOPERATIVE government.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

try something drastic

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Mouth is where the food goes in through...:D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Have never smoked and and hoping that I never will.

Some guys get a kick out of it but I am better off with my coffee and tea. Smoking not only affects the person smoking, but also the ones around him.

But if someone is smoking at a place where others are not bothered, its ok with me. After all its his life and he has the right to ruin it the way he wants...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

They said "Oh,

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

All enemies cry with perishable GOVERNMENT.