Professional Documents
Culture Documents
L a n c e \0
Since char is a built-in data type, no header file is required to
create a C string.
syntax:
cin.getline(String_Var, Max_Characters + 1);
OUTPUT:
OUTPUT:
get function allows your program to read in one character
of input and store it in a variable of type char
SAMPLE CODE:
put This function member is analogous to the member
function get except that it is used for output rather than
input. The function put allows your program to output one
character
SAMPLE CODE:
OUTPUT:
This header declares a set of functions to classify and
transform individual characters.
Two strings are joined using append function. In the example, the
append function first joins str1 with space and then the string
str1 is joined with 'str2'.
http://www.cplusplus.com/reference/string/
https://www.programiz.com/cpp-programming/strings
https://www.tutorialspoint.com/cplusplus/cpp_strings.htm
https://www.w3schools.com/cpp/cpp_strings.asp
https://www.geeksforgeeks.org/c-string-class-and-its-applications/