CodeBeauty
CodeBeauty
  • 148
  • 13 489 996
All C# string methods explained (C# Programming tutorial for Beginners)
In this programming tutorial, we will learn how to work with strings in C#. I'll teach you how to use strings, how to compare two strings, how to search for a word in the text and much more. We will also learn the most important methods for working with strings in C# and I will share tips and tricks for working with strings. This is one of the main concepts of every programming language so you absolutely have to understand it.
Enjoy the video and leave your questions in the comment section.
If you want to gain more practical experience in building real apps and get career-ready skills, join my Practical Programming Course below.
🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.
📚 Learn programming with these Free E-Books ⬇
C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
Download Visual Assist here: bit.ly/WT-CB
I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
Download Ultra Edit here: bit.ly/UE-CB
It is a powerful, secure text editor designed specifically for programmers.
CONTENTS:
00:26 - How to compare two strings using operators
02:34 - Where to learn programming
03:33 - Compare strings using Equals method
06:53 - How to convert string to uppercase or lowercase
08:59 - How to convert a number to a string using ToString method
10:15 - Difference between number and string datatypes
12:18 - How to search for specific terms using Contains method
14:10 - How to search for specific terms using IndexOf method
16:08 - How to get a substring using Substring method
18:20 - How to check the starting string using StartsWith method
19:02 - How to check the ending string using EndsWith method
19:25 - How to replace part of the string using Replace method
20:35 - How to remove whitespace using Trim method
22:50 - How to split a string using Split method
Переглядів: 2 582

Відео

