1. programming problem

Hi guys!
I have a serious problem and Im trying to solve it but I have no offense how could I start and which approach or blueprint to get started with.

my problem is that I want to do a program in c++/c that does this thing:
calculating the distance in real time between two vehicles on street, this means for more clarifying that I want to measure the distance between my car for instance and the car that's infront of me ... there's no need to measure the distances between my car and other cars that are not infront of me , might be more than one car infornt of me, but wants to calculate the distance of the closest car that I see infornt of me ..

Any help how could I accomplish that? which algorithms could I use? what concepts should I take into account?

In addition, I've searched in google but I didn't understand why I need dateset in order to calculate the distance between my car and the closest car in-front of me on street .... so could anyone please explain to me why I need to use in my problem dataset? not understanding that much what's the purpose of the dataset in my problem of finding the distance between two moving object in real time?

thanks alot!

Instead of a bunch of questions around what you imagine the problem/solution might be.

3. Originally Posted by Salem

Instead of a bunch of questions around what you imagine the problem/solution might be.
Hi salem, to be more frankly, it's not assignment, it's something that I want to do for my own purpose to solve big problems that we are straggling every day.
in a simple way I want to calculate the distance between two objects in real time, I mean by this two objects are moving (object in my case is a vehicle) and wants to calculate the distance between those two object in real time .. here's all my problem, if you want to ask then feel free and Im ready to answer you in an opened heart.

as I have searched in google, I need to use dataset in my case, but I don't know why .. so I'm asking in order to understand and not just using dataset without even known why I need dataset in my case!

thanks

4. Please state what you mean by "dataset" because it is meaningless to me!!

Edit: It might mean "A set of data" which I do understand or something that I have no idea about.

Tim S.

5. Well normally, you would use some kind of sensor.

Laser rangefinder - Wikipedia