Search:

Type: Posts; User: einar123

Search: Search took 0.08 seconds.

  1. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    Yes it's solved. It's supposed to be like this

    Your a big help. Thanks. Now it's on to the next.... After a good nights sleep.
  2. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    Only one error left that has been with me all the time.
    N is just some number or numbers, proferable N>0.
    I have to sqare the distance and print it out.
    GregBrannon are you online like 24h?)...
  3. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    I'm taking a course. Apparantly my professor only wants to see that I can apply the formula. Which I have done. But I wonted the code to work.




    public class Euclediand{

    public static...
  4. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    I think I'll trash it and start over..
  5. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    Ok. Hopefully this works.

    Line 24 is the System.out.print....last line.


    public class Ed{


    public static void main(String[] args)
    {
  6. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    How do I work out that identifier problem and how should I use System.out.print differently?



    public class Ed{


    public static void main(String[] args)
    {
    int N =...
  7. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    Men.....hahahah you are killing me. I don't get it!
  8. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    Now I'm trying to simplify this. I don't know how to call a method outside of main.


    public class Verkefni143
    {
    public static void main(String[] args)
    {
    int N = Integer.parseInt(args[0]);...
  9. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    Now I got this:



    public class Ed{


    public static int main(String[] args)
    {
    int N = Integer.parseInt(args[0]);
  10. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Re: Distance

    Where? inside the loop? ...it seems to be a bigger problem... Now I've got an illegal start of expression
  11. Thread: Distance

    by einar123
    Replies
    22
    Views
    1,347

    [SOLVED] Distance

    Hi

    I'm trying to write a program that calculates the the length of two vectors of length N that are represented with one dimensional arrays and compute the Euclidean distance between them.

    Any...
Results 1 to 11 of 11