Thread: programming problem

  1. #1
    Registered User
    Join Date
    Nov 2019
    Posts
    50

    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!
    Last edited by Brian_Teir; 07-03-2020 at 04:34 PM.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    How about copy/pasting the text of your assignment.

    Instead of a bunch of questions around what you imagine the problem/solution might be.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Nov 2019
    Posts
    50
    Quote Originally Posted by Salem View Post
    How about copy/pasting the text of your assignment.

    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. #4
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    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.
    Last edited by stahta01; 07-04-2020 at 08:41 AM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well normally, you would use some kind of sensor.

    Laser rangefinder - Wikipedia
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. c programming problem
    By aggie324 in forum C Programming
    Replies: 11
    Last Post: 12-05-2010, 06:54 AM
  2. i need help.. programming problem
    By eskimo in forum C Programming
    Replies: 8
    Last Post: 08-03-2005, 05:36 AM
  3. problem with programming in C
    By yairzarka in forum C Programming
    Replies: 8
    Last Post: 03-19-2005, 03:49 PM
  4. c programming problem
    By Nav in forum C Programming
    Replies: 3
    Last Post: 02-25-2003, 09:00 PM
  5. C programming problem
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 03-04-2002, 05:33 PM

Tags for this Thread