Strings  
 
 

Week 5

Readings:

For this week please read Chapter 7 in Overland on strings.

Key Concepts:

Since one of the goals of this course is to have a well functioning set of cryptology programs, a good knowledge of strings will be essential since what we are really interested in encoding is messages of letters, not of numbers. To this end, for this week you will learn all about strings in C++, specifically:

  • The difference between C style strings and the C++ string class, and the #include statements need to use each.
  • How to get individual characters from a string of either type.
  • How to perform basic string operations such as getting length and concatenation on both types of strings.

Exercises from Reading:

All the exercises from the reading.

Cryptology Program:

There is no cryptology program this week, but they will return next week.

 


Files to Be Downloaded