Introduction to Strings in C++ | CPP Programming Video Tutorial

preview_player
Показать описание
In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn about the strings with example.

You will learn what is a string, how to initialize and use them, how to concatenate them, how to compare two strings for equality with example.

Learn Programming in HINDI at our youtube channel

Catch us on SocialMedia
Рекомендации по теме
Комментарии
Автор

Hey man, I'd like to first congratulate you that you're doing such a great job. All your lectures are really helpful.
I just want to add a small thing here in this program:
You don't actually need to #include string header file, we can use string class without even including this file too.
Please comment if you feel to add something to this.
Thank you! :)

gawarivivek
Автор

Thanks sir. Why is this better than using and declaring integers or characters?

SalYourPalChencho
Автор

Hi and thanks a lot for these helpful series of tutorials. I just got a small question; when I try to build and run the same code on my computer I got a virus message; that a virus is created, and I'm not able to overcome this in order to get the expected results.

mohammedettayebi
Автор

Because without concatenation, all we'll get is shetty anil ;)

justins
Автор

#include <iostream>
using namespace std;

int main() {
auto name = " ABC" ;
auto surname = " XYZ" ;
cout<< name <<" " << surname;
return 0 ;
}

Sir this also work then its correct or not

tapanparmar
Автор

anil can u make a video on boolen data type and how can we pass string in a function. or tell about it through reply.i will be very thankfull to u

tahirfaris
Автор

this is easier then java, in java u needed to type name.equals("name");

tekkitgods
Автор

hello bro, ,,u are doing great, ,but tell me why, ,
"anil"+"shetty" is wrong but "anil""shetty" is right.pls reply

divineforever
Автор

sir how to find a string is palindrome or not. The question is if the string is palindrome then return 1 else return 2. and the function for finding palindrome is "isPalindrome(char *num1) .num1 is the input.

anju
Автор

hello sir this is asgar, first of all thank you soo much for such amazing videos. iam studing engineering second year i have a topic named datastructures so i cant follow the topic which are tought in class so can u please help me out to understand datastructures what is the content tht i shd be known to follow datastructures?? i will be very happy if u help me out sir, thankyou...you are the best teacher ever!!

sohailmirza
Автор

sir but we did not use the string key word in C programming, is it only to C++ that this data type is used?

sudhansumtripathy
Автор

Why don't you use curly braces in you if-else block; and your code does not flag an error??

sirturnables
Автор

hai sir how to get a single charecter from a string in c++

anju
Автор

why i cant run this i.e. we cant use + operator to add two Strings in #turbo c++😭😭😭😕

itzjvs
Автор

so you are shetty.
i think you are from karnataka right😊😊

ManojKumar-dlxz
Автор

you didnt explain anything you just typed

CoolName