[Cs3] Lab 01

Mikhail Nesterenko mikhail at cs.kent.edu
Sat Jan 22 16:35:51 EST 2022


> 
> So in the lab we need to place the carrot at the place where the first file
> and second file characters are not the same, but if the file names were
> different the carrot may be misplaced. For Example:
> 
> file1.txt: hello
> file2.txt: hallo
>                ^
> 
> In the example above the file names line up so the carrot is at the correct
> place.
> 
> file1.txt: hello
> test-file.txt: hallo
>                ^
> In this example the file names are not the same character length and the
> carrot seems to be misplaced.
> 
> Do we need to account for this in our code, or do we just assume that the
> file names will always be the same length?
> 
> Thank you, and have a great weekend!

The lab assignment says to assume that file names are the same length.

Thanks,
--
Mikhail


More information about the cs3 mailing list