UNIcoder's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
New Members
Active Posts:
7 (0.01 per day)
Joined:
30-September 12
Profile Views:
993
Last Active:
User is offline Oct 03 2012 09:40 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   UNIcoder has not set their status

Posts I've Made

  1. In Topic: Trying to resize and move a canvas with code behind

    Posted 2 Oct 2012

    The trick and the solution is in:

    VerticalAlignment="";
    HorizontalAlignment="";
    Width="";
    Heigth="";
    Grid.Column="";
    Grid.Row="";
    
    


    Play around with it and you will see the solution.
  2. In Topic: Showing Arrays

    Posted 2 Oct 2012

    You got the length of your array so u just say:
    int k;
    int []room = {.......};
    
    for (int i = 0; i < room.length; i++) {
          k = room[i]  
          system.out.println("Location in Array: " +i+ ". Value at Location: " +k \n);
    }
    
    


    There you go. Have fun.

     int k = 0; 
    
    of course.
  3. In Topic: program in Java that sorts from least to greatest

    Posted 2 Oct 2012

    Hello there MatrimC.

    You dont take in consideration that if num1 = 1 and num2 = 1, they are both low and mid value.
    You have to write specific what value should be low / mid.
    Something like this:

    if ((num1 = num2) && (num3 >= num2)) {
        low = num1;
        mid = num2;
        hi = num3;
    }
    
    

    And the other two ways around:
    if ((num3 = num2) && (num1>= num3)) {
           low = num2;
           mid = num3;
           hi = num1;
    }else if ((num3 = num1 && (num2 >= num1)) {
           low = num3;
           mid = num1;
           hi = num2;
    }
    
    

    Define these three if-statements before the other onces and u should succed!
    And look forward to use loops (for loops) its way easier :-)!
  4. In Topic: Prolog: Express the predicate member2 using the predicate append only

    Posted 30 Sep 2012

    Close the thread I figured it out by myself.
  5. In Topic: Prolog: Express the predicate member2 using the predicate append only

    Posted 30 Sep 2012

    Like this ofcourse

    member2a(X,[X,X|_]).
    member2a(X,[_|T]) :- append(_,[X,X|_],X), append(_,[T|_],X).
    
    

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

UNIcoder hasn't added any friends yet.

Comments

UNIcoder has no profile comments yet. Why not say hello?