C++ switch tutorial (#7) 🔀

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

КОМЕНТАРІ • 19

  • @BroCodez
    @BroCodez  4 роки тому +9

    #include
    #include
    using namespace std;
    int main()
    {
    /*
    //--------------------- Example 1 ---------------------
    int month;
    cout > month;
    switch (month) {
    case 1:
    cout

  • @tomaszkarolak6179
    @tomaszkarolak6179 4 роки тому +6

    The best tutorials, I've ever seen on YT, thx bro!!!

  • @WushuAII
    @WushuAII 3 роки тому

    Really good work bro! I will recommend you to everyone! Bik love! wish you the best!

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

    It is always pizza month bro...
    I like the way you teach, keep up the good work!

  • @prumchhangsreng979
    @prumchhangsreng979 3 роки тому

    My C class is going to start next week monday, and here I am alr finish all ur C video, and wandering around in C++ lol.
    And my C++ class start in next 2month. i cant lol

  • @shahdx0x
    @shahdx0x 10 місяців тому

    You are a life saver bro.

  • @sihleebuthelezi9231
    @sihleebuthelezi9231 2 роки тому +3

    Bro switch statements don't seem to work for strings

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

    Can't you just use "return 0" instead of "break"? I tried and it worked just fine, can someone tell me if it messes up something else in the code?

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

    done

  • @tedchiu1433
    @tedchiu1433 3 роки тому

    Thank you Bro !!

  • @R-RBO_GWHG
    @R-RBO_GWHG 3 дні тому

    thx bro

  • @baovogia6782
    @baovogia6782 3 роки тому

    thanks alott Bro

  • @smallpcgaming7279
    @smallpcgaming7279 3 роки тому +2

    #include
    #include
    using namespace std;
    int main()
    {
    int (ram);
    cout > ram;
    switch (ram) {
    case 1:
    cout

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

      32 or bust!

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

      And when a person write, for example, 3, 5, 11, 15, switch case will be default: "u dumb?. I said between 1 and 32", but these numbers are in range 1-32.

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

    // Informs the country where a city is located using switch
    #include
    int main()
    {
    int city;
    while (city < 1 || city > 6)
    {
    // Prompt user for city
    std::cout city;
    // Return the city's country
    switch (city)
    {
    case 1:
    std::cout