CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: JeffB

Page 1 of 80 1 2 3 4

Search: Search took 0.28 seconds.

  1. Replies
    11
    Views
    6,539

    Re: How to make these IF statements into a switch

    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...
  2. Replies
    6
    Views
    2,632

    Re: Please help me understand this question.

    It will work because after returning, the line "printf("%d\n", head->data);" will be executed, which will print 3.

    JeffB
  3. Replies
    11
    Views
    2,404

    Re: How to delete the thread

    Hello deepakbellale,

    Your thread have been removed. Only moderators and admins can do that ;)

    Have a good day.

    Jeff
  4. Re: counting occurenece of each word in a large text file

    Post your code please, it will help us.

    JeffB
  5. Re: How to create two 30 secs delay in 1000 loops routine

    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...
  6. Replies
    2
    Views
    992

    Re: HELP!!! vs I have a problem with...

    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...
  7. Replies
    1
    Views
    961

    Re: Why no answer to my question?

    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....
  8. Re: Detect a mouse click on specific entity in an arrayList

    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...
  9. Replies
    4
    Views
    6,924

    Re: Weird bug with MessageBox function

    I think you'll need to show us the code in question ;)

    JeffB
  10. Replies
    5
    Views
    3,173

    Re: Breakout Clone Collision Detection

    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...
  11. Replies
    5
    Views
    3,173

    Re: Breakout Clone Collision Detection

    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...
  12. Thread: Random Arrays

    by JeffB
    Replies
    3
    Views
    990

    Re: Random Arrays

    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
  13. Thread: C++ Simple Game.

    by JeffB
    Replies
    2
    Views
    3,139

    Re: C++ Simple Game.

    That's quite interesting, but please, read this post regarding homework assignment: http://www.codeguru.com/forum/showthread.php?t=366302.

    JeffB
  14. Re: Opening corresponding vsd file from vbIde

    Thread is no longer marked as resolved. That can only be done by a moderator ;)

    JeffB
  15. Replies
    10
    Views
    7,969

    Re: Simple Randomize Question

    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...
  16. Thread: Why VB 6.0??

    by JeffB
    Replies
    421
    Views
    115,577

    Poll: Re: Why VB 6.0??

    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...
  17. Re: Help With Finding All Combinations for Array length R

    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
  18. Replies
    8
    Views
    1,353

    Re: Problem with Bissection method

    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...
  19. Replies
    3
    Views
    1,136

    Re: Pleas help out a beginner's maze program

    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...
  20. Re: Removing duplicates in a string array

    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...
  21. Replies
    11
    Views
    1,499

    Re: SQL query in VC++

    This thread is now in the Managed C++ and C++/CLI forum.

    JeffB
  22. Replies
    1
    Views
    676

    Re: problem in getting some of text boldeded

    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
  23. Replies
    13
    Views
    3,383

    Re: How to fix window freeze while copying files...

    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:
    ...
  24. Replies
    5
    Views
    1,148

    Re: how can i open 2 file?

    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...
  25. Replies
    17
    Views
    1,762

    Re: Congrats dglienna for 3000 Amazing Posts!

    Keep up the good work, there is a lot of people that appreciate it ;)

    JeffB
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured