Search:

Type: Posts; User: silvercats

Search: Search took 0.29 seconds.

  1. Re: How to perform an action only if a certain amount of time has passed

    What I want is,

    int x=3;

    if (x==3 'during past 3 seconds')
    {
    //perform action
    }
    this should not disturb other actions of the program for this 3 secs.
  2. Re: How to perform an action only if a certain amount of time has passed

    yup. Neither got a working answer.
  3. Re: How to perform an action only if a certain amount of time has passed

    Here is what I want to achieve.

    A class gets a rapidly changing integer from another class. As it changes so fast, I wanted to perform an action only when this number is stabilized. Like if the...
  4. How to perform an action only if a certain amount of time has passed

    public static void main(String[] args)
    {
    boolean t=false;

    long cuTime = System.currentTimeMillis();

    while(t==false)
    {
    ...
  5. Re: Can someone tell me how to convert this C++ code to java? (just 50 lines)

    I have already converted the first few lines. Just having a hard time understanding and converting this particular area. I can edit it once it is converted as I am not familiar with C++
  6. Re: Can someone tell me how to convert this C++ code to java? (just 50 lines)

    If I knew, I would have already written the Java code for that. specially I don't know about that vector part.
  7. Can someone tell me how to convert this C++ code to java? (just 50 lines)

    #include "opencv2/highgui/highgui.hpp"
    #include "opencv2/imgproc/imgproc.hpp"
    #include <iostream>
    #include <stdio.h>
    #include <stdlib.h>

    using namespace cv;
    using namespace std;

    int...
  8. Replies
    1
    Views
    41

    simple ping pong game help

    When I ran the methods "go1,go2,go3" separately without clicking on the menu , all of them worked well. by separately I mean, when I closed the program changed the source code from "go1;" to "go2"...
  9. Replies
    2
    Views
    75

    Simple animation. Strange behavior

    When I run the code below with the "thread.sleep", the ball runs from left corner to right corner, leaving a trail behind it as expected.

    but when I remove the thread.sleep part, the balls appears...
  10. Technical feasibility and economical feasibility problem(explained well below)?

    Let's say this is a software development problem. from which side should we study this as the software developer? feasibility of the developing company or the feasibility of the using company(client)...
Results 1 to 10 of 10