proj_5_notes

proj_5_notes - CS31: Introduction to Computer Science I...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: CS31: Introduction to Computer Science I Project 5 Notes May 13, 2011 TA: Paul Wais ( pwais@cs.ucla.edu ) Discussion Section 1L Information TA: Paul Wais ( pwais@cs.ucla.edu ) Office Hours: Thursdays 11:30am - 1:30pm in Boelter Hall 2432 Discusion Website: http://www.cs.ucla.edu/ pwais Project 5 is very challenging! :) One of the greatest challenges the task of breaking the problem down into well-defined, manageable chunks. These notes discuss some hints that might help. Note that there are many ways to implement Project 5, so you dont necessarily need to follow these suggestions. 1 Hint 1: Get File I/O Working Before tackling the brunt of decrypt() , try to write some code that reads a file into an array. A natural way to store a text file in memory is to use an array of C-strings (i.e. a 2-dimensional array of char s). See the Project 5 I/O tutorial here: http://www.cs.ucla.edu/classes/spring11/cs31/fileio.html And try to write the following (partially-defined) helper function: 1 ??? readLines(istream& infile, char lines[???][???]) 2 { 3 // Just to be safe, initialize every row in lines to the empty C-string, i.e....
View Full Document

This note was uploaded on 07/06/2011 for the course CS 31 taught by Professor Melkanoff during the Spring '00 term at UCLA.

Page1 / 2

proj_5_notes - CS31: Introduction to Computer Science I...

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