C++ Tutorial - 2 - The Basic Syntax and Functions

Sdílet
Vložit
  • čas přidán 31. 07. 2008
  • Source Code: github.com/thenewboston-devel...
    Core Deployment Guide (AWS): docs.google.com/document/d/16...

Komentáře • 429

  • @LoggyWD
    @LoggyWD Před rokem +2

    14 years later this is still the best video tutorial

  • @meteorVibe
    @meteorVibe Před 12 lety +2

    I can't say enough how great your tutorials are. I take online courses and your videos are a perfect supplement to the books and online instructions.

  • @jmatts54
    @jmatts54 Před 11 lety +3

    I have been going to lessons after school and I learnt the basics in 5 days! My friend,who didn't understand it, asked me to help him but even after I did he didn't seem to get it! So I went online and found this and showed it to him! In a matter of hours, he knew it better than me! So a real hats off! Great job!

  • @flwns_
    @flwns_ Před 13 lety +1

    You are the man, i love how explain every single thing you are doing and why it is there, it leaves me with a sense that i know everything i just did.
    you rock

  • @merkstatus
    @merkstatus Před 15 lety

    Best tutorials for C++ on CZcams. Most other tutorials don't explain, they just tell you vaguely what to type.

  • @waldtbc
    @waldtbc Před 13 lety

    I like the fact your explaining the "just have to have it." or "if your curious." I like to understand everything my code is doing and not just taking it on faith. thanks again. :)

  • @kekambas79
    @kekambas79 Před 15 lety +2

    In my opinion, Bucky's tutorials rock! I'm writing things down as he goes along. Its helpful for me. Thanks B!

  • @Gahet
    @Gahet Před 14 lety

    Nice work man, your clear, you define your terms and you keep it simple for us ig'nant folks out there trying to get our foot in the C++ door. Keep the tuts coming!

  • @EddieKMusic
    @EddieKMusic Před 12 lety +1

    It's so fun to watch those simple C++ tutorials :D
    Now I'm reading about class inheritance :D

  • @linkinl1
    @linkinl1 Před 13 lety +7

    you can also do
    cout

  • @TheKeyToMusicOfficial
    @TheKeyToMusicOfficial Před 5 lety +1

    bucky, youve been the man since the start

  • @horseporkpig
    @horseporkpig Před 15 lety

    This is great. ive always learned better when having someone teach me and since all those books and online webpages with text tutorials are so boring, i couldnt help but search on youtube. and lo and behold i would find an AMAZING instructor!

  • @blair2798
    @blair2798 Před 2 lety +1

    Out of the park!! Great interview.

  • @IlkestonDriveways
    @IlkestonDriveways Před 13 lety

    You are a legend, I am learning so fast through your videos! Thanks boston!

  • @thenewboston
    @thenewboston  Před 16 lety +1

    Yea thats a pretty good book to read but I think that overall, the best book for just starting c++ is called "C++ primer plus fifth ed." this will begin with the very basic, you should check it out!

  • @yesyes9782
    @yesyes9782 Před 3 lety

    Explained the syntax well thank you.

  • @onlyliveones87
    @onlyliveones87 Před 11 lety

    you explain pretty good and easy way....
    keep up with your work

  • @saviourarsenal
    @saviourarsenal Před 15 lety

    thanks for your tutorial
    i used to program in basic till highschool
    then lost the touch in medical school
    your tutorial is great
    thanks again :)

  • @csmpeoil
    @csmpeoil Před 13 lety

    best tutorial for beginners I've seen yet. thanks bucky.

  • @xBl00dBrothersX
    @xBl00dBrothersX Před 13 lety

    that was very smooth and easy to follow

  • @captainclayman
    @captainclayman Před 14 lety

    dude your tutorials are freaking awesome.
    great explanations.
    i like how you don't say a bunch of useless fancy shit that nobody needs to hear!

  • @ithakra
    @ithakra Před 14 lety

    I just subscribed. Your a good teacher, keep em coming!

  • @SOPM2007
    @SOPM2007 Před 15 lety +1

    Very good tutorial man! Hopefully one day I'll be able to really understand C++ and its mysteries. In those days I started off with the Borland C++ Builder in the hope to learn this powerful programming language but I couldn't go far :-/

  • @smartguycoder3106
    @smartguycoder3106 Před 9 lety +17

    cout

  • @MadMustang129
    @MadMustang129 Před 15 lety

    dude you are the man! I LOVE all your tutorials thank you so much!

  • @jocsanmenjivar7068
    @jocsanmenjivar7068 Před 3 lety

    Damn, 2020 and the video still useful for newbies

  • @mungbawi3257
    @mungbawi3257 Před 4 lety

    thanks for the lessons I'ma waiting for next lessons

  • @Liam-10
    @Liam-10 Před rokem +1

    Thank you so much the new boston ❤️❤️😀

  • @TheBeresford7
    @TheBeresford7 Před 12 lety

    Thanks so much mate my names kane im 16 living in australia every other tutorial i watched and i did wat they taught me the compilers would give me runtime errors uve actually helped me uve got good teaching skills u dont go fast which is good it gets the lesson across heaps better 100 thousand points to you

  • @maziarghorbani
    @maziarghorbani Před 11 lety

    Great teaching. keep up the great work. thanks

  • @ej0080
    @ej0080 Před 15 lety

    this guy rox
    explains EVERYTHING that is typed.
    keep it up!!!

  • @billbass8194
    @billbass8194 Před 10 lety

    Thanks for helping me download a compiler.
    I couldn't download a compiler on my computer.
    but this one works.

  • @iZenic
    @iZenic Před 14 lety

    thx bucky!! this is an awesome tut. the only video that only makes sense! others dont explain, and their boring.... i subcribed ;)

  • @roigamesexe207
    @roigamesexe207 Před 2 lety

    This video is 13years ago but still a life saver😅

  • @Friedtunafish77
    @Friedtunafish77 Před 15 lety

    Awesome tutorial, I subscribed :) Keep the excellent work up!!

  • @eepien
    @eepien Před 10 lety

    I just figured it out. If you have a problem with system("pause"); command, just add #include on the preamble and everything works fine.
    Thanks. Great job.

  • @jugglier55
    @jugglier55 Před 14 lety

    you should consider teaching as a future job. You're an excellent teacher. Great job.

  • @97epicman
    @97epicman Před 12 lety +2

    "Hey now brown cow."
    My thoughts: GENIUS!

  • @HealyHQ
    @HealyHQ Před 14 lety +1

    Actually, it is completely dependent on the usage of the symbol. It goes by many names, according to how it is being used. For example, on the phone, it is called "pound." In music, it is called "sharp." It can also be used in place of the word "number" (AKA the "number sign"). In programming or web development, it is known as a "hash." For example, on Twitter, you would use #tag to denounce tags for your messages. This is called a "hashtag." In programming you use them to refer to "hashtables."

  • @ai-man212
    @ai-man212 Před 12 lety

    Nice teaching style.

  • @yeoj35368
    @yeoj35368 Před 15 lety

    nice tutorial bro.... thnx for dat, awesome teachings

  • @TheTeladras
    @TheTeladras Před 11 lety

    Grate Joob Mate Hope the next Tutor's are This Well too!
    RESPECT!

  • @SuikodenGR
    @SuikodenGR Před 6 lety

    Student - CTU Online - Cyber Security - Hello :-) Learning how C+= Works.
    Definitely looking forward how to understand C++ :-3

  • @Flowlance
    @Flowlance Před 14 lety

    Hey, the using namespace std; line. I assume it doesn't matter if you put it under the iostream line, or inside the main brackets?
    Awesome tutorials btw. Nice and calming voice.

  • @rock00dom
    @rock00dom Před 14 lety

    "So now we have a useful function right here..." hahahaha, nice one :)

  • @evolutionofremix
    @evolutionofremix Před 13 lety

    YOU ARE AWESOME!!!!!!!!! i'm freshman in high school, going in the robotics club, software division, gotta program our Autonomous Submarine with C++, thanks for the tutorial, gonna do the whole series. Also am trying to learn Objective-C. Mac users out there! You don't have to do the system("pause"); Mac users, use xcode: Application:Command Line Tool:C++ stdc++

  • @pyrosimple
    @pyrosimple Před 14 lety

    You're a great teacher!

  • @snakeiter9999
    @snakeiter9999 Před 12 lety +5

    In school I didn't understand it but here I can understand. Maybe I should stop going to school? XD

  • @killshotnub938
    @killshotnub938 Před 6 lety

    u did ur job. worthly for me

  • @pcjsa
    @pcjsa Před 13 lety

    That was great and easy to understand. You should teach.

  • @Rawjava
    @Rawjava Před 15 lety

    Yes, its pretty good. it really doesnt matter which compiler you have as long as its a good one.
    It also does java and C programming

  • @BLESSMAN11
    @BLESSMAN11 Před 14 lety

    @Nativeboy0 dude, i can't seem to find any good link on the book.
    anyway i'm wondering whether the book is better than Microsoft's free c++ beginner's edition. I've been using it and have found it quite useful

  • @ryuklover
    @ryuklover Před 15 lety

    I subbed your an amazing tutor thanks for all the help

  • @amerikantypo8775
    @amerikantypo8775 Před 3 lety

    I just have one question how come after the hey now brown cow statement you put the endl on a separate line but after the don't jump that fence part its put on the same line?

  • @chickhunbone
    @chickhunbone Před 11 lety

    great tutorial man! Hopefully I'll be a good programmer one day..

  • @dandanbulontate9423
    @dandanbulontate9423 Před 4 lety

    Thanks for knowledge

  • @MrCavalleri
    @MrCavalleri Před 14 lety

    Amazing tutorial! I like it so much!

  • @Generatality
    @Generatality Před 13 lety +1

    I LOVE YOUUUUU. I'm gonna be a professional C++ coder now.

  • @Snipaaz
    @Snipaaz Před 15 lety +1

    Instead of system("pause"),
    you can also use getchar() it does the same job ^^
    nice tutorial

  • @seanhallstrom9855
    @seanhallstrom9855 Před 12 lety

    I'd like to thank you for making these videos first of all, they are really helpful. I'm having a problem where every time I try to compile this program it keeps telling me that "cout is an undeclared identifier" and it won't compile. It also says the same things for "system" and "endl". I'm not sure what to do, any advice?

  • @kuwupu
    @kuwupu Před 13 lety

    soo much CLEAR!! subscribeddddddddd thank you!

  • @KeyAttendant
    @KeyAttendant Před 14 lety

    Depends on what you need to do. The safest way is to make calls to the OS, but that makes your program OS-dependent. In which case, all you gotta' do is make some pre-processor directives to use different codes (best to put it in a function) based on the OS. Then just re-compile on a different OS and you should be fine.

  • @SlipAllCityToy
    @SlipAllCityToy Před 12 lety

    Also, you don't need to type in "cout

  • @gymcrazy143
    @gymcrazy143 Před 12 lety

    thanks soo much this was really helpful

  • @OPSxSoldierzZ
    @OPSxSoldierzZ Před 12 lety

    I am normally a BASIC programmer and moving from BASIC to C++ is easy when your saying how to

  • @TheQuinnB
    @TheQuinnB Před 12 lety

    What compiler are you using I'm using Microsoft visuals and it looks different

  • @TheHappyWhaleshark
    @TheHappyWhaleshark Před 13 lety

    @Vortigon When would we ever program for anything other than windows?

  • @ajleonor826
    @ajleonor826 Před 10 lety

    Great stuff!

  • @Roundfull
    @Roundfull Před 13 lety

    @DeathKnightGames I'm as old as you and just by watching this videos i learned A LOT you should start here

  • @zhir96
    @zhir96 Před 13 lety

    thanks man this is masterful!

  • @NFSprostreet98
    @NFSprostreet98 Před 15 lety

    awesome man awesome tutorial hope i become a programmer soon :P

  • @swifteagleworks
    @swifteagleworks Před 15 lety

    I downloaded microsoft visual c++ 2008. I was trying to do this lesson there, but at the end I did not know how to exectute. I love the way you teach. I was wondering if I can take your tutorials with that program?

  • @nishidn
    @nishidn Před 15 lety

    it worked now..thank you..

  • @twobarells
    @twobarells Před 12 lety

    @ThatCoolGuy220 Oh, glad to be of assistance :D

  • @marvelmania1116
    @marvelmania1116 Před 4 lety

    Dude you're so great.

  • @souljarohill8795
    @souljarohill8795 Před 2 lety

    the only thing that confuses me is the semicolons and where to put them exactly and whenever we use the cout command we dont close the brackets when making a statement like you did. I started off with html and im used to closing my brackets when im displaying something on the screen.

  • @fireman2555
    @fireman2555 Před 13 lety

    i'd like to elaborate on a couple things that will help people. the #include is a command to go out and put that file into your code, in iostream it tells them to put in all of the input/output commands.
    also as a matter of style i just throw "using namespace std;" as a preprocessor directive, it cleans it up a bit. also the first 2 couts is the same as the 3rd (minus the output)
    as a new programmer i've never heard of system pause... that's cool, thanks for the informitive video.

  • @brainlicker1
    @brainlicker1 Před 14 lety

    have to admit this is highly entertaining =)

  • @herby490
    @herby490 Před 15 lety +1

    Yes Dev C++ is for vista but I would recommend using Code::Blocks as your IDE instead of Dev C++ but they both use the same Mingw compiler so I guess it doesn't matter too much.

  • @DEATHRACERCHEVY
    @DEATHRACERCHEVY Před 13 lety

    You are amazing. Period.

  • @oldtimegamelover
    @oldtimegamelover Před 13 lety

    Dude I was stuck on everything till you :)

  • @asfadasfa1234
    @asfadasfa1234 Před 12 lety

    @Xoneize it has to be main. as far as i know this is because it is a predefined function needed for the program to run that is "built in" to C++ as well as basic C i believe.

  • @yamahaespen
    @yamahaespen Před 13 lety

    i'm learning programming for windows on my mac now ^^ paralells, best of both worlds..

  • @kurdistan1989
    @kurdistan1989 Před 15 lety

    thanks alot for the explenation i am really seeking for tutorials indicating syntax , their operation with an example and yours is some sort of that ,. well whenever i started learning c++ i get stuck at (#) sign and preprocessor directives i don't know what do they stand for , and you sed every time you write a program you put that iostream directive ,, you mean whatever the program is you put that directive every time in c++?? is that you meant ,,,, and again thank you.

  • @abdulz1
    @abdulz1 Před 15 lety

    thenewboston is GOD OF CODES

  • @RebelPwnage
    @RebelPwnage Před 12 lety

    @lol12313212 how does the compiler know what cout is? You need to tell it you're going to use that 'command' by using #include -iostream- It also looks like you may have misspelled include.

  • @d0002179262
    @d0002179262 Před 11 lety

    What version of the C++ did u use in this video?

  • @TechPriest88
    @TechPriest88 Před 15 lety

    Hey i am currently using borland turbo c++ 4.5 and was wondering why "using namespace std; " doesnt appear in bold text when i type it, i have followed everything to the letter with this brilliant tutorial and was wondering if you could tell me why this is happening
    cheers.

  • @ToasterWithWings
    @ToasterWithWings Před 13 lety

    Just to point something out to my fellow C++ newbies =P
    You can also use
    to input a newline, it works inside the quotation marks, so that something like, say:
    cout

  • @shoemakerleve9
    @shoemakerleve9 Před 13 lety

    Wow, like this video! Thanks!

  • @unobiunobi
    @unobiunobi Před 14 lety

    Hey I have a question-
    What's the use of the "

  • @biker11ful
    @biker11ful Před 12 lety

    GUYS i figured it out.. you need to put this ";system ("pause");". it works.

  • @imralav
    @imralav Před 13 lety

    @AngishKhan Of course it will. The UI will just be different and from what I know the debugger in visual c++ is better. My personal suggestion is Code::Blocks, it's nice, easy to use.

  • @EsteBandido_YT
    @EsteBandido_YT Před 8 lety

    When I try to compile, windows displays me a warning message about
    G++. exe has stopped responding.
    Is it windows 10's fault?

  • @numbahwhun
    @numbahwhun Před 15 lety

    thank you so much this is a real service

  • @SolidSerpent
    @SolidSerpent Před 15 lety

    I've got a problem with the compiler programme that i have it's a Microsoft C++ vision express(it was free), and i'm putting in code but when i click debug and run, it says there are build errors, theres red code in the titles, like the words "Hello World" are in red and i think this is why it's not running, HELP, would be appreciated as i'm only starting to programme and have only started learning C++

  • @Gordoux
    @Gordoux Před 15 lety

    Great, thank you.

  • @raidlootgaming8341
    @raidlootgaming8341 Před 9 lety +6

    #include
    using namespace std;
    int main()
    {
    cout

  • @Pyrexia20
    @Pyrexia20 Před 10 lety

    you could use #include (lessthan )conio.h (greater than) and in the body use getch();

  • @chalklet33
    @chalklet33 Před 13 lety

    u r awesome! thank u for ur effort!!