If I use the same name for the variable in a constructor as the member variable in that class, will there be a problem? I have it like this, and is it okay?
antiRTFM - dude you fukin ROCK, bro! Great tutorials and I love how they're free. Knowledge should only cost your time and not your money. World needs more people like you, antiRTFM.
You're teaching me so much INSANE xD xD i'm beginning to see how games actually work! basically every item in a game is just a class :O :O .... Though you've got to wonder how graphics are actually done.. thats on a whole nother level i think
Okay. Many games don't use classes. And trust me, graphics is no a whole another level. It's a whole new environment. And complex games... even if you use claasses, it'll still get messy. 10000+ lines of code. dammet... that would be hard.... and most games "update" every few weeks, so they gotta KEEP on ADDING lines...
i dont think this will work, when you put your attack function in the class and you do cout << strength; whos strength is it going to show if i have Soldier dave(10) and Soldier john(20). i know you can do john.strength but that only works if i write it in the main function
You are, apparently, very uneducated if you think c++ isn't better/more functional than almost all other languages. Yes, there are easier languages to learn, and no, they are not more functional. In fact, most of those languages are WRITTEN in c++ or c# or c, meaning that they have less functional purposes than c++. Now it's true, most programmers wouldn't use those functions, but some (such as game programmers) do.
tldr; Shut the fuck up about stuff you don't know about.
Perhaps I didn't phrase my statement correctly; for that I apologize. What I mean is that you come onto youtube apparently searching for C++ tutorials, and then once you get to one that somebody worked extremely hard upon, you take it and say, "Why make c++ videos when there are a ton of easier programming languages?". That, to me, is just plain dumb.
@RiddlesInHell ok... dude thats not what im getting at.... if you used your eyes you would see that im not the one who wrote that message.. the guy who your trying to reply to is the guy that replied to my message... look at the username if the guy who wrote that comment and maybe then you will see it wasnt me...
@element1988 antiRTFM's point is to HELP people LEARN C++ for FREE. It says on the title of the video "C++ Tutorial...". element1988, either you are a SAD LONER looking for attention, or you are DUMB as F U C K. Either way, I pity you.
@elementu2011 Another retard that replies to a comment without looking at what it is replying to... If you had more then 2 brain cells to rub together you would know I wasn't talking to AntiRTFM. I was talking to a the guy that said there's no point learning C++ because there is easier languages. NOW WHO IS DUMB AS F U C K?
... a week ago I knew that 1+1 would perhaps make 2 . Now thanks to the amazing teachings of the nicest teacher You can find and thanks to my browsing on youtuve! Im having the most fun and understanding of something I once saw untouchable ! the c ; )
I love your videos as they are exactly what is needed for a jargon free introduction C++. You already know there is a great need for this. So thank you for putting this out there. But can you continue this effort in the near future? What if you just put a video out each month? That wouldn't be so arduous and taxing on your schedule. Please don't be sensitive about your English. It's much better than you let on.
Doing really good. I had previous experience in C++, and this is about the first video that I started learning stuff and it's extremely helpful! Thanks!
If I use the same name for the variable in a constructor as the member variable in that class, will there be a problem? I have it like this, and is it okay?
enemy::enemy(int health,int attack,int magic): health(health), attack(attack), magic(magic){}
TheXRealXBrapp 1 month ago
antiRTFM - dude you fukin ROCK, bro! Great tutorials and I love how they're free. Knowledge should only cost your time and not your money. World needs more people like you, antiRTFM.
elementu2011 6 months ago
@element1988 some people just don't know how to read lol
Manu82Baka 1 year ago
Nice tutorial
yeah355 1 year ago
I have one question. Do these tutorials ever get into other templates besides the one we have been working with?
TehPheonixmaster 1 year ago
I wrote a whole console game without knowing about the constructor. It could have made everything easier. :D
Zaillothen 1 year ago
need to start doing form apps
101abob 1 year ago
amazing five stars!!!
101abob 1 year ago
You're teaching me so much INSANE xD xD i'm beginning to see how games actually work! basically every item in a game is just a class :O :O .... Though you've got to wonder how graphics are actually done.. thats on a whole nother level i think
Magmatwister 2 years ago
@Magmatwister Not all games use classes, or even C++ but a large majority do.
Graphics are no mystery, just as you said, another level.
SDL, OpenGL, DirectX all provide access to the ggraphical functions of a computer.
0121ryanh117 2 years ago
also, if you are looking into graphics, i would check out dark gdk.
johnnyc130 2 years ago
@Magmatwister
Okay. Many games don't use classes. And trust me, graphics is no a whole another level. It's a whole new environment. And complex games... even if you use claasses, it'll still get messy. 10000+ lines of code. dammet... that would be hard.... and most games "update" every few weeks, so they gotta KEEP on ADDING lines...
N0wShutUp 1 year ago
i'm sure if i'm reading this on a book, i'm not going to understand this, thanks for the video tutorial
hoyun 2 years ago 5
the
void Soldier::attack()
{
}
makes more sence now. I have a book that tries to explain it but essentially skips it. thank you.
fur8ar 2 years ago
@fur8ar :: is simply a scope specifier, its simply saying that this method is part of a certain class.
0121ryanh117 2 years ago
i dont think this will work, when you put your attack function in the class and you do cout << strength; whos strength is it going to show if i have Soldier dave(10) and Soldier john(20). i know you can do john.strength but that only works if i write it in the main function
KaijeTheGreat 2 years ago
Comment removed
KaijeTheGreat 2 years ago
nvm i tried it out and it worked perfect
KaijeTheGreat 2 years ago
Comment removed
KaijeTheGreat 2 years ago
BRAVO!!!
Better than my C++ teacher..
Keep it up!!
paudeluttam 2 years ago 24
This comment has received too many negative votes show
nice but java is easier
gonzo191 2 years ago
there's a lot of other languages that are easier, most of them are easier. whats your point?
element1988 2 years ago 8
This comment has received too many negative votes show
.Net i think it's the best/easier.
MihaiZeu 2 years ago
@element1988
You are, apparently, very uneducated if you think c++ isn't better/more functional than almost all other languages. Yes, there are easier languages to learn, and no, they are not more functional. In fact, most of those languages are WRITTEN in c++ or c# or c, meaning that they have less functional purposes than c++. Now it's true, most programmers wouldn't use those functions, but some (such as game programmers) do.
tldr; Shut the fuck up about stuff you don't know about.
RiddlesInHell 1 year ago
@RiddlesInHell Read my post again, idiot...
element1988 1 year ago 4
@element1988
Perhaps I didn't phrase my statement correctly; for that I apologize. What I mean is that you come onto youtube apparently searching for C++ tutorials, and then once you get to one that somebody worked extremely hard upon, you take it and say, "Why make c++ videos when there are a ton of easier programming languages?". That, to me, is just plain dumb.
Please learn to appreciate hard work.
~
RiddlesInHell 1 year ago
@RiddlesInHell ok... dude thats not what im getting at.... if you used your eyes you would see that im not the one who wrote that message.. the guy who your trying to reply to is the guy that replied to my message... look at the username if the guy who wrote that comment and maybe then you will see it wasnt me...
KrazeRage 11 months ago
@element1988 antiRTFM's point is to HELP people LEARN C++ for FREE. It says on the title of the video "C++ Tutorial...". element1988, either you are a SAD LONER looking for attention, or you are DUMB as F U C K. Either way, I pity you.
elementu2011 6 months ago
@elementu2011 Another retard that replies to a comment without looking at what it is replying to... If you had more then 2 brain cells to rub together you would know I wasn't talking to AntiRTFM. I was talking to a the guy that said there's no point learning C++ because there is easier languages. NOW WHO IS DUMB AS F U C K?
element1988 6 months ago
@element1988 You're the retard... retard! Just... go die in a fire. Its what you deserve.
elementu2011 5 months ago
@elementu2011 lmao nice come back...
element1988 5 months ago
This is explained so much more clearly and easier to understand than my C++ book !!
mjd550 2 years ago 4
Legend :D
Spoonage!
babyaiko 2 years ago
... a week ago I knew that 1+1 would perhaps make 2 . Now thanks to the amazing teachings of the nicest teacher You can find and thanks to my browsing on youtuve! Im having the most fun and understanding of something I once saw untouchable ! the c ; )
alexrocksandpearls 2 years ago 4
I love your videos as they are exactly what is needed for a jargon free introduction C++. You already know there is a great need for this. So thank you for putting this out there. But can you continue this effort in the near future? What if you just put a video out each month? That wouldn't be so arduous and taxing on your schedule. Please don't be sensitive about your English. It's much better than you let on.
mmf257 3 years ago
Doing really good. I had previous experience in C++, and this is about the first video that I started learning stuff and it's extremely helpful! Thanks!
dbproguy 3 years ago
Keep them comming :)
lambda30 3 years ago