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

Search:

Type: Posts; User: djgarrison

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    2,387

    Re: General Java Programming

    sounds like what you need is a while loop that runs until the user presses 1. Put your code in the while loop with the last instruction being getting the input from the user.
  2. Replies
    7
    Views
    2,387

    Re: General Java Programming

    Good afternoon.

    Now you can't just pop on and ask "what next?". You should show exactly what you need to do, what you have done to do it, and why you think it might not be working. I'm sure you...
  3. Re: converting pascal to java... "define before use" to "object oriented"... thoughts

    Just a wild random thought if you are still on this subject. If Pascal has something that is too alien for a Java equivalent then would it be possible to use a third, possibly more common, language...
  4. Replies
    5
    Views
    2,408

    Re: Rubiks cube solver

    You could also represent the faces with a single array and make associations mathematically. So the face the user "sees" could be represented with the top left face being 0 the one to the right...
  5. Replies
    3
    Views
    2,705

    Re: Creating basic road for traffic simulator

    You can use a Graphics2D object to draw a grid. Then use a 2D array of boolean for your 1 or 0 (unless you might need more then that, perhaps different numbers represent different vehicles). Then...
  6. Re: Looping Issue While Parsing...Help Please.

    You seem to have some very odd counting going on there. First off you aren't incrementing the loop. You do set the index1 to the value of index2 which I assume is an attempt to increment the loop...
  7. Re: converting pascal to java... "define before use" to "object oriented"... thoughts

    I'm afraid that's all a bit over my head at the moment. Still sloggin' through the 300s at UW. Lovin' it though! =D If you don't mind hearing what an undergraduate has to say I'd suggest thinking...
  8. Re: converting pascal to java... "define before use" to "object oriented"... thoughts

    I don't know much about Pascal but the "define before use", as I understand it, means that a function or method must be defined before (or on a line above) it is called in the program. In java you...
  9. Re: How to repeat the scene from scratch in game programming

    So what is happening when you get to a point that you need the sprites to "reset"? Are they not resetting? If so what are to trying to do to reset them? I would think that a method that reset the...
  10. Re: What In This Code Is Creating The Symbols ?

    You're better off starting from some point that you can define yourself. If you are building a Black Jack game ask yourself:

    What is a black jack game?
    What is required to play a black jack...
  11. Replies
    4
    Views
    911

    Re: I am Almost Done!

    Now come on no need for getting so defensive. Keang was being blunt and honest. If you just want someone to pat you on the back then let your instructor do that with the grade. I suspect that if...
  12. Replies
    2
    Views
    995

    Re: Pausing Snake game

    as a general rule I usually have a boolean like is_paused. Then an Action that sets the boolean according to the desired state (generally a toggle for the is_paused flag). Then, anything that would...
  13. Replies
    2
    Views
    1,614

    Re: displaying alternate jpanels in a jframe

    I don't think you can add a JFrame into another JFrame as a JFrame is a top level container. You should be able to add as many JPanels to a JFrame as you like though. Can I assume that Attack() and...
  14. Replies
    0
    Views
    1,875

    Advanced GUI design

    hello all,

    I'm starting some work on a video game. I have a lot of the model written but none of the view. My problem is that the only gui I have ever bothered with is swing with layout...
  15. Replies
    10
    Views
    2,173

    Re: Java Programming Code Help

    What do you mean by "the user outputs"? Can you give an example of a set of data that meets the condition for your error and the result?

    think about what you are asking the program to do here.
    ...
  16. Replies
    8
    Views
    2,724

    Re: Draw Thick line inside a specific panel

    I agree with Keang. Why spend one second complaining about how you don't understand the process when that is one more second you could be spending teaching yourself the process. Still I understand...
  17. Replies
    4
    Views
    977

    Re: A Question Regarding Pattern Matching

    Not the best with regular expressions but I'll take a stab here.

    I would seem that you want 3 groups of 3 character length strings and the following "-" of each. If that is the case then maybe...
  18. Replies
    6
    Views
    3,950

    Re: need help with my flowchart (java)

    Quite right. I guess I overlooked that. I have been groomed in college to migrate from console applications to gui applications. Often forgetting that there are many ways to accomplish a goal.
    ...
  19. Replies
    10
    Views
    2,173

    Re: Java Programming Code Help

    This forum, as I understand it, is about helping people with specific problems concerning java programming. There are already countless "learn java" tutorials on the web or in books. So if you are...
  20. Replies
    10
    Views
    2,173

    Re: Java Programming Code Help

    Check out this link.

    http://www.willamette.edu/~gorr/classes/cs231/lectures/chapter9/arrays2d.htm

    It's about using a 2D - array of int to simulate a checkers game. If that is not to your...
  21. Replies
    6
    Views
    3,950

    Re: need help with my flowchart (java)

    If this is a general flowchart then I don't think you are going to get a lot of answers here, as this is a coding forum. Sure, flowcharts can be a tool to programming, however, they are a subject in...
  22. Replies
    4
    Views
    1,083

    Re: Need help regarding game logic

    So I played some cricket on the site that you provided. I know nothing about the game and it was funny to try to figure out what I was supposed to do. Hit the ball I guess. =D Anyway the game I...
  23. Replies
    4
    Views
    1,083

    Re: Need help regarding game logic

    I would think that if you wanted a z-axis in a 2D game you would need to change the size of the components to give the appearance of an item coming toward you or going away. I figure that would have...
  24. Re: I'm sure it is really simple but it is driving me crazy

    Good times. Sometimes just having to explain it explicitly to someone else lets you weed out your own mistakes. Glad you are moving forward.
  25. Replies
    4
    Views
    1,702

    Re: Slot Machine Help

    I'm not sure what you mean by "the methods" to do what you want to do. Are you talking about a general algorithm for doing it or do you mean specifically the method calls that will give you random...
Results 1 to 25 of 32
Page 1 of 2 1 2


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