How to set up VS Code for C# and make your First Program? + How to learn Practical Programming
Переглядів 3,8 тис.14 днів тому
In this programming tutorial, I will teach you how to set up VS Code for working with C#. I will show you all the tools and extensions and you'll learn how to create C# applications with VS Code. VS Code is a free lightweight text editor with great capabilities and a huge list of extensions which makes it a great tool for beginners who are just starting with application development. Enjoy the v...
C# String - How to work with strings in C#? C# Programming tutorial for Beginners
Переглядів 3,4 тис.21 день тому
In this programming tutorial, we will learn how to work with strings in C#. I'll teach you how to use strings and some tips and tricks that you should consider when you are working with strings, as well as most common errors. This is one of the main concepts of every programming language, so you absolutely have to understand it. Enjoy the video and leave your questions in the comment section. I...
C# Loops for beginners in 40 min - While, Do-While, For (C# Programming tutorial)
Переглядів 7 тис.Місяць тому
In this programming tutorial, we will learn what are loops in C#. I'll teach you how to use different types of loops. We will learn about while loop, do-while loop, and for loop. By the end of this video, you will understand when to use while loop, when to use do-while loop and when to use for loop, as well as the differences between them. I will also show you some tips and tricks important for...
Difference between copy constructor and assignment operator in C++ (OOP tutorial for beginners)
Переглядів 6 тис.2 місяці тому
In this programming tutorial, we will learn the difference between an assignment operator and a copy constructor in C . I'll teach you how to use an assignment operator as well as how to use a copy constructor. We will also learn some common mistakes that developers make when working with assignment operators and copy constructors. It is crucial that you understand the difference between these ...
Switch case statement - C# programming tutorial for beginners
Переглядів 2,9 тис.2 місяці тому
In this programming tutorial, we will learn what a switch case statement in C# is. I'll teach you how to use a switch case and some tips and tricks. This is one of the main concepts of every programming language so you absolutely have to understand it. Enjoy the video and leave your questions in the comment section. If you want to gain more practical experience in building real apps and get car...
If else statement - C# programming tutorial for beginners
Переглядів 4,2 тис.2 місяці тому
In this programming tutorial, we will learn what is if else statement in C#. I'll teach you how to use if else, how to write multiple/chained if else statements, and how to write nested if else statements. This is one of the main concepts of every programming language so you absolutely have to understand it. Enjoy the video and leave your questions in the comment section. If you want to gain mo...
What is Input/Output in C# - Programming tutorial for beginners
Переглядів 3,3 тис.2 місяці тому
In this programming tutorial, we will learn about input and output. It is one of the most important programming concepts. You will learn how to insert data into the application and how to show the data to the user. Enjoy the video and leave your questions in the comment section. If you want to gain more practical experience in building real apps and get career-ready skills, join my Practical Pr...
C# Operators: Tips, Tricks & Errors (Relational and Logical) part 2
Переглядів 6 тис.2 місяці тому
In this programming tutorial, we will continue with C# operators. I'll teach you all the tricks, tips, and most common errors that happen to beginners as well as experienced programmers. This programming lesson is the second part of operators where we're going to learn everything about relational and logical operators. Enjoy the video and leave your questions in the comment section. If you want...
C# Operators: Tips, Tricks & Errors (Arithmetic, Assignment, Increment, Decrement, etc.) part 1
Переглядів 8 тис.3 місяці тому
In this programming tutorial, you'll learn about C# operators. I'll teach you all the tricks, tips and most common errors that happen to beginners as well as experienced programmers. This programming lesson is the first part where we're going to learn everything about arithmetic operators, assignment operators, increment, decrement, and common errors that occur, including datatype overflow and ...
Programmer Q&A - Answering your most interesting questions!
Переглядів 30 тис.3 місяці тому
If you want to gain more practical experience in building real apps and get career-ready skills, join my Practical Programming Course below. 🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/ Experience the power of practical learning, gain career-ready skills, and start building real applications! This is a step-by-step course designed to take you from beginner to expert in no ti...
C# Variables and Data Types (beginners programming tutorial)
Переглядів 14 тис.3 місяці тому
Datatypes and variables are C# most important concepts. In this video we will learn what are variables and datatypes. I will explain how to create variables and the rules of naming variables in C#. We will also learn the most commonly used datatypes such as int, double, char, string, bool, float, and decimal. I will explain differences in the size of the data that each datatype can hold and you...
C# Introduction - Create your first application (Hello World) - For beginners
Переглядів 11 тис.3 місяці тому
This video will be introduction to C# programming language. Today, I will explain what is C# and what kind of applications can be built with C#. You will also learn the difference between C# and other programming languages. In the second part of the video, I will show you how to install Visual Studio 2022 Community and how to build C# applications. This video will be first video in C# playlist,...
C++ List (Real examples, Sorting a list, When (not) to use List, Detailed explanation, Step-by-Step)
Переглядів 12 тис.4 місяці тому
C List (Real examples, Sorting a list, When (not) to use List, Detailed explanation, Step-by-Step)
STL Templates in C++ - Generic Functions and Classes (beginner-friendly)
Переглядів 14 тис.4 місяці тому
STL Templates in C - Generic Functions and Classes (beginner-friendly)
C++ STL Introduction (for beginners) What is STL and STL main components?
Переглядів 14 тис.4 місяці тому
C STL Introduction (for beginners) What is STL and STL main components?
How to build C# GUI apps with Visual Studio? (FREE, FAST & EASY)
Переглядів 13 тис.4 місяці тому
How to build C# GUI apps with Visual Studio? (FREE, FAST & EASY)
Learn to Code and Earn Money 💸 in Just 3 Months with this Beginner To Expert Programming Course
Переглядів 32 тис.5 місяців тому
Learn to Code and Earn Money 💸 in Just 3 Months with this Beginner To Expert Programming Course
What is Mutex in C++ (Multithreading for Beginners)
Переглядів 40 тис.10 місяців тому
What is Mutex in C (Multithreading for Beginners)
How I 10x my salary #shrots #coding #developers #developerlife #code #10x
Переглядів 17 тис.10 місяців тому
How I 10x my salary #shrots #coding #developers #developerlife #code #10x
Advanced Inheritance & Polymorphism - example with Array of Objects (in-depth Data Structures & OOP)
Переглядів 19 тис.10 місяців тому
Advanced Inheritance & Polymorphism - example with Array of Objects (in-depth Data Structures & OOP)
Array of objects Algorithms - Search, Sort, Reverse, Max, Min, Custom methods
Переглядів 13 тис.10 місяців тому
Array of objects Algorithms - Search, Sort, Reverse, Max, Min, Custom methods
Dynamic Arrays of Objects (Data Structures course, step-by-step)
Переглядів 18 тис.11 місяців тому
Dynamic Arrays of Objects (Data Structures course, step-by-step)
Arrays of objects - Introduction (Data Structures course, step-by-step, in-depth)
Переглядів 18 тис.11 місяців тому
Arrays of objects - Introduction (Data Structures course, step-by-step, in-depth)
I used web data to identify market trends (Practical App Programming tutorial)
Переглядів 19 тис.Рік тому
I used web data to identify market trends (Practical App Programming tutorial)
C++ Copy constructors (beginner-friendly tutorial + practical examples)
Переглядів 62 тис.Рік тому
C Copy constructors (beginner-friendly tutorial practical examples)
C++ simple GUI app - Reminder app in 15 min (Step-by-Step)
Переглядів 22 тис.Рік тому
C simple GUI app - Reminder app in 15 min (Step-by-Step)
Destructors in Programming: Practical Demonstration
Переглядів 31 тис.Рік тому
Destructors in Programming: Practical Demonstration
OOP Constructors - Types of Constructors You Need to Know (Basics to Mastery)
Переглядів 45 тис.Рік тому
OOP Constructors - Types of Constructors You Need to Know (Basics to Mastery)
Function pointers, delegates and callbacks | Beginner friendly
Переглядів 33 тис.Рік тому
Function pointers, delegates and callbacks | Beginner friendly

