CS107, Lecture 4 - Stanford University
CS107, Lecture 4
C Strings
Reading: K&R (1.9, 5.5, Appendix B3) or Essential C section 3
This document is copyright (C) Stanford Computer Science, Lisa Yan, and Nick Troccoli, licensed under Creative Commons Attribution 2.5 License. All rights reserved. Based on slides created by Marty Stepp, Cynthia Lee, Chris Gregg, Lisa Yan, Jerry Cain and others.
1
CS107 Topic 2: How can a computer represent and manipulate more complex
data like text?
2
Lecture Plan
? Characters ? Strings ? Common String Operations
? Comparing ? Copying ? Concatenating ? Substrings
? Practice: Diamond ? Live Session
4 11 16
19 21 79 90
99 105
3
Lecture Plan
? Characters ? Strings ? Common String Operations
? Comparing ? Copying ? Concatenating ? Substrings
? Practice: Diamond ? Live Session
4 11 16
19 21 79 90
99 105
4
Char
A char is a variable type that represents a single character or "glyph".
char letterA = 'A'; char plus = '+'; char zero = '0'; char space = ' '; char newLine = '\n'; char tab = '\t'; char singleQuote = '\''; char backSlash = '\\';
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- ascii table codesdope
- lecture 03 i o functions strings arrays
- ch 10 characters c strings and characters the string class
- c programming examples princeton university
- cs107 lecture 4 stanford university
- duane s incredibly brief introduction to the c programming
- c c and unix programming
- characters and strings
- the ascii character set
- outline of noteset 6 the ascii character encoding table
Related searches
- stanford university philosophy department
- stanford university plato
- stanford university encyclopedia of philosophy
- stanford university philosophy encyclopedia
- stanford university philosophy
- stanford university ein number
- stanford university master computer science
- stanford university graduate programs
- stanford university computer science ms
- stanford university phd programs
- stanford university phd in education
- stanford university online doctoral programs