THE SECRET FEATURES OF CODELAB:
(1) The strange little gray triangles just above the text-area submission box:
During each CodeLab session, CodeLab maintains a "history" of
your submissions for each exercise. You can go backwards and
forwards in this history using the above buttons.
This is useful if you've made several erroneous submissions and
decide that you want to go back to a previous submission and
resume your work from there.
(2) Seeing the output of your submission.
If your submission writes to "standard output", then
CodeLab will display an "Output" subsection (with its
own green open/close triangle) in the RESULTS tab.
Keep in mind, most CodeLab exercises do not involve writing
to standard output. But if you get stuck on a problem and
want to see the value of a variable at some point, you can
insert a statement that writes its value to standard output
and thereby see a bit more about what's going on.
Suppose, for example, the exercise is to write a statement
that puts twice the value of x into y. Instead of writing
y = 2*x;
you write
y = 3*x;
(Yes, this is ridiculously lame, but it's just an example.)
If you couldn't understand why the code was rejected and
wanted to see x's and y's value you could add:
System.out.println("x="+x+" y="+y); // Java
cout << "x="<<x<<" y="<<y<<endl; // C++
printf("x=%d y=%d\n",x,y); // C
This would cause the Output TAB to appear and you could
see more about what your code is doing.
WARNING: You will have to delete or comment out your
output-displaying debug statements in order to get
your code accepted: debugging output is NOT part of
the specification!
(3) Correcting Your Email Address.
If you registered using an email address that is invalid, or if
your email address has changed, click PREFERENCES and change your
email address under the ACCOUNT INFO section. If your email address
is not valid, we will not be able to reply to any feedback from you
or alert you to any issues by email.
Keep in mind that, Turing's Craft will never provide your email
address (or any other personal information) to any third party
other than your instructor.
(4) Automatic Advancement.
You can arrange to jump forward to the next exercise automatically
when your submission is correct. Click PREFERENCES and check the
checkbox on the far right.
(5) Hide or Widen the Table Of Contents
You can hide or expand the width of the table of contents (TOC) by
clicking down on the two thing vertical lines on the right side of
the TOC, and holding down and dragging left or right.