Skip to content

Commit

Permalink
Need to introduce external research and make them learn printf more ex3.
Browse files Browse the repository at this point in the history
  • Loading branch information
zedshaw committed Sep 5, 2011
1 parent 9559245 commit 998185e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ex3.tex
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,31 @@ \section{What You Should See}
the build looks like, so please make sure you're getting this right
and that it's working.

\section{External Research}

In the \emph{Extra Credit} section of each exercise I may have you go
find information on your own and figure things out. This is an important
part of being a self-sufficient programmer. If you constantly run to
ask someone a question before trying to figure it out first then you
never learn to solve problems independently. This leads to you never
building confidence in your skills and always needing someone else
around to do your work.

The way you break this habit is to \emph{force} yourself to try to answer
your own questions first, and to confirm that your answer is right. You
do this by trying to break things, experimenting with your possible answer,
and doing your own research.

For this exercise I want you to go online and find out \emph{all} of the
\ident{printf} escape codes and format sequences. Escape codes are
\verb|\n| or \verb|\t| that let you print a newline or tab (respectively).
Format sequences are the \verb|%s| or \verb|%d| that let you print a
string or a integer. Find all of the ones available, how you can
modify them, and what kind of "precisions" and widths you can do.

From now on, these kinds of tasks will be in the Extra Credit and you
should do them.

\section{How To Break It}

Try a few of these ways to break this program, which may or may
Expand Down Expand Up @@ -78,3 +103,4 @@ \section{Extra Credit}
to \verb|make clean all| and build all your exercises so far.
\end{enumerate}


0 comments on commit 998185e

Please sign in to comment.