![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Calculate the distance between two points in the 2D Cartesian planeWhat up my names Ryan, I'm very new to c++ so bare with me.
This is the lab I am supposed to complete: Write a program that helps the user calculate the distance between two points in the 2D Cartesian plane. Try to make your results as readable as possible. As an example, you might have the program interaction look something like (the parts in this color are typed by the user): $ ./distance.out Welcome to the 2D Distance Program!!! Where is your first point? 3.4 12.2 Where is your second point? 13.4 12.2 Thank you!! Calculating... Done. (3.4, 12.2) is 10 units away from (13.4, 12.2). Thank you for using the TDP!! Endeavor to have a wondrous day! $ I'm asking someone for help because I can't even get my compiler past the 10th line of me code. Any help and it would be greatly appreciated, I know this is very basic. |
|||
|
#2
|
|||
|
|||
Re: Hey guys I need help implementing the distance formulaQuote:
|
|
#3
|
|||
|
|||
Re: Calculate the distance between two points in the 2D Cartesian planeAnd errors you are seeing when you compile.
![]() |
|
#4
|
|||
|
|||
Re: Calculate the distance between two points in the 2D Cartesian planeTry starting with something like this and see if it compiles:
CPP / C++ / C Code:
|
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help me write this formula in c++ | nekavnick | C++ Forum | 5 | 23-Aug-2008 16:05 |
| Help! Need Formula For Perfect Number | New_Girl991 | C++ Forum | 4 | 04-Apr-2008 04:48 |
| start variable pointer in struct | cpit | C Programming Language | 9 | 10-Jan-2006 08:39 |
| shorthest path-another way | Pandiani | C++ Forum | 6 | 09-May-2004 19:51 |
| Math Formula: FORECAST | JdS | Open Discussion Forum | 4 | 16-Oct-2003 08:58 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The