C++ Project

Discussion in 'Computer Science & Culture' started by shrestha, May 1, 2002.

Thread Status:
Not open for further replies.
  1. shrestha Registered Member

    Messages:
    1
    Hi, I need to make a timing device which calculates the acceleration and retardation of a car as it moves along a track...well, I've made the calculating program in C++ in UNIX, and have it running....but I have used a circuit device which uses LED and which sends a character when the car passes through the LED, through the serial port. Now, My program is set such that it calculates the time difference between two inputs...and then calculates the acceleration....But I dont know how to set the input device to the serial port instead of the keyboard!!! My program works well when input is sent through the keybopard!!! Is there any way that I can set the input device to the serial port for a certain portion of the program...and then again to the keyboard after a certain portion?

    Your help will be really really appreciated!!!
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. sjmarsha Registered Senior Member

    Messages:
    363
    Yes, Yes there is.

    p.s. I do not know how to do it.
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
Thread Status:
Not open for further replies.

Share This Page