Added: 11 months ago
From: thenewboston
Views: 31,355
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (167)

Sign In or Sign Up now to post a comment!
  • "You're never gonna get a job as computer engineer if you make your variables public"

    Well that's just rude

  • William Wallace was a Scottish rebel and was featured in Brave Heart! 

  • BRAVEHEART LADDIES!

  • 'This is probably the easiest thing you will ever do'

    Do I hear this every tutorial? :D

  • Doesn't william wallace come from braveheart(the movie)?

  • I really do not understand why I have to create a private with a lot of functions that is actually a public when i can just create a public

  • This was perhaps the most difficult tutorials I have seen, took me forever to get, but when I was dedicated, I was able to comprehend it.

  • @thatonesmellyasian Good for you man, you know you should've started with some c tutorials first and maybe some easier OOL languages like javascript, and then come to C++, but it's your choice, hope the best for you and see you at the last tutorial :)

  • @Kapetozzo actually, a lot of people have been telling me to do that, but I really like C++, and I am enjoying it quite a bit, if it does get to mind-bending though, I'll probably head over to C, I don't want to go over to java though, I've heard too many bad things about java. I am wondering how one would go about creating a GUI in C++ though. Does Bucky cover that later?

  • @thatonesmellyasian I don't think he does, if you want to work with gui i recommend win32 tutorials it's quite difficult at first but it's well documented by msdn. Also one thing that will probably confuse you is pointers, don't get frustrated if you don't understand at first, i took weeks to learn how to use them properly. And about java, the problem i find is that it's too high level, it requires low thinking to build programs and make you lazy, that's the problem :)

  • Think of locking the private string in a safe, but having the keys in the public functions to access it

  • William Wallace: "Every man dies, not every man truely lives"

    "Aye fight and you may die run and youll live, at least awile, and dieing in your beds many years from now, would you give all the days from this day till then, for one chance, JUST ONE CHANCE, to meet back on this battlefeild so you can tell your enimys that YOU MAY TAKE OUR LIVES BUT YOULL NEVER TAKE OUR FREEDOM!!

    Good turorials Buckey! Pretty sure your like one of my heros!

  • Hey I Highly recommend to make ALL of the Tutorial Practices, I did that , each console application With this Name, Tutorial1, Tutorial2 etc etc etc

    Ohh and in the code ADD NOTES!

    after your write something important or something that you might forget add "//" Double Slash and everything that you write from there will turn Gray and Will not affect your code in Any Way :)

    Example; #include <iostream< //this is an object-oriented library... etc etc ect

  • @MNiTwInInG I completely agree. I usually do it.

  • 3:33 <-- free replay button

  • Hey, i've got a question. Couldn't have he just used return name in the setName function and then later either gave the return value to a new variable inside main or just used the function inside cout? This kind of looks like a lot of code for something so simple. I understand this is just an example but i was just wondering

  • @Matija442 with the function setName, you must pass a string variable, and if you have return in there, it would return the variable you've just passed. with two separate functions, you can call one to change the variables name, and the one to get back the variables name. So in short: no, you cant have return type in setter function.

  • What IDE do you use?

  • I get it but it seems like way too much work for 1 variable..

  • This is honestly not as confusing at all if you know other programming languages, it is probably a good idea to learn java first because learning C++ seems super easy after learning java.

  • @ALLtheNAMESare7AKEN Well, I learned C++ first and I have to say that also works vice versa.

  • So , it's better to use as much private variables as i can

    so the user can't mess with the program ?

    please answer :)

  • @Justice142ify Wrong,private is so you can only use it for one page and not another page, at least i think.

  • Man, this is confusing! :S

  • Braveheart

  • @derivativesarecool you are correct, but im actually related to the real William Wallace

  • @SOGGPurple haha I'm a beginner. Just a high schooler trying to support his robotics team.

  • @SOGGPurple It's always good to have an early start. That way, when your friends decide to start learning C++ you can teach them :)

  • I've found these by accident and decided to watch, thinking the whole series would be pretty amateur and not including much about proper practice, but the getters and setters and encapsulation idea took me by surprise, and my view on the series to a whole new level. You do know what you're on about Bucky!

  • bo bo bo bo bo bo

  • I suggest making notes when watching the tutorial to go back to after listening.

  • lol "hey now brown cow" = hey nwornown dow to bucky xD

  • william wallace is a scottish hero right?

  • so basically a "string" is like "int" but for words and not numbers?

  • @BarrieIsEpic Yes. C++ is a strongly typed language, meaning you need to define what kind of value will be held in each variable. It could be a bullion, word or number, but each one requires a different variable. Many newer languages, are weakly typed, which means that any value can be entered into a variable. Although it appears more difficult to name the type of every variable, it gives the programmer more control over the program and garentees every variable will serve what it is meant to do

  • for people who cant really understand this, go back study variables and function again The next time you see this video its so fucking easy.

    btw Thanks for the tutorial bucky.

  • probably spent the most time on a bucky video..trying to understand it lol..got there in the end tho..so s'all good.

  • MAN YOUR LOSING ME!!!! i cant think with all the knowledge your bring to my head..... i think i should give up on my dream!!!!

  • you are confusing me..... i dont have clue why ytou need math to do programing your not telling us what this means...... take a time and sya you need this math because of BLAH BLAH BLAH im only 12 and i know better to do that..... my grandma says that if i want to be a game designer i better start now but you are going to fast and i dong know what you are talking about.... COMMENT BACK AND SYA why YOU ARE NOT TELLING US WHAT ALL THIS MEANS

  • @M3GAFAST Go back to the first video. Watch it. OVER AND OVER AND OVER until you understand it perfectly, then go to the next one. It helps :D

  • @M3GAFAST Most people don't start programming until they are in College... Secondly, this is one of the tougher beginner lessons. You definitely need strong Algebra skills and "Thinking outside the box" math skills. At the end of the day you are going to have to come up with Algorithms, that solve problems. These problems can only be solved doing math, and sometimes you have to get very creative. A beginner example, would be to make a program that accepts 5 numbers, and prints out the highest #.

  • It's something like putting spies in the class that have access to the private variable so they can give you information about it. :)

  • Is a single variable really worth going through all this trouble for??

  • um, ok , i would like to take a moment to say you have great videos , yet and still i have one dumb question, why do we add the string include directive,in the beginning when i believe in the past tutorials we used "cout" without having included the string directive? or am i mistaken?

  • @madoubled cout was just to display text on the screen...the string bit at the top allows you to set the variable as a string...so i think

  • Comment removed

  • Great tutorials Bucky!! One thing though, I think you should have shown this class stuff in later tutorials because suddenly they get quite advanced (well compared to complete beginner stuff) and after 14 it just goes back to more basic stuff.

  • You lost me, until half way through the video. Then I was like, "Oooh! I get it!". Nice tutorials man. You're awesome.

  • cput << "hey nwornown dow"

    xD

  • Good advice, we will be able to change our variables with public funcs :) and it won't mess it up :)

  • this is the "the only" tutorial i did not understand.

  • Comment removed

  • why using public vars is bad?

  • @saa442 Makes them easy to mess around with by hackers and such, that's the impression I got at least.

  • William Wallace was a Scotish rebal rebelling against the british royal family in the stuart era after his reblaion was crushed by the british army he was capturevand hung drwaarn and quarted in 1896

  • Comment removed

  • i ran the programm without using

    include string

    why do i need to use that if it works without?

  • Wooo Hooo, Code Blocks!

  • 80 diffrent languages????

    u roooock dude!!!!

  • again very good explaination sir. Thanks :)

  • Just to post a real comment not about Bucky's BO nice tutorials it feels good to finish watching one of your tutorials and REMEMBER EVERYTHING.

    All the knowledge makes me feel goooooooooooooooooood.

  • Freeeeeeeeeeddddooooooommmmmmm­mmm

  • i give up

    this is were you lost me, no C++ for me, thanks tho

  • @MrReload888 yeah, me too bro. this 13th tutorial is where i get desperate

  • @SirRediazVh first try to work with notepad... batch files... then this is a lot easier...

  • @MrReload888 need help?

  • @MrReload888 it's pretty logic to be honest but you just get too much info in a small amount of time. Watch the vid, type what he types and test it to make sure you did that correctly. Then take a 2 min break, watch the video again and take notes of what he says and try to understand it. Write it in your own words when you understand all the steps and then boom, you got it.

    It's really not that hard but the previous vids were just a lot less complex. Goodluck

  • @RSFireworm999 Good Advice

  • @MrReload888 Bad choice.

    it's not really hard to understand, just watch it over and over again until you understand.

    I paused my C++ learning many times and that caused me to forget a lot of stuff, I regretted that later cuz I wanted to learn it again.... so I had to start over..

    Don't do that :)

  • @iHateMyLifeGr What did he say?

  • @Lijrobert LMFAOO it was the top comment but mine took its place lol...

    it was long time ago, I forgot what he said, I guess you should go back through comments x)

  • @MrReload888 You don' have just motivation..

  • @MrReload888 it is pretty simple.. if you are still willing to give c++ a go, this is pretty much all you need to know for this video:

    Classes are a way to organize all your functions. Objects are there so they can address your classes. Easy.

  • body odour he he he XD

  • @charbeanmcbean haha

  • WIILLIAM WALLACE

  • yet again another great video man!! Thanks!

  • Sir William Wallace comes from the movie, Knights Tale with Heath Ledger when he was knighted by the King.

  • this thing is hard to understand, but this guy make this easier for me 

  • Sir William Wallace was a Scottish knight who defeated an English army and was 'Guardian of Scotland' and he was hanged for high treason.

  • Is there any Tutorials for INLINE FUNCTIONS ? Im so undone with that thing:( !!

  • Can somebody explain to me what a string is? I watched most of his java videos too and he didn't explain it there either and I've been lost about them since.

  • @MrSoddish A string is a line of text. So you have integers, double, float, characters(char) but you also have strings. In some compilers you need to include the string library at the top of your source code before you can use it else you'll run into some nasty errors. So you can use it like:

    string pieceoftext;

    pieceoftext = "jaadadaiodjaiodj'';

  • FFRREEEEEDDDDOOOOOOMMMM

  • Comment removed

  • is William wallace from Braveheart?

  • why cant you just use "char" as the text variable identifier?

  • bucky, they way u made the fuction print our the specific name "sir bucky wallace" was trough the parameters right??

  • Hello Bucky...I am new at this and have just been learning the language and have been this far, but I have a question about this whole thing and if you could message me that would be very helpful!!

  • Hey Now Brown Cow.

  • Comment removed

  • Comment removed

  • I knew william wallace... from Age of Empires II.

  • 2 people... well do i really need to say it.

  • William Wallace == Braveheart, I believe

  • William Wallace is a Scottish warrior who gave Scotland its freedom by defeating the English army after recruiting more people who wanted independence. They fought for there land which is still Scotland's today.

    William Wallace. Great warrior.

    

  • Wait...William Wallace wasn't a knight, was he? Why'd you say "Sir" William Wallace?

  • That explains everything:

    In C you just shoot yourself in the foot,

    but in C++ it takes more time and is harder to set it up and when you do get it, you end up blowing your whole leg off.

  • Olha, eu que não entendo inglês os vídeos estão salvando minha pele, muito bom, ou melhor, perfeitos! Não quer dar aula de POO aqui no Brasil não?

  • @Luna1191

    Pra eu que andei aprendendo a entender inglês falado, os vídeos tornam o aprendizado desse C++ extremamente claro/intuitivo. Esse cara é um monstro! Acho que vou tentar contactar ele pra ver se ele aceitaria colocar legendas em português caso eu traduzisse...

  • Braveheart

  • I don't understand the necessity of Object Oriented programming. If you have to make variables private and that necessitates doing all this extra work with public functions just to access private variables, doesn't this mean that Object Oriented programming is just way more difficult and tedious? Wouldn't a non Object Oriented language be better? It seems like it would be way faster to code.

  • @Immutable92 this is exactly why a powerful language like c++ is usually not the choice for small programs like this, instead the non oop part of c++ (c) is usually enough. But when it comes to building large things, the organization and efficiency of oop becomes much more apparent and useful. That is why c++ is the language of choice for large scale programming. But as said before it can be very clunky for small scale programs.

  • bo also stands for black ops :P.

  • You've never told why variables should be private...

  • @heydude8999 because you might have the same variables for different classes. The variables inside each class are usually only useful for the class itself to do something with it, so main doesnt need to know about it. Main just needs the functions from the class. If the variables were public, then if you used the same variable name somewhere else in the program there would be an error.

  • we just call him Willie

  • Comment removed

  • Process returned -1073741819 (0xC0000005) execution time : 4.904 s

    Press any key to continue.

    wtf?

  • @1deividas1 dont mind this its not a part of the program, its a piece of software that he has installed that tells him about the manner in which the program has ran, so he can see a difference which code is more efficient when he changes it. :)

  • BRAVEHEART

    

  • Maybe Wallace is the last name of the girl you met at the store, when you made the Objective-C or iPhone Development tutorials?

  • I'm from Scotland. I know where William Wallace comes from. I live in the town where he used to. :)

  • What if we have the user enter their name, how do you do that?

    And in the main why do we only call the set function and not the "get"?

    kind of confused

  • cput? LOL

  • @UncapableProductions you see just for saying that someone disliked the video D;

  • William Wallace? thats an eazy one! He is from Braveheart.

  • How come when you set a string it can be 3 words, and when I cout a simple string only the first word of the sentence will be the string

  • HURR DURR ima make my variables public!

  • I still dont really understand why I need to make it private? can someone explain why?

  • @mandmmiller bugs making it public can make lots of bugs

    not now but in the future when ur an expert c++ programmer ull understand it

  • @mandmmiller

    If you make variables public, you will give free access to all the variables in the class without having control over it. By making the variables private and use getter and setter functions, you will decide what variables are accessible.

  • Will calling get and set slower than accessing the variable in c++?? Javascript will, so i am thinking will c++ affect the performance?

  • I love how much this is like java, makes everything almost boringly easy rofl!

  • bo = Buckys Object.

  • it would bee nice if you would upload all these great tutorials on your website :) and remove the old ones / keep up the good work (from Sweden so excuse my English)

  • if your using more than one string would you have to make another function just to return it?

  • how can you use more than one variable? and different types?

  • Comment removed

  • Where does "Bucky Wallace" come from?

  • @winPGRM Sir william Wallace

  • @broadude Oh, then who's he?

  • @winPGRM He was a scottish knight who fought well and brave, and opposed all compromises made by his enemies(which later led to his death). He is a scottish hero and rolemodel ;)

  • @broadude Oh, that's so cool.

  • Why do we have to write (string x) and then type that x = name? I tried just writing (string name), but nothing came up(the program did run, but nothing was shown on screen), im just curious. - Broadude

  • Comment removed

  • @broadude Because you need a statement for the program to execute :) Your's was blank 'cus there was no statement

  • Comment removed

  • 0:30 hahaa you rock!!!

  • you explained it allot better then in your Java tutorials. Good job! I love them.

  • @SenneTeddy than*

  • @snati4 <-- Douche*

  • @NOVAphenom <-- who is this bitter bitch?

  • Maybe I'm just tired, but I am totally confused.

    Still love the Tutorials Bucky. Keep up the good work.

  • ah it was because I used do instead of bo. when i typed in do it was in blue and bo wasnt. is do meant to be another command or something?

  • @iYateszy Yeah, its for 'do while loops', he will probably explain loops later.

  • why did i get an error on line 19?

  • William Wallace, Scottish hero.

  • Correction, in C++ methods are NOT the same as functions:

    Functions are independent of classes(or types),

    Methods are functions that live inside classes(or types).

  • I love you man!!

  • Braveheart

  • Like this if you googled 'Sir william Wallace'

  • Only in Bucky's tutorials "hey nwornown dow" can mean hey now brown cow. You rock!

  • Bucky, these are great tutorials. Thank you VERY much!

  • Nice tutorials.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more