string test passed but instructions not showing up?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

string test passed but instructions not showing up?

Mikey2520
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: string test passed but instructions not showing up?

cadet1620
Administrator
Mikey2520 wrote
As you cans ee in the following video:
https://www.youtube.com/watch?v=atUD_3W0fDE&feature=youtu.be
My string test did not have "Please type 'JACK' and press enter: " in the readLine test and did not have "Please type '-32123' and press enter: " for readInt test.
Here is my code and thank anyone who can solve it.

    /**
     * Prints the message on the screen, reads the next line
     * (until a newline character) from the keyboard, and returns its value.
     */
    function String readLine(String message) {
        var String s, temp;
        var int maxLength;
        var char c;
        let s = String.new(10);
        let maxLength = 10;
        while(true){
            let c = Keyboard.readChar();
Your readLine() function completely ignores the "message" argument.

Please edit your post to remove the source code when you have fixed your problem.

--Mark