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

Search:

Type: Posts; User: henryswanson

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    648

    MD5 Generator not working.

    I'm trying to write an MD5 generator (for integrity checks, not actual hashing), but it doesn't seem to be working right. And it only operates on a 512-bit chunk, for now. Hashing the empty string...
  2. Replies
    2
    Views
    1,308

    Re: Network Game

    Alright, I'll go check that out. Thanks!
  3. Replies
    2
    Views
    1,308

    Network Game

    I'm planning on making a game which multiple people can play over a network. I've never done any programming involving a network, so I have lots of questions.

    1) Do I need a third-party library to...
  4. Replies
    3
    Views
    2,129

    Re: Wikipedia parser

    I have, but I can't find a pattern that would work. The problem seems to be that infoboxes, tags, and pictures show up before the real body of the text, and I can't figure out how to tell if a link...
  5. Replies
    3
    Views
    2,129

    Wikipedia parser

    After reading the latest xkcd: http://xkcd.com/903/ I started writing a program that will find the first link on each article, and see if it does eventually lead to philosophy. However, I know next...
  6. Re: Permutations with repeated elements

    Oh, right. I keep forgetting about the debug version not being as fast as release. That really sped it up. And yeah, next_permutation() does work. Thanks!
  7. Re: Permutations with repeated elements

    I've tried using that, but it's far too slow. I think that might be because it produces things in a strict order. Also, it produces n! more permutations than I need, and since n is going to be around...
  8. [RESOLVED] Permutations with repeated elements

    I'm trying to make sets of n k-sided dice, using each number from 1 to n*k once. n and k are known at compile time. So, I thought of making an array with ints recording which die the number belongs...
  9. Replies
    0
    Views
    1,331

    Distance from CubicCurve2D

    I'm writing an application which has to know when the user has clicked on a curve that is shown on the screen. I can get a copy of the curve, and the point the user has clicked, but I don't know how...
  10. Re: output problem with if number is prime or not

    Yeah, just giving a solution doesn't help. If that solution is explained, that'd be a lot better. On the other hand, you just have to hope they'll read it. :P So, here goes.
    The for loop is what...
  11. Replies
    2
    Views
    1,564

    Re: Flickering during resizing.

    Alright. I suppose I can just ignore the problem, and hope the user won't be bothered by it. :P
  12. Replies
    2
    Views
    1,564

    Flickering during resizing.

    When I attempt to rescale a JFrame, which has no listeners, and has two JPanels in it, the layout takes a bit to resize itself. It's not slowness due to long calculations, since there's nothing that...
  13. Re: All combinations of inserting spaces into String

    Also, if you want exactly k spaces, not k-or-fewer, you could use a recursive method. I know nothing about its efficiency though. It would go something like this:

    public static void main(String[]...
  14. Re: Help needed! Calculating weekly pay with if else

    Whoops, sorry about that. Too bad there's no printfln(). Also, could he call println() once after each printf()? Or is that slower/less readable than getting the newline separator?
  15. Re: Having trouble passing array to function.

    Alright, I've rewritten a few parts of it, and it is working (at least on my computer). I'll put in comments to show why I changed it.


    #include <iostream>

    using namespace std;

    void...
  16. Re: Having trouble passing array to function.

    Are you trying to have multiple player names and multiple scores? One name and many scores? Also, you have ( ` ) around your \n, where you need ( ' ).
  17. Replies
    4
    Views
    1,193

    Re: Inheriting Constructors

    So, have an abstract method for initializing the fields?
  18. Re: Help needed! Calculating weekly pay with if else

    For the formatting, use System.out.printf("Here is some text with a value %.2f and some more text.\n", value). The % means that a value will be inserted into the text. The .2 means to format two...
  19. Replies
    4
    Views
    1,193

    Inheriting Constructors

    Is there a way to specify in a base class that the derived class must create a constructor with certain parameters? Kind of like an abstract method, but it appears to be forbidden to create an...
  20. Replies
    5
    Views
    1,621

    Re: Javadoc comments

    Alright, I went back and looked at the example I saw, and the third comment was not above a method or variable, but above another comment. It went like this:

    public class Matrix {

    /**...
  21. Re: Help needed! Calculating weekly pay with if else

    Is the Yearly Income Tax correct? I think there is an issue in the if-else statements. You have 5 ranges, 0-6000, 6000-25000, 25000-75000, and 75000-150000. For one, you need a 150000+ range. But...
  22. Re: Having trouble passing array to function.

    Well, what errors are you getting? When you check if the user entered 'q', you need to use ==, not =. = is assignment, not equals. == is equals. Also, this wasn't much of an issue since the code was...
  23. Replies
    17
    Views
    1,820

    Re: dynamic array allocation

    Well, a is a pointer to the first element in the list, right? So a-1 is one before the beginning of the list, and garbage is stored there. I think you mean *(a+x), which would give the last element...
  24. Replies
    5
    Views
    1,621

    Re: Javadoc comments

    Okay, thank you!
  25. Replies
    5
    Views
    1,621

    Javadoc comments

    I'm confused as to the purpose of three javadoc comments.


    /**
    * What's this for?
    */

    package group.subgroup

    import some.stuff;
Results 1 to 25 of 60
Page 1 of 3 1 2 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center