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

Link to this comment:

Share to:
see all

All Comments (31)

Sign In or Sign Up now to post a comment!
  • I'm lazy so I use 'using namespace std;' all the time :P

  • you know what?your music is kinda weird.It reminds me of jesus. But at least I appreciate the tutorial.thanks man

  • @aiwasen How can a song remind you of a fairytale?

  • This consludes your life...

  • please try to avoid the back ground music... couldn't hear the voice properly.. other wise its really good tutorial... following it... thanks..

  • Its like applying a variable to a variable lol

  • Soo... whats the difference between namespaces and classes?

  • @Techn0Junki3

    namespaces lack elements such as;

    private (makes data inaccessible to other classes); long story short, one class should mess up the data members of classes with private data

    protect(segregates other classes except for friend classes..); its more like that b*tch at school who decides who goes to the party

    inheritance (sharing class attributes (like data & functions))...

    class are simple superior(and they are the same as structs,) except that structs are public by default

  • @BLESSMAN11 thanks for clearing that up :)

  • Question! Question! I noticed the function f() and g() didn't receive function prototypes. Is this because their scope was only local?

  • @DigiTan000 Ya, local can't wander to global, cmiiw

  • I'd still rather have have "using namespace std;" in the global scope.

  • Comment removed

  • This is great, I didn't know about namespaces, it's just used in C++, or also in C?

  • Hi guys Im learning loads from these videos great work, But is there a way too stop Visual c++ 2010 from qutting console before i have seen the running program? Each lesson im having too add std::cin.get(); too stop it quitting which is ok but anoying..

  • @jsfowler06

    c++ 2010 doesent have "start without debug" if you payste the code " system("pause") " at the end of your code then it will fix your problem.

  • @FreedomFireGames I know this comment is 8 months old but for people to see in future comments. Yes you can add start without debugging to c++ 2010 just search "How to add start without debugging in Microsoft Visual C++ 2010 express" it's actually very simple

  • @jsfowler06 Put a break point on the line of the closing bracket :)

  • @jsfowler06 use ctrl f5

  • verry nice, i allways put namespace std in the global scope, now i know this is incorect.

  • all ur vids are nice work, what program did u use for that?

  • this was slightly confusing...

  • Great video! Thank you!

  • i m okey with "using namespace std; "

  • @sheheryar25

    no shit :D

  • @sheheryar25 without using the namespace std from the standard c++ library, you will get errors when using the commands that perform input-output operations. cout and cin belong to the standard namespace defined in the c++ standard library therefore you have to define this globally "using namespace std;"

  • @FallofDarkness55

    you don't have to define it globally. he hasn't been defining it globally so far. Sure defining it globally makes it easier, but I prefer to define them in the scope I use them generally. that way I can keep things organized and clean, with only a few ways out, you can control the flow of your program better.

  • @sheheryar25 so do i~

  • great, thanks

  • JJovola, the answer to your question is at 2:36-2:40

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