lab4 - EEC 70: Computer Structures and Assembly Programming...

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

View Full Document Right Arrow Icon
EEC 70: Computer Structures and Assembly Programming Winter Quarter 2006 Laboratory Exercise 4: String Operations Due Date: Monday, Feb 24, 11:59 pm Full Points 100 Problem Description You will implement the equivalent of the standard C functions strcmp and strcat in SAL using the array data structure. A string is a sequence of upper case and lower case characters. You should declare a constant MAXLENGTH to store the maximum length of the string. This way you can change it later if you want to. You can initialize the constant MAXLENGTH to 10. Your program should begin with a input prompt: << This is a signal for the user to give his/her input. The valid inputs to your program are the following: ?(s1,s2) +(s1,s2) where s1 and s2 denote the two strings. Notice that there are no spaces between the characters. The input to your program will end with a carriage return (ENTER key on the keyboard). ? denotes
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 08/14/2008 for the course EEC 70 taught by Professor Wilken during the Spring '05 term at UC Davis.

Page1 / 2

lab4 - EEC 70: Computer Structures and Assembly Programming...

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