Search:
Type: Posts; User: JeffB
Search:
Search took 0.41 seconds.
-
June 27th, 2014, 04:36 PM
I think that calculating the cost of the party is a good candidate for a function that would looks like this:
private double GetPartyCost(uint totalGuests, bool healthy, bool fancy)
{
double...
-
It will work because after returning, the line "printf("%d\n", head->data);" will be executed, which will print 3.
JeffB
-
September 20th, 2012, 09:59 AM
Hello deepakbellale,
Your thread have been removed. Only moderators and admins can do that ;)
Have a good day.
Jeff
-
November 12th, 2011, 11:13 AM
Post your code please, it will help us.
JeffB
-
March 10th, 2011, 11:54 AM
The API GetTickCount() sounds like a good candidate to do this. There is still a case where the value will roll back to 0, but it seems appropriate for what you are doing.
Also, be careful with...
-
December 8th, 2010, 08:54 PM
With a name like "Help!!!!!", most of the people will enter your thread and find out that they can't help you because they don't know about function xxxx. If you would have named your thread "Help...
-
December 8th, 2010, 08:33 PM
Hello nitroboatr,
Your post is in the right forum, but the Crystal Reports forum is not the one having the most activity. You can see it for yourself by looking at other thread without any answer....
-
December 7th, 2010, 11:09 AM
Hello Gnasher,
Your cars each need a "collision region". It can be a rectangular area or a circular area. Once you have that, it is quite easy to compare the mouse coordinate with a car...
-
December 7th, 2010, 10:58 AM
I think you'll need to show us the code in question ;)
JeffB
-
December 7th, 2010, 10:37 AM
Hi Newkid,
The "C++ and WinAPI" forum is for question related to usage of API. Sometimes, it is not very clear in which forum a post should be, but usually, if your question is about the usage of...
-
December 2nd, 2010, 04:02 PM
I see you have a structure for the ball and one for the paddle. I suggest you create a similar structure for a brick. In this structure, you keep the position of the brick and a boolean to know if...
-
October 12th, 2010, 10:34 AM
You don't need to swap numbers millions of times. The algorithm you are looking for is called Fisher–Yates shuffle and is quite efficient (check for the modern algorithm).
Hope it helps
JeffB
-
That's quite interesting, but please, read this post regarding homework assignment: http://www.codeguru.com/forum/showthread.php?t=366302.
JeffB
-
January 23rd, 2010, 01:08 PM
Thread is no longer marked as resolved. That can only be done by a moderator ;)
JeffB
-
Dear Shake926, I've seen that problem appear multiple times on the forum, have a look at this post:
http://www.codeguru.com/forum/showthread.php?t=213304&highlight=random
Imo, it's the best...
-
July 22nd, 2008, 05:38 PM
Care if I add a speed test of mine? It's pure calculation and the results are pretty interesting. Now, see if you can tweak some compilation parameters or some code parameters and even the things...
-
April 26th, 2008, 11:24 AM
The combinaisons of 1 and 0 of length n is simply the binary representations of all numbers from 0 to (2^n)-1. It should be easy to generate the binary representation of those numbers.
JeffB
-
April 5th, 2008, 03:35 PM
Hi rottweiler,
Please don't post a new thread on the same topic, it's easier for everyone to keep track of all the information if it's in the same thread.
One thing I don't like is this:
if...
-
March 29th, 2008, 11:51 PM
It's probably because you try to access an index out of bounds. You do stuff like: m[mr+1][mc] or m[mr-1][mc]. If mr is 0 or is mr+1 is outside the array, you will have problem. To solve that, you...
-
March 29th, 2008, 11:44 PM
I'm not sure if I understand correctly your question, but once your array is sorted, you can easily find the duplicates as they will be regrouped. You can then browse the array, output what you need...
-
March 23rd, 2008, 06:56 PM
This thread is now in the Managed C++ and C++/CLI forum.
JeffB
-
December 22nd, 2007, 12:54 AM
You cannot do that with the textbox, it's whether all text in bold or no text in bold. You will need to use the RichTextBox control for that.
JeffB
-
December 14th, 2007, 07:14 PM
Just to let you know, it's possible to copy a file in VB6 without hanging the window, there is an API called CopyFileEx that is pretty easy to use, there is an example here:
...
-
July 21st, 2007, 09:59 AM
From an old project, fast and efficient, note that you may want to change the buffer size.
Note that this function just tell if the two files are differents. If you want to compare the datas and...
-
June 23rd, 2007, 12:14 AM
Keep up the good work, there is a lot of people that appreciate it ;)
JeffB
|
Click Here to Expand Forum to Full Width
|