Variables and basic data types ✗

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 134

  • @BroCodez
    @BroCodez  2 роки тому +62

    #include
    int main() {
    //int (whole number)
    int age = 21;
    int year = 2023;
    int days = 7;
    //double (number including decimal)
    double price = 10.99;
    double gpa = 2.5;
    double temperature = 25.1;
    //char (single character)
    char grade = 'A';
    char initial = 'C';
    char currency = '$';
    //boolean (true or false)
    bool student = false;
    bool power = true;
    bool forSale = true;
    //string (objects that represent a sequence of text)
    std::string name = "Bro";
    std::string day = "Friday";
    std::string food = "pizza";
    std::string address = "123 Fake St.";
    std::cout

    • @-Syney
      @-Syney 7 місяців тому +1

      #include
      int main(){
      //integer (whole number)
      int x = 25;
      int y = 6;
      int sum = x + y;
      std::cout

    • @Yami575
      @Yami575 6 місяців тому

      #include
      int main(){
      int x=25;
      int y=24;
      std::cout

  • @nat4895
    @nat4895 11 місяців тому +9

    you save me from shifting my course!! thank you so much 😭💗💗

  • @_ScriptedTales
    @_ScriptedTales 2 роки тому +8

    Thanks buddy🌜

  • @TheProgrammingPod
    @TheProgrammingPod 10 місяців тому +24

    This guy is a GIGACHAD.

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

    I like this guy

  • @best_ai_stories101
    @best_ai_stories101 10 місяців тому +3

    Amazing lesson bro

  • @annoyingprecision2487
    @annoyingprecision2487 Рік тому +5

    Man! C++ is such a captivating programming language. So far (based on my limited experience) my favorite programming languages are C++, C, Assembly > Java > Python > JS. Thanks a ton for the incredible content.

    • @50lek
      @50lek Рік тому +2

      Wtf makes assembly one of your favorite languages?

    • @playerbutnot265
      @playerbutnot265 7 місяців тому

      @@50lek He is not okay (or he didn't tried to code asm)

    • @مروانفرجبكر
      @مروانفرجبكر 6 місяців тому

      Hello, do you have some books for the C++ language?

  • @Gaurav_63
    @Gaurav_63 2 роки тому +13

    Integer a = 10
    Double a= 1.2
    Char a= 'c'
    Boolean x = true
    String name = "anonymous"

    • @ILMC-AP
      @ILMC-AP 3 місяці тому +3

      I think you forgot the semicolon

  • @alexandreaimelafrance3469
    @alexandreaimelafrance3469 2 роки тому +6

    Assignment (Divide to 4 units.) :
    *Integer variable*
    #include
    int main(){
    int x; // to create an integer variable
    x = 5; // assign the variable to 5

    int y = 10;
    int sum = x + y;
    std::cout

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

    thank you very nice easy to understand.

  • @cristianbolos8459
    @cristianbolos8459 2 роки тому +2

    thanks master!

  • @rudrarajkar1116
    @rudrarajkar1116 2 роки тому +6

    For those who think that these are re-up loads I want to say that they are not cause the earlier series used vs code and not vs studio code (the one with purple icon it's how I think of it) and this uses the blue icon. _I know people might not have thought that but I wanted to say it anyways_

  • @BobySDWANKenobi
    @BobySDWANKenobi 2 місяці тому

    cout

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

    Pefect Bro Code! Thank you!

  • @fabio-2301
    @fabio-2301 2 роки тому

    Thank you for everything you do man

  • @mohanad.nzubair6722
    @mohanad.nzubair6722 2 роки тому +11

    hello bro code this what i made
    #include
    /* this lesson is about varibales that are devided into catagories
    # c++ is very sorted program that has word for each function so no random steps or dizzy steps can be made
    ** note the functions are displayed as follow with a function for each
    */
    int main(){
    // first one is integer that used for nolmal numbers with no decimal (points, float)
    int year_born = 2000;
    int year_graduated = 2022;
    int age = 22;
    //second oneis called double, this variable is for decimal numbers as int cant run decimal number
    double dollar = 1.480;
    double gold= 600.05;
    // the next one is single character that is used do describe something with one litter the value must be
    // single ' not "
    char grade = 'A';
    char learning_quality ='S';
    /* this called boolean as it is called it do only true or false usefull for knowing if
    someone passed in exam for example*/
    bool math = true;
    bool physics = false;
    bool computer = true;
    //string (an objject that represent a sequence off the text)
    std::string college = "agriculture engineering";
    std::string name= "Mohanad Natheer";
    std::cout

    • @eluruguasho2148
      @eluruguasho2148 Рік тому +1

      Very good job 👍😊

    • @thatangerine
      @thatangerine 9 місяців тому

      was wondering if you have fully learnt C++ by now

  • @artemzakharchuk2842
    @artemzakharchuk2842 Рік тому +1

    int main() { using namespace std; int a = 10; char b = 'C'; double c = 9.87; bool n = true; string r = "I love Ukraine!"; cout

  • @viihnaNeverShutsUp
    @viihnaNeverShutsUp 6 місяців тому +2

    int x = 103;
    double euler = 2.71828;
    char USD = "$";
    boolean tired = true;
    string name = "Viihna";

  • @moonhowler667
    @moonhowler667 4 місяці тому

    I feel you should teach float before double, and teach the importance of size limits.

  • @JahangeerMangi
    @JahangeerMangi 22 дні тому

    thank you bro

  • @LXV304
    @LXV304 5 місяців тому

    Thanks so much! This is a massive help! c:

  • @Tăctawc-9a
    @Tăctawc-9a Рік тому

    thank you very much

  • @samarbaldaniya-bh1qk
    @samarbaldaniya-bh1qk 9 днів тому

    before:😑 after watching all ur c++ vids: ☺

  • @kitara7787
    @kitara7787 Рік тому +1

    If use tried boolean and the output are zeros and ones, try to use "boolalpha";
    std::cout

  • @MrBat-101
    @MrBat-101 2 роки тому +1

    #include
    int main(){

    //integer
    int amount = 2;
    int age = 115;
    int IQ = 690;
    double av = 91.8;
    double gpa = 4.5;
    char grade = 'A';
    char branch = 'B';
    std::cout

  • @MainulHossainAnik
    @MainulHossainAnik 21 день тому +1

    DONE BRO❤❤😌😌

  • @mr.unknown5307
    @mr.unknown5307 2 роки тому +1

    Please make vidio on Json, socket, sys, module in python

  • @yellowhellow-wi9gi
    @yellowhellow-wi9gi 6 місяців тому

    thank you

  • @Kirankumar-od8eu
    @Kirankumar-od8eu 2 роки тому

    wc back legend!

  • @1RqMi
    @1RqMi 2 роки тому

    Welcome back Bro :)

  • @betterthanyou5779
    @betterthanyou5779 5 місяців тому +2

    random comment for algorithm

  • @pawpotsRS
    @pawpotsRS 2 роки тому +2

    int z = 9;
    double year = 20.22;
    char initial = 'R';
    std::string name = "RS";
    bool learning = true;
    std::cout

  • @Il_bislungo
    @Il_bislungo 7 місяців тому +1

    I might be a little bit late, but here it is my code:
    int main()
    {

    std::string song = "Heart-Shaped Box";
    int year = 1993;
    std::string album = "In Utero";
    double duration = 4.43;
    std::cout

    • @Arador1112
      @Arador1112 7 місяців тому

      how are you doing now

    • @Il_bislungo
      @Il_bislungo 7 місяців тому +1

      @@Arador1112 Great thanks for asking

  • @djolemole
    @djolemole 5 місяців тому +1

    int x = 50;
    double y = 67.598;
    char grade = 'F';
    std::string name = "Djole mole"

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

    C++ is just an extension of C which supports object oriented programming.

  • @fusion172
    @fusion172 Рік тому

    why this videos are unlisted?

  • @RISHIR-ge3tc
    @RISHIR-ge3tc Рік тому +1

    #include
    using namespace std;
    int main() {
    int rollno = 21;
    double marks = 85 ;
    char grade = 'B';
    string name = "DUDE , ";

    cout

    • @zdofficial3740
      @zdofficial3740 8 місяців тому

      can you use boolean to create something like to tell u pass or not is true or false

  • @character640p
    @character640p 2 роки тому +1

    Bro you should live stream the old videos.

  • @sonic_force
    @sonic_force 11 місяців тому +3

    why no float?

    • @nastydre4433
      @nastydre4433 10 місяців тому +1

      Float and double are sorta similar but not at the same time I’m pretty sure you know that he probably didn’t want to confuse people me personally I always use double but I guess I get your point he should have at least brought it up.

    • @AvanPrismz2000
      @AvanPrismz2000 6 місяців тому

      @@nastydre4433
      yes, and he explain so clearly. that's why I understand everything that he teaches!

  • @BaraBarabere.
    @BaraBarabere. Рік тому +1

    What about float?

  • @hunted_games
    @hunted_games 9 місяців тому

    if a double contains the decimal, that what is a float used for?

    • @JayeshKukreti
      @JayeshKukreti 8 місяців тому

      Float x = 3.34;
      But double contains more digits after decimal
      double y = 3.343442244;
      That's it

  • @Kirankumar-od8eu
    @Kirankumar-od8eu 2 роки тому

    bro, pls cover media queries and grid in CSS, if possible, also cover scss , ty

  • @juliantomesheski5364
    @juliantomesheski5364 5 місяців тому +3

    // just me practicing mb lol ;)
    #include
    int main() {
    // interger:
    int FavNumber = 48;
    // double:
    double gasPrices = 108726.22;
    return 0;
    }

    • @hamsammich5553
      @hamsammich5553 3 місяці тому

      Those gas prices are the most accurate thing ive ever seen

  • @woi2864
    @woi2864 Рік тому

    Int x;
    x = 10;
    Std::cout

  • @arooba6132
    @arooba6132 2 місяці тому

    you can use "using namespace std ; " after "include" instead of using "std::" in every line

  • @MartinsAfoafo-xy5bh
    @MartinsAfoafo-xy5bh 6 місяців тому

    int goal = 9;
    double length = 6.2;
    char grade= 'F';
    bool blue = False;
    string greeting = "Hey Bro how are you doing?"

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

    howdy partner, quick idea can you do make another channel to teach UI/UX design? either you can do it or a friend that you know is able to do it in the same style as you can, "Bro Design" is untapped potential imo

  • @lazbeetle
    @lazbeetle Рік тому

    #include
    int main() {
    // Integer
    int length = 600;
    int breadth=1200;
    // Double
    double screen_size = 19.5;
    double data_pack = 2.5;
    //Single characters
    char usb_type = 'C';
    char level = 'A';
    // Boolean
    bool ssd = false;
    bool hdd = true;
    //String
    std::string OS = "Linux";
    std::string DE = "XFCE";
    return 0;
    }

  • @topg2592
    @topg2592 5 місяців тому +1

    Integer = assignments due , Double = pressure , Character = gender on id card , Boolean = subscribed/notsubscribed , Bool subscribed = true;

  • @nbdcmod
    @nbdcmod Рік тому

    #include
    using namespace std;
    int main()
    {
    int Tuoi = 14;
    double chim = 10;
    bool conzin = true;
    string ngoaihinh = "sieu dep trai 123";
    cout

  • @ammarMohamed-l4l
    @ammarMohamed-l4l 11 місяців тому

    int x=3;
    double c=5.6;
    bool t=true;
    char letter="a";
    string sentence="hello world";

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

    idk if u read comments but
    Do you know all of these programming languages

  • @vedsur8610
    @vedsur8610 Рік тому

    Assignment:
    #include
    int main()
    {
    //Integer
    int secretNumber = 4;
    //Double
    double pi = 3.141591653589;
    //Characters
    char secretLetter = 'A';
    //Boolean
    bool secretAnswerToEverything = false;
    //String
    std::string me = "loser";
    return 0;
    }

  • @woi2864
    @woi2864 Рік тому

    #include
    int main()
    {
    //integer
    int x = 6;
    int Z = 9;
    int difference = Z - x;
    std::cout

  • @shricharanramesh7149
    @shricharanramesh7149 6 місяців тому

    This is a random comment;
    Hi Bro;

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

    std::string // int a = 0 // double b = 0.00 // bool Yes = true // char A = 'A'
    String is a special case

  • @antarticant
    @antarticant 7 місяців тому

    #include
    int main() {
    int age = 10;
    std::cout

  • @Farenstrike
    @Farenstrike 6 місяців тому

    int x=15;
    char blood="A";
    bool hungry=true;
    std::string food="Domino's is like dreamy rn";
    double rating=1.4;

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

    Dart and flutter course please muehehehe

  • @gorg212
    @gorg212 Рік тому

    what if we just do this
    std::cout

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

    my #inlcude have error, saying please update your include path.

  • @gusgus1330
    @gusgus1330 11 місяців тому

    // integer (whole number) variables (a variable is a container that refers to some value)
    int health = 100;
    int numLives = 5;
    int points = 10000;

    std::cout

  • @Yousif_Maksabo
    @Yousif_Maksabo 6 місяців тому

    int studentNumber = 4;
    double length = 165.5;
    bool male = true;
    char class = "C"
    std::string school = "Mar Afram"

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

    I love u

  • @TobaAkande
    @TobaAkande Рік тому

    int favoriteNumber = 17;
    double pi = 3.14;
    char letter = C;
    bool athlete = true;
    std::string intro = "Hello World";

  • @Techbyzaan
    @Techbyzaan 11 місяців тому

    What is return 0 means…….. can you please explain

    • @Fa-Editz-b7l
      @Fa-Editz-b7l 6 місяців тому

      It means return to first line

    • @Fa-Editz-b7l
      @Fa-Editz-b7l 6 місяців тому

      It means return to first line

    • @Fa-Editz-b7l
      @Fa-Editz-b7l 6 місяців тому

      It means return to first line

    • @Fa-Editz-b7l
      @Fa-Editz-b7l 6 місяців тому

      It means return to first line

  • @theguyjawn
    @theguyjawn Рік тому

    #include
    int main(){
    int age = 14;
    double gpa = 2.6;
    char grade = 'A';
    bool cool = true;
    std::string name = "John";
    std::cout

  • @nguyenminhquang7052
    @nguyenminhquang7052 20 днів тому

    int age = 20;
    double gpa = 3.85;
    char grade = 'A';
    bool student = true;
    std::string address = "Rose Avenue";

  • @dtlproduction9474
    @dtlproduction9474 8 місяців тому

    int apartmentNumber = 696;
    double percentage = 89.9;
    char row = 'B';
    boolean isGraduated = true;
    string brand = "Tesla";

  • @affanhossainrakib
    @affanhossainrakib Рік тому

    Comment for the algorithm.

  • @PeytonRagle
    @PeytonRagle Рік тому +1

    Ok
    std::string food = “cheese”;
    bool dead = true;
    char life = “X”;
    int pizzas = “99”;
    double Pi = 3.14;
    //STOP CHANGING PIE

  • @organicapple
    @organicapple 16 днів тому

    int legos = 6; double pi = 3.14; char addition = '+'; bool expired = false; std::string console = "PS5";

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

    whatever anything before or after

  • @MuhammadMalik-xu2yj
    @MuhammadMalik-xu2yj 11 місяців тому

    Can anyone please help me all my codes show exited with code=1

  • @nofall4263
    @nofall4263 Рік тому

    //assignment
    int weight = 85;
    double height = 1.85;
    char degreeType = 'F';
    std::string weightType = "kilograms";
    std::string heightType = "meters";
    bool commentPostedOnYt = true;
    std::cout

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

    int age = 18
    double experience = 0.001
    char H = 'i' ;
    boolean bored = false ;
    std:: string name = "Abdullah" ;

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

    int number = "43"
    double money = "3.2"
    char favNum = "A"
    boolean tacoTuesday = "True"
    std::string Doing = "I am doing good."

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

    int x = 19;
    double temprature =92.5;
    char intial = 'J';
    bool hot = true;
    std::string name = "Jaden";
    std::cout

  • @the-eye_4474
    @the-eye_4474 5 місяців тому

    he has been talking about himself aboutt all exsamples then when i saw the adresss bar i know what i have to do

  • @JayChit
    @JayChit 9 місяців тому

    Int Birthday = 22
    Double Weight = 122.7
    char age = 7
    bool = true
    std::string dog = "Shizu"

  • @Kirankumar-od8eu
    @Kirankumar-od8eu 2 роки тому

    wating for react tuts

  • @EdwardAcosta-s2d
    @EdwardAcosta-s2d 3 місяці тому

    int age = 22;
    char grade = 'A';
    bool iType= true;
    double money =22.19;
    std::cout

  • @PCgamers69420
    @PCgamers69420 3 місяці тому

    int passcode = 1234;
    double gradePrecent = 98.52;
    char Y/N = 'Y'
    bool alive = true;
    std::string country = "USA";

  • @ILMC-AP
    @ILMC-AP 3 місяці тому

    bool gay = false;
    string x = "I am a Hetero!";

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

    just lol

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

    .

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

    Good job bro, JESUS IS COMING BACK SOON; PREPARE

  • @reddot7693
    @reddot7693 2 роки тому +1

    DONT HYPE HIM UP CUZ HE'A DIE HAVE YO WHOLE BLOCK CRY HIS BALLOONS IN THE SKY , NOW THE OPPS REALLY MAD SO I TELL'EM COME TRY BUT I SLIDE FIRST ALL THEY HEAR IS FAH FAH FAH DATS DA NICKELL

  • @mrbenmonkeyman
    @mrbenmonkeyman 8 місяців тому

    #include
    int main(){
    int time = 12;
    std::string helloWorld = "Hello World!";
    bool available = false;
    double price = 12.77;
    std::cout

  • @vibes_H12
    @vibes_H12 8 місяців тому

    #include
    int main(){
    //whole number
    int x = 5;
    int y = 6;
    int sum = x + y;
    int year = 2024;
    //disamls folat in pyton
    double day = 7.5;
    // can only hold one charcter
    char wall = 'J';
    char initial = 'Y';
    //boolean(true or flase)
    bool student = true;
    bool forsale = false;
    //string can store as many charcters as you want
    std::string name = "jonthon";
    std::string greating = "whast good";
    //the prints
    std::cout

  • @Dr.Logistik
    @Dr.Logistik 2 роки тому

    #include
    int main() {
    //Integers
    int age = 32;
    int year = 2022;
    int days = 7.5; //will be truncated to 7
    std::cout

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

    thanks master!

  • @pogrzebanybunkier378
    @pogrzebanybunkier378 6 місяців тому

    what about float?

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

    whatever anything before or after

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

    whatever anything before or after