Added: 3 years ago
From: antiRTFM
Views: 17,787
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (42)

Sign In or Sign Up now to post a comment!
  • You are my Hero

  • |instructions|

    1 - turn your volume all the way up at 1:20

    2 - pain.

  • How come you can't just define health and strength whenever you make them in the private part of the class?

  • I'm getting a no default constructor exists for class

  • can u put a constructor in private?

  • i maybe just want to use the easy way but why not just use some global variables like you declare it above of your main function so that you can call that variable whenever you want without doing a lot of stuffs to store your variable and also you can assigned value to it?? any difference??

  • it seems like there are a whole new set of rules when using constructors , almost like you are going one level deeper into programming. that was made quite aparent in your video :D

  • Hi, Just need one clarification, correct me if i'm wrong. Why can't we assisgn member variables a value in methods i.e the functions within class

  • Hi, Just need one clarification, correct me if i'm wrong. Why can't we assisgn member variables a value in methods i.e the functions within class

  • lol i just found out if u put in cout << "\a";

    it would make a beeping noise

  • @kincaid4212 yeah, that's an alert. they built that into c++. different letters do different things.

  • Even with your "imperfect english" your tutorial is nothing less than GOLD.

  • now i know how to run default method

  • lol the last video ended in a cliffhanger I was like "omg how do I do this!!??!"

  • Hahah yeah me 2 ! :D

  • Thanks, great way to understand constructors..

  • your my hero :-D

  • Same.

    I thought they were sorta useless.

  • Thanks, classes finally make sense to me.

    I didn't know the constructor could take parameters.

  • Do you cover pointers in layer videos?

  • Thanks anitRTFM

    YOu rock!!!

  • Thanks, this is explained clearly

  • Ok thanks, I'll post it in the forums. :)

  • I get this error "left operand must be l-value" even though I have used the initializer to assign a integer to them. What have I done wrong?

    And great tutorials by the way. They have helped me alot! :)

  • see my channel FAQ #3 and #2

  • Comment removed

  • Comment removed

  • Legend :D

    NOW i know the secret mwuahah

  • but how come the constructor in your case knows strength when it was declared privately BELOW the constructor. i thought functions/classes always flowed linearly

  • i think i mentioned in one of the videos that in class declarations the order doest matter as long as its inside of the brackets

  • Which tutorial should i got to see arrays.

  • have a look on our forums where we have a detailed index of all the videos

  • what about destructors?

  • i guess ill talk about it one day

  • can we use the initialize for the simple attributes and just leave the complex things for the {brackets} ?

  • if we watch all your videos, will we learn how to do a coll little console game?????

  • antiRFTM thanks for the great "spoonfeed" video tutorials :)) I have seen some other video tutorials about classes and one thing that i could not understand was constructors. And now thanks to you i know what constructors are.

  • Thanks for the classes I would like to suggest making these codes available in some web site or some thing to help students

    cus catching up with the video is kinda confusing

  • You are my HERO!!!Keep those videos coming in...

  • Hi antiRTFM, the fact is that not all good programmers can be a good teacher, and that only a few bright programmers can be one. You are the one. Your style of teaching is very good and simple and makes the learner to easily catch the idea.Keep it up!!!

  • @bluzane

    i am sorry but u are incorrect. He is not of the the birghtest programmer. Not even close. He is no where near the programmers of IBM/Windows/big companies. HOWEVER, even the brightest, infact MOST of the brightest, can't teach shit. They are so bright and smart they confuse everyone. If this dude was one of the "brighter ones" he'd spout so much more advanced stuff at a rate that only the elite could comprehend.

  • @N0wShutUp Whatever one is teaching, can't be harder to understand for the learners whoever is teaching, it's still the same thing. Ofcourse a noob wouldn't understand advanced stuff if a pro is teaching. But a noob wouldn't understand advanced stuff whoever is teaching. So that's what I call a bad arguement. :)

  • Before I watched this video I knew there was something fishy about the start function!!

  • what do you mean "start function"? the constructor function?

  • no I mean before we used the constructor, we had a void function called start() and then in the start function we initialized the member variables, but every time we made an object we had to call the start function but I just felt it is not the real McCoy thing.

    did you get what I mean?

  • oh i see :)

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