strings in c++
This video tutorial introduces the strings in c++ programming.
You will learn what is a string, how to initialize strings in c++, how to use strings in c++, how to concat strings, how to compare two strings for equality in c++ with example.
source code for this tutorial
#include <iostream>
#include<string>
using namespace std;
int main()
{
string name = "anil";
string lastname = "shetty";
string fullname;
fullname = name + " " + lastname;
if( name == "anjali" )
cout << "name matched";
else
cout << "name mismatch";
return 0;
}