C++ Basics: Strings - String Methods (Member Functions)
As you have learned previously, strings are not primitive data types. They belong to a library called String. Here we have a class named string and we can use it to create string objects which have certain attributes and methods. In this video we will be discussing the most important and widely used methods or member functions in the string class. We will discuss about their functionality and where to use them. Objects are related to the subject called Object Oriented Programming which is a very popular paradigm of programming. Strings are based on OOP and that is why we have a string class. Anyways, most objects can have methods (member functions) and attributes. Which means that the String Class can also have such elements. Hence, we can do amazing stuff by using the handy methods and attributes. ------------------------------ 🕐Timestamps🕐 ------------------------------ Intro : 0:00 Intro to Strings Video Link : 0:09 Strings Basic Syntax Video Link : 0:28 OOP in a nutshell for Strings : 0:38 The length method (str.length()) : 1:52 IF Conditions Video Link : 4:42 Functions and Parameters Video Link : 4:55 Appending using += (str+=" hello") : 5:03 Append Method (str.append()) : 6:53 Insert Method (str.insert()) : 8:17 Erase Method (str.erase(arg1, arg2)) : 9:47 Erase Method (str.erase(arg)) : 10:51 Intro to pop_back() Method (str.erase(str.length()-1)) : 11:36 pop_back Method (str.pop_back()) (C++ 11 Upwards only) : 13:34 Replace Method (str.replace()) : 15:37 Find Method (str.find()) : 17:18 Find_First_Of Method (str.find_first_of()) : 20:01 npos Attribute (str.npos) : 21:24 ❌ DO NOT CLICK THIS!!! ----- bit.ly/youtubesubbot ◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼◼ Useful Links Escape Sequences in C++ : https://www.youtube.com/watch?v=AWEXCI8hWKs C++ Strings Playlist : https://www.youtube.com/playlist?list=PL2i17lRog5pCPCb_Ey0AWUGk2LskBN0k9 Strings in C++ Basic Syntax : https://www.youtube.com/watch?v=JQ8ieKlZEVs IF Conditions : https://www.youtube.com/watch?v=lRbTfsbFE64 Functions and Parameters : https://www.youtube.com/watch?v=PrlqKyqZQic Watch the Previous Video: Escape Sequences in C++ : https://www.youtube.com/watch?v=AWEXCI8hWKs Also Watch these Videos: C++ GUI Applications Getting Started : https://www.youtube.com/watch?v=NqvTBvwfP_E Make a Complete Website for free : https://www.youtube.com/watch?v=Z-PIyYHKrRM Also Watch the Entire Playlist: C++ Strings : https://www.youtube.com/playlist?list=PL2i17lRog5pCPCb_Ey0AWUGk2LskBN0k9 Recommended: C++ Basics : https://www.youtube.com/playlist?list=PL2i17lRog5pBu9YED6gAUbkggEl4aSYaL Get Social Facebook: (PAGE) https://www.facebook.com/CyberCafeSL (GROUP) https://www.facebook.com/groups/programmingsrilanka Instagram: https://www.instagram.com/scibersl
Download
0 formatsNo download links available.