C++ Basics: Strings - Assign User Input using cin and getline

Поділитися
Вставка
  • Опубліковано 20 сер 2024
  • Strings are one of the major libraries in C++. Having a good understanding about how they work is quite important. Anyways this video will teach you how to assin user input using the traditional cin and the new getline function. Normally you would get other data types as inputs using the cin object. But here since strings are also consisting with spaces, the cin object is not just enough. Since the cin object separates input using white space, one string can be identified as 2 inputs. Therefore the new getline is implemented to avoid this problem and it intelligently handles the input just the way we want it.
    This video is very important to follow the next few videos atleast, so it is highly recommended to watch this. Most importantly, since strings are objects and not just variables like other data types, it is better to have a separate understanding about they work.
    ===========================================
    Useful Links
    Subscribe our New channel for Tech Updates : bit.ly/fluxbyte
    ===========================================
    Watch the Previous Video:
    C++ Strings Basic Syntax and Output using Cout : • C++ Basics: Strings - ...
    Also Watch these Videos:
    Functions and Parameters : • C++ Basics: Functions ...
    Loops : • Video
    Data Types : • Video
    Also Watch the Entire Playlist:
    C++ Basics for Beginners in Sinhala : • C++ Basics in Sinhala ...
    Recommended:
    C++ GUI Basics for beginners in Sinhala : • C++ GUI Programming in...
    ==========================================
    Get Social
    Facebook: (PAGE) / cybercafesl
    (GROUP) / programmingsrilanka
    Instagram: / cybercafesl
    ==========================================
    Visit Us : www.cyberweb.ga
    for any useful material including project files and software downloads.
    Download Scorthut : www.cyberweb.ga...
    Make sure to comment down your ideas below!
    OR, you can mail me via,
    mailto:
    ==========================================
    TAGS (IGNORE)
    strings in c++, c++ strings sinhala, output strings in cout, string class library c++, const char poibter, char array, c style strings, getline, c++ programming tutorial, user input strings, cin.getline, getline function, how to get user input using getline, getlibe function arguments
    ==========================================

КОМЕНТАРІ • 6

  • @danushamalshan3545
    @danushamalshan3545 3 роки тому +1

    සුපිරී...

  • @sithijax2103
    @sithijax2103 Місяць тому

    දිගටම ඔයාගෙ channel එක තිබුනනම් කියල හිතුන ❤

  • @sithijax2103
    @sithijax2103 Місяць тому

    Great explaining

  • @chanukathilakarathna254
    @chanukathilakarathna254 2 роки тому

    Elamaaa aiyeeeee 🧡🧡🧡🧡🧡🧡🧡🧡🧡🧡🧡🧡🧡🧡🧡

  • @TechnoSoftlk
    @TechnoSoftlk 4 роки тому +2

    Patta ah! 💪🔥