|
Does this.Refresh(); help?
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
It sure does...
Thanks this is great
Tom
|
|
|
|
|
this.invalidate() works as well
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hi
Have anyone seen Photoshop CS5? I want to know how can I make a same titlebar with buttons and images?
|
|
|
|
|
I think this is not the place to ask about this question. Please put it in right section as there is nothing to deal with C# on this question.
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution. Visit My Website-->www.abhisheksur.com
|
|
|
|
|
Do the first 3 links in this[^] Google query help?
/ravi
|
|
|
|
|
Nope. Not a C# question.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
|
|
arkiboys wrote: Can you please see if you can answer the questions to get the values correctly?
How can anyone do that without seeing your code?
It's time for a new signature.
|
|
|
|
|
CalculateBiggestValue aka Max is not a very hard function to write, what is your code now?
FindTopNValues is not as easy, and the advanced algorithms actually change the order of element in the input array.
Wikipedia has a good article about this: http://en.wikipedia.org/wiki/Selection_algorithm[^]
|
|
|
|
|
|
Almost; but you have no test.
|
|
|
|
|
PIEBALDconsult wrote: Almost
you're in weekend mood I presume.
|
|
|
|
|
|
Obviously this function does not calculate all n top values. The return type doesn't even match the type of the return expression.
At a first glance it seems to correctly calculate the highest value (apart from the loop condition anyway), though I'm not sure why you're casting an int to an int .
|
|
|
|
|
That looks more like a solution to 1.
|
|
|
|
|
1 is just a specialization of 2. So solve 2 first.
|
|
|
|
|
Attempted number 2 in the previous message.
Please have a look.
Thanks
|
|
|
|
|
Well, it sure looks like number two...
|
|
|
|
|
|
Please don't remove any more posts. It's antisocial because you don't allow others to see what you are trying to accomplish.
|
|
|
|
|
Clue Line announcement: this station not serviced on Saturdays.
|
|
|
|
|
Luc Pattyn wrote: this station not serviced on Saturdays
That's a pity, I was going to suggest that the first one is really easy:
arkiboys wrote: 1-
private int CalculateBiggestValue(int[] anyOldOrderValues);
Question:
CalculateBiggestValue should return the single highest integer
private int CalculateBiggestValue (int[] anyOldOrderValues)
{
return int.MaxValue;
}
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|