Added: 2 years ago
From: xoaxdotnet
Views: 45,395
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (26)

Sign In or Sign Up now to post a comment!
  • If this is a regular array, then I'm excited for multidimensional arrays!

  • std::cin.getline(caName1,19) is better than std::cin >> caName because it allows you to read the whitespace between words.

  • c++ is sort of like javascript though harder, great videos!

  • this is sort of like javascript though harder

  • 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.

  • @Vampus Thank you. It helps. And something about seeing the line numbers makes me want to program further, lol.

  • I don't like the music at the start

  • this is just like java script note .... like x and y ( in algebra 2) or precalc

  • @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.

  • this is just like java script

  • Arrays seem pretty pointless to me...

    When are they actually prefered.

    may aswell just use int?

  • @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.

  • @howitzer24 nice answer^^.

  • 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 He is saying bounds, like the boundaries of the array.

  • @OnlySyntaxErrors Thanks man

  • 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?

  • Thanks very much

  • 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

  • He probably wants to avoid using shortcuts for now, most likely to explain what it means first.

  • 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).

  • nice i love your videos keep it up!

Loading...
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