Ch 10. Characters, C-Strings, and Characters the string class
Ch 10. Characters, C-Strings, and the string class
CS 2308 Spring 2015 Jill Seaman
1
10.1 Character Testing
! The C library provides several functions for testing characters.
! Requires the cctype header file ? They take a char (or int as ascii) argument ? They return true or false and can be used as
boolean expressions in if/while/etc.:
char input; ... if (isupper(input)) ...
3
Characters
! Built-in data type
! Value: a single character
! Literals: `a', `!', `\n', `8', ...
? Operations:
- assignment: = - compare: ==, = == != (alphabetical order using ascii values)
string string1, string2; string1 = "Hello "; string2 = "World!"; if (string1 < string2)
cout ................
................
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 searches
- 7000 14 r vol 10 ch 10 1000203a
- methods in string class java
- unique characters in string python
- mortal kombat 10 characters list
- c regex special characters list
- powershell concatenate strings and variable
- replacement bow strings and cables
- bear bow strings and cables
- python string class methods
- string class method
- string class method java
- string class java