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

Search:

Type: Posts; User: Norm

Page 1 of 80 1 2 3 4

Search: Search took 0.26 seconds.

  1. Replies
    3
    Views
    314

    Re: need some tips first java project

    Here's a problem I see:

    if (discountEligible = true){

    The expression is an assignment not a comparison. Use the == operator to compare two operands.
    Also note that the value of a boolean...
  2. Replies
    2
    Views
    633

    Re: I'm having trouble deploying java programs

    To see if the JRE program will execute, Find the java.exe file in the installed JRE's bin folder. Copy the full path to the java.exe file and use that in the command prompt with the -version...
  3. Replies
    2
    Views
    385

    Re: Please Help with the steps to build this

    Do you have a java programming question?
  4. Thread: Minimax algorithm

    by Norm
    Replies
    9
    Views
    622

    Re: Minimax algorithm

    How are you debugging the code to see if it is doing what you want? I use print statements that print out the values of variables as they are changed and as they are used?

    The program requires...
  5. Thread: Minimax algorithm

    by Norm
    Replies
    9
    Views
    622

    Re: Minimax algorithm

    I don't see any comments about how the code is solving the problem that I can compare the code against to see if the code is following the logic for solving the problem.

    I won't be able to look...
  6. Thread: Minimax algorithm

    by Norm
    Replies
    9
    Views
    622

    Re: Minimax algorithm

    Now the program needs the Player class.



    I don't see any comments about how the code is solving the problem that I can compare the code against to see if the code is following the logic for...
  7. Thread: Minimax algorithm

    by Norm
    Replies
    9
    Views
    622

    Re: Minimax algorithm

    How do you execute the code for testing? I don't see a main method.


    How is the move shown in the print out?


    I don't see any comments about how the code is solving the problem that I can...
  8. Thread: Minimax algorithm

    by Norm
    Replies
    9
    Views
    622

    Re: Minimax algorithm

    Can you post the results and add some comments saying what is wrong with it?
    How do you execute the code for testing? I don't see a main method.
  9. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    I think the problem would be clear if an attempt is made to debug it. For example adding some print statements to show when the accounts' balances change.
  10. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    @Arjay - How can thread synchronization be used to solve the problem where one thread is required to run after the other threads have completed?
  11. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    Can you explain again what the banking problem is?

    Is the race condition you talk of caused by the transfer being done BEFORE the other transactions are executed?

    Should the transfer be done...
  12. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    After looking more at the Semaphore API doc, I'm not sure how it could be used.

    Can you define what the program needs to do with the threads? Is there an order to execute them?
    What is the...
  13. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    Yes, that might work.
  14. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    Why use threads? If one task MUST be run after the others, it shouldn't be on a thread that is executing at the same time as the other tasks.

    I don't see synchronization being any use to serialize...
  15. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    Why have threads if there is an order of execution requirement?
    The Thread class's join() method can be used wait for a thread to end.
  16. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    Thanks.
    The program creates and starts three threads. Are there any requirements for which thread runs first and which thread should run last? Can the threads be run in any order?
    As coded the...
  17. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    Sorry, My post was directed at KChad to provide some documentation on his problem.
  18. Thread: Multithreading

    by Norm
    Replies
    24
    Views
    1,552

    Re: Multithreading

    Can you post examples of
    the current, incorrect output
    and one showing the correct output?
  19. Replies
    13
    Views
    952

    Re: pass parameters from java to prolog

    See the API doc for the Runtime class for a description of its methods.
    The exec method returns a Process class object that has methods for accessing what the called program writes to the console.
  20. Replies
    13
    Views
    952

    Re: pass parameters from java to prolog

    Something like this:
    When the user enters the data and presses a button, get the data, format it for the command line, use the Runtime class's methods to call prolog. Where does prolog put its...
  21. Replies
    13
    Views
    952

    Re: pass parameters from java to prolog

    Ok, please explain your problem now.
    Is this what you are trying to do:
    have a text area where the user can enter some data. The program can take that data and format a command line and call the...
  22. Replies
    13
    Views
    952

    Re: pass parameters from java to prolog

    Is the textbox a java JTextField or JTextArea component shown in a java GUI?

    If not, how are you planning to use java for this problem?

    I have never heard of jpl. Is it part of java SE?
  23. Replies
    13
    Views
    952

    Re: pass parameters from java to prolog

    Look at the API doc for the Runtime class to see its methods etc.
    http://docs.oracle.com/javase/8/docs/api/index.html
    Find Runtime in the list on the lower left, click on it and its doc will show...
  24. Replies
    13
    Views
    952

    Re: pass parameters from java to prolog

    How is a prolog program executed? If by a command line, that commandline can be executed from java using the Runtime class's methods.
  25. Re: Simulating planetary motion by Euler's method

    Then you need to change the implementation so that the values coming out of the formulas match what is expected.


    If you find a statement that is not computing the correct value, post that...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


HTML5 Development Center