Anyone know how to display the code line numbers? I'd like to just be able to see lines by their number, but with the default settings for Visual C++ 2010, it doesn't display the numbers.
@GeekingForJesus Go to Tools>Options. Choose TextEditor>C/C++. Under the heading Display, choose Line numbers. Aesthetically speaking, I prefer the way it looked in older versions, but line numbers is line numbers.
@guineapig1016 lol. Except for using MATHEMATICS LIKE EVERY DARN THING ON EARTH, C++ is nothing like javascript. C++ is a high level language. Everything we do is based on maths, so obviously there going to have that in common.
@MrHakLaw Nitpicking, but they both are also classy..... but other than that not much else. The big difference seems to be focus. C++ focuses on allowing the programmer to have control and you can do most things with it. JS seems to be focused on web applications, and tries to simplify the code. I really wish my college would have started us on C++ rather than Java. Students need to run a lang that doesn't hold their hand.
@nospacesallowed I wouldn't say Java "holds your hand". It is a very powerful language in it's own right, it is also an object oriented language, so learning java before c++ can be a good thing if just to get your thought process etc in line with object programming.
That is, if you didn't mean Java as in JavaScript, seeing as they are completely different language.
@sk8rz21 They're useful when you for example want the value of some variable to change after a certain action. With arrays you just have to put the array in a loop and basically create a code doing for example the following: After pressing a key, do Variable[x+1]. Without arrays it would become insanely hard to do so.
@sk8rz21 Lets say you want to store the ages of 100 people. And that the 100 people are ordered already in some manner from 1 to 100. To store these ages you could create an array of 100 elements and put the ages in there. Otherwise you'd have to create 100 integers. Also you can loop over the elements of an array and print them all out easily. If you had 100 integers you'd have to write a lot more code to output them all.
Thanks for the video. I can't understand one word that you say at 2.31, and then two times soon after. It sounds like you say "...the array bounce" or "...the array balance", or perhaps something else. What is this word please? thanks
Indeed, this would be much more conviant. However, he may want to be using someone elses namespace somewhere down the line, and he wants you to get in the habit of declaring a standard console output (cout).
If this is a regular array, then I'm excited for multidimensional arrays!
EpicProCo 3 months ago
std::cin.getline(caName1,19) is better than std::cin >> caName because it allows you to read the whitespace between words.
jc1838 11 months ago
c++ is sort of like javascript though harder, great videos!
ercara95 1 year ago
this is sort of like javascript though harder
ercara95 1 year ago
Anyone know how to display the code line numbers? I'd like to just be able to see lines by their number, but with the default settings for Visual C++ 2010, it doesn't display the numbers.
GeekingForJesus 1 year ago
@GeekingForJesus Go to Tools>Options. Choose TextEditor>C/C++. Under the heading Display, choose Line numbers. Aesthetically speaking, I prefer the way it looked in older versions, but line numbers is line numbers.
Vampus 1 year ago
@Vampus Thank you. It helps. And something about seeing the line numbers makes me want to program further, lol.
GeekingForJesus 1 year ago
I don't like the music at the start
zwerty007 1 year ago 5
this is just like java script note .... like x and y ( in algebra 2) or precalc
guineapig1016 1 year ago
@guineapig1016 lol. Except for using MATHEMATICS LIKE EVERY DARN THING ON EARTH, C++ is nothing like javascript. C++ is a high level language. Everything we do is based on maths, so obviously there going to have that in common.
MrHakLaw 1 year ago
@MrHakLaw Nitpicking, but they both are also classy..... but other than that not much else. The big difference seems to be focus. C++ focuses on allowing the programmer to have control and you can do most things with it. JS seems to be focused on web applications, and tries to simplify the code. I really wish my college would have started us on C++ rather than Java. Students need to run a lang that doesn't hold their hand.
nospacesallowed 1 year ago
@nospacesallowed I wouldn't say Java "holds your hand". It is a very powerful language in it's own right, it is also an object oriented language, so learning java before c++ can be a good thing if just to get your thought process etc in line with object programming.
That is, if you didn't mean Java as in JavaScript, seeing as they are completely different language.
MrHakLaw 1 year ago
this is just like java script
guineapig1016 1 year ago
Arrays seem pretty pointless to me...
When are they actually prefered.
may aswell just use int?
sk8rz21 1 year ago
@sk8rz21 They're useful when you for example want the value of some variable to change after a certain action. With arrays you just have to put the array in a loop and basically create a code doing for example the following: After pressing a key, do Variable[x+1]. Without arrays it would become insanely hard to do so.
uniquebum 1 year ago
@sk8rz21 Lets say you want to store the ages of 100 people. And that the 100 people are ordered already in some manner from 1 to 100. To store these ages you could create an array of 100 elements and put the ages in there. Otherwise you'd have to create 100 integers. Also you can loop over the elements of an array and print them all out easily. If you had 100 integers you'd have to write a lot more code to output them all.
howitzer24 1 year ago 3
@howitzer24 nice answer^^.
drakion1989 1 year ago
Thanks for the video. I can't understand one word that you say at 2.31, and then two times soon after. It sounds like you say "...the array bounce" or "...the array balance", or perhaps something else. What is this word please? thanks
Nezmundo00 1 year ago
@Nezmundo00 He is saying bounds, like the boundaries of the array.
OnlySyntaxErrors 1 year ago
@OnlySyntaxErrors Thanks man
Nezmundo00 1 year ago
Just one question...in which cases is it better to use an array and in which an normal variable?
So when do you use an array in practice?
bartjoboy 1 year ago
Thanks very much
MrUnkown100 2 years ago
instead of always typing std:: ::std ...etc why dont you just use the namespace std;
at the start after the main func type this
ex: using namespace std;
it makes your whole script shorter
gamemak0r 2 years ago 5
He probably wants to avoid using shortcuts for now, most likely to explain what it means first.
zenpher 2 years ago 22
Indeed, this would be much more conviant. However, he may want to be using someone elses namespace somewhere down the line, and he wants you to get in the habit of declaring a standard console output (cout).
BufferOverflowAttack 2 years ago
nice i love your videos keep it up!
MrBosanskiCevap 2 years ago 32