ENGR 101 Lecture Notes - Lecture 18: Standard Streams, List Of Fables Characters

60 views2 pages
31 Mar 2015
School
Department
Course

Document Summary

Engr 101: introduction to computers and algorigthms: lecture 18 - string arrays and. So far we have considered problems where the data we are manipulating is primarily numbers. Often the data we want to work with is not a number, but text. Strings provide a way of manipulating text opbjects. To use strings you must include them by putting an include line at the top of your c++ program: #include Strings can be added together with + . Can send strings to files and standard output using << Strings can be compared with logicals, which evaluate in alphabetical order. Reads a whole line from an input stream, stores in a string. Principle of data abstraction: we can think about algorithms operating on data without consideration of encoding and operation implementation details. Compound data object: composed of more primitive data objects. Strings are compound data objects because they are composed of sequences of chars.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents