C++ strings Definition

C++ strings Definition
  11 May 2021
Read more Like this Post.
string is a class which take chars in array's this used for writing long chars. string class have many function like: to finding strings length, finding words, limiting word, erase and many more.
#include <iostream>
#include <string> 
int main(){
   std::string myText = "Hello! How are you.";
   std::cout << myText << std::endl;
in the second line we add a library which names is string. the next thing is myText variable this  variable is the data-type of the strings class and we assigned some text in the variable and print in console. there is some function which provide string class for us click on the below articles link to learn more about strings.
Related Post's

c++   strings   c++: functions   c++: classes  
Not Loaded Zohaib Jozvi
0 11 May 2021
Read Latest Post.
Read other post.