comp11f09lab3

comp11f09lab3 - Comp 11! Fall 2009! Lab 3 Lucy in the sky...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1. Command Review - just in case. .. Command Description Example pwd Print the working directory. pwd ls List the fles and subdirectories ls cd Change the working directory cd /home/files cp Copy fle(s) From one place to another cp hello.txt /home/files/ mv Move / Rename fles mv /source/hello.txt /home/ rm Remove/delete fle(s) specifed rm /home/files/hello.txt mkdir Make a new directory mkdir comp11directory man Display the manual page For a command or Function man ls g++ Compile source code into a binary program g++ -o progname code.cpp emacs Edit source code or other text in the terminal 2. Introduction Today you will write two Functions to print shapes --- ascii style! Yes were are rocking it old school, way old school. Your job is to write two Functions: void printSquare(int size); v o i d p r i n t D i a m o n d ( i n t s i z e ) ; The output oF the Function print square when size is 11 is: *********** *********** *********** *********** *********** *********** *********** *********** *********** *********** *********** Comp 11
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/19/2009 for the course COMP 11 taught by Professor Stafford during the Fall '08 term at Tufts.

Page1 / 2

comp11f09lab3 - Comp 11! Fall 2009! Lab 3 Lucy in the sky...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online