CSC 270 – Survey of Programming Languages C++ Lecture 2 – Strings Credited to Dr. Robert Siegfried
Goals • • • Standard string vs cstring functions std: : string member methods Functions that use std: : string cin / cout / character manipulation getline vs cin
Standard String and C Style String • http: //www. tutorialspoint. com/cplus/cpp_strings. htm • Declare and initialize: – char cstring[100]; – char greeting[6] = {'H', 'e', 'l', 'o', '