C++ Data Type char
C++ examples for Data Type:char
HOME
C++
Data Type
char
Description
Click the following links for the tutorial for Data Type and char.
Display all the ASCII characters using for loop
Convert characters to uppercase
Use spaces and commas as delimiters and prints each substring (each token) on its own line:
Escape Characters in C++
Output a character array to standard output by using ending character
Output a character array to standard output by using array length
Concatenate two wide strings with a " - " in the middle using library routines
Converts the input characters to uppercase if they aren't already.
Asks for first initial and tests to ensure that response is correct.
Determines whether the user typed a G or a B.
Prints uppercase equivalents of five lowercase letters.
Prints the integer equivalent of a character typed at the keyboard. Store the input in a variable type of char.
Use isspace, iscntrl, ispunct, isprint and isgraph.
Use islower, isupper, tolower and toupper.
Use isdigit, isalpha, isalnum and isxdigit to check character
Packing and unpacking characters.
Escape Sequences That Represent Control Characters
Demonstrates character variables
Counts characters and words typed in
Count characters and words typed in
Illustrates this declaration and the use of cout to display the value stored in a character variable.