Tuesday, January 31, 2012

problem with test 4.17

Can anyone help me to get through test 4.17?

- console.edit() was supposed to return Unknown Keycode,  Dec: 0   Hex: 0
  but instead it returned: ENTER,  Dec: 10   Hex: A

What does it mean? Anyone had a some problem and fixed it already?

5 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I think you forgot add the following if statement soon as it corrected the offset to next to the last char of string. So add this...

    if ((unsigned)*strOffset > strlen(str)) {
    *strOffset = strlen(str);
    if (IsTextEditor){
    key=0;
    done=1;

    }

    }

    ReplyDelete
    Replies
    1. hey...thank you Deva and i am still trying to work it out.

      Delete
    2. Hello Deva...are you here? In 4.18, why the test didnt allow me to pass after i pressed the HOME key?

      Delete
    3. Sorry, just noticed... next time email me @ tvirutthasalam@learn.senecac.on.ca, Hope you did well.

      Delete