Embed presentation
Download to read offline




![Cstring equivalents
#include <cstring>
Cstrings are declared as char cs[] = ….
strlen(cs); //returns the length of cs
strcat(cs1,cs2); //concatenates two
cstrings](https://image.slidesharecdn.com/strings2-140425111340-phpapp02/85/Strings2-5-320.jpg)

This document discusses string manipulation functions in C++, including getting substrings using .substr(), inserting into strings with .insert(), finding substrings with .find(), comparing strings with relational operators, and equivalent functions for C-style strings like strlen() and strcat(). It provides examples of using .substr() to extract substrings by index and length, .insert() to add a substring, and .find() to locate a substring. It also notes that string comparisons consider ASCII values, so uppercase letters appear before lowercase.




![Cstring equivalents
#include <cstring>
Cstrings are declared as char cs[] = ….
strlen(cs); //returns the length of cs
strcat(cs1,cs2); //concatenates two
cstrings](https://image.slidesharecdn.com/strings2-140425111340-phpapp02/85/Strings2-5-320.jpg)