КОМЕНТАРІ

  • @thePRECIOUS_1
    @thePRECIOUS_1 5 годин тому

    i started with c and this course helped me connect it with c++ and get a complete overview of this c / c++ languages ❤❤

  • @simongachai8341
    @simongachai8341 6 годин тому

    nice one @leftytv254

  • @micajahnordyke5760
    @micajahnordyke5760 13 годин тому

    Спасибо!

  • @spideyr6296
    @spideyr6296 19 годин тому

    Youre awesome, I love the emotional part of the video thank you

  • @Elsamouly.
    @Elsamouly. 19 годин тому

    hi Saldina when i watched your videos i loved it and loved you thank you for every thing

    • @CodeBeauty
      @CodeBeauty 10 годин тому

      Thank you for this comment 🥰🥰

  • @jorgetxjr
    @jorgetxjr 20 годин тому

    Thank you!

  • @jorgetxjr
    @jorgetxjr 20 годин тому

    Great content and nice music! Get back to play, please!

  • @ZafaryabWaheed
    @ZafaryabWaheed 21 годину тому

    #include<iostream> using namespace std; Int main() { cout<<"number of subscribers increased"; return 0; }

  • @MohamadrezaVafaieekia
    @MohamadrezaVafaieekia День тому

    One of the best course's I have ever find! tnx a lot from Iran❤️

    • @CodeBeauty
      @CodeBeauty 10 годин тому

      I'm happy to hear that. Many greetings for you! 🥰🥰

  • @imslippykid8834
    @imslippykid8834 День тому

    2:09 i feel directly called out

  • @user-ld1fo5mh9b
    @user-ld1fo5mh9b День тому

    А ну конечно я клюну ум и красота ⚘+🧠+🔻=⚖👇

  • @bielhelp
    @bielhelp День тому

    Solving with strings: #include <iostream> using namespace std; int main() { std::cout << "Hello World! "; string hostUser,guestUser; // Host Input cout << "Host, write something!" << endl; cin >> hostUser; system("cls"); // Clean console. // Guest Input! cout << "Guest, write something!" << endl; cin >> guestUser; // "if/else" solution: // if (guestUser == hostUser) { cout << "Success!"; } // else { cout << "Fail!"; }; // Ternary solution: (hostUser==guestUser) ? cout << "Correct!" : cout << "Incorrect!"; }

  • @bielhelp
    @bielhelp День тому

    I declared two new int variables instead of using the (int)num1: int v1,v2; v1 = num1; v2 = num2; if (v1==num1) {isNum1Int = True;} else {isNum1Int = False;}; if (v2==num2) {isNum2Int = True;} else {isNum2Int = False;};

  • @user-bp6tl4nm9y
    @user-bp6tl4nm9y 2 дні тому

    Thanks madam Saldina iam really happy and improving in my IT Program thanks so much you are a very good lecturer.

  • @muhmedgamal5841
    @muhmedgamal5841 2 дні тому

    Gooooood😊

  • @Praveen_C11
    @Praveen_C11 2 дні тому

    9:48

  • @Praveen_C11
    @Praveen_C11 3 дні тому

    10:30

  • @BrandyTunmire
    @BrandyTunmire 3 дні тому

    Excellent explanation as always

  • @gideonspace8807
    @gideonspace8807 3 дні тому

    the machine code can be understopod using hexadecimal decodes.

  • @NaveenKumar-oz6wp
    @NaveenKumar-oz6wp 3 дні тому

    Superb explaination, thanks for much more clarification in a specific manner

  • @kulinterests
    @kulinterests 3 дні тому

    @saldina can I use constructors in a structure? For example: struct UA-camChannel { string Name; int Subscribers; UA-camChannel(string name, int subscribers) { Name = name; Subscribers = subscribers; } } . . // other codes; . . int main( ) { UA-camChannel yt("Frank", 10); Struct_Name ytInfo; ytInfo.Yt = yt; . . . } I tried it for void it worked but didn't work for constructors, do you know why?

  • @ronniesaurav17
    @ronniesaurav17 3 дні тому

    #include <iostream> #include <fstream> #include <string> using namespace std; void writeStoryToFile(const string& story, const string& filename) { ofstream outFile(filename); if (!outFile) { cerr << "Error opening file for writing!" << endl; return; } for (char ch : story) { outFile << int(ch) << ' '; } outFile.close(); } string readStoryFromFile(const string& filename) { ifstream inFile(filename); if (!inFile) { cerr << "Error opening file for reading!" << endl; return ""; } string story; int asciiCode; while (inFile >> asciiCode) { story += char(asciiCode); } inFile.close(); return story; } int main() { string story = "A simple story. "; string filename = "story.txt"; writeStoryToFile(story, filename); string retrievedStory = readStoryFromFile(filename); cout << "Retrieved Story: " << retrievedStory << endl; return 0; }

  • @ellysismine
    @ellysismine 3 дні тому

    i love carry you by ruelle

  • @ellysismine
    @ellysismine 3 дні тому

    thank you sooo much

  • @damianeesa
    @damianeesa 4 дні тому

    I love ur videos!! It'll really help me with my finals🌸

  • @L0G0master
    @L0G0master 4 дні тому

    This is my first ever english lecture video understanding with out subtitles 😅😂..... thank u mam❤

  • @jimpapay2895
    @jimpapay2895 4 дні тому

    Hello CodeBeauty, I'm having a really hard time with callback functions. Can you do a video on just the callbacks. And make it for a child? Thank-you. Jim

  • @FauziyaSuleimanzumo
    @FauziyaSuleimanzumo 4 дні тому

    But can we use the variable float in c## since double is the bigger memory decimal value of float?

  • @anishbhat06
    @anishbhat06 5 днів тому

    I am currently in my first year cs undergrad will this course be useful?......because this focuses on a specific domain and will it help in On-campus placements??

  • @anishbhat06
    @anishbhat06 5 днів тому

    Hey ! I have a question......Do we learn Android development or backend development in this course??

  • @MrBensella
    @MrBensella 5 днів тому

    ammm , the video loop X 2 is deliberate?

  • @ahmedfawzy728
    @ahmedfawzy728 5 днів тому

    brilliant tutorial

  • @billcarruth8122
    @billcarruth8122 5 днів тому

    I clicked for C sharp, but all I see is fine.

  • @user-ld1fo5mh9b
    @user-ld1fo5mh9b 5 днів тому

    Я не понимаю английского я учил немецкий да и немецкий язык так себе понимаю . А вы как будто на из USA

  • @abhayjhariya1089
    @abhayjhariya1089 5 днів тому

    is this a beauty channel, is she trying to attract students by their beauty in thumbnail ?

    • @sfs-lyder8560
      @sfs-lyder8560 5 днів тому

      sometimes you need motivation to learn.

  • @skykid1075
    @skykid1075 5 днів тому

    i miss you so much ! i wish you best and joy ! long hug and kiss

  • @MrSevenup14
    @MrSevenup14 5 днів тому

    those strings are holding for their dear lives

    • @soumyadeepsarkar3808
      @soumyadeepsarkar3808 5 днів тому

      Why ? Strings in C# are easy to use ?

    • @ChrisCarlos64
      @ChrisCarlos64 5 днів тому

      @@soumyadeepsarkar3808 He wasn't referring to the C# strings.

  • @vaibhavjoshi2533
    @vaibhavjoshi2533 6 днів тому

    IM OVERLY EXCITED, NEVER KNEW C# COULD BE THIS MUCH FUN

  • @34sisantachhatoi34
    @34sisantachhatoi34 6 днів тому

    You look taller

  • @igiriwalter6546
    @igiriwalter6546 6 днів тому

    We like your content teach us Python also

  • @MajeedKhan-ix3mj
    @MajeedKhan-ix3mj 6 днів тому

    Thank You, One of the best c++ tutorial video I've ever seen on UA-cam

  • @hamidahadafmand-mw8fl
    @hamidahadafmand-mw8fl 6 днів тому

    Hey, I wish you were my onsight teacher in class

  • @YazeedSeraj
    @YazeedSeraj 7 днів тому

    15:06 Refactoring means improving the internal structure and readability of a function without changing its external behavior or functionality

  • @handsoncoding7693
    @handsoncoding7693 7 днів тому

    thanks a lot CodeBeauty. I am BCA student at manipal university jaipur, I struggke understanding this concept from other tutorial, but yours is super easy to grasp. thanks again

  • @broadbandmax
    @broadbandmax 7 днів тому

    Not sure if already asked, how to does the exception work when propogating through a call stack?

  • @seanspencer1818
    @seanspencer1818 7 днів тому

    I'm a little confused, why does insertAtFront() and insertAtTheEnd() takes a double pointer while the insertAfter() takes a single pointer? Really appreciate if anyone can explain this to me. Thank you

  • @juanandrade1615
    @juanandrade1615 7 днів тому

    Thanks a lot for this course, You explain very well step by step, I am enjoying it very much. 🤗✨

  • @duttybwoy556
    @duttybwoy556 7 днів тому

    😂😂😂 definitely confirmed you're a badass dev lol ...

  • @duttybwoy556
    @duttybwoy556 7 днів тому

    So a Senior dev is a badasssssss gangstaaa , like you , right??? Lol... Yes ma'am.

  • @ooss748
    @ooss748 7 днів тому

    What about mac