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..
@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
@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;"
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.
I'm lazy so I use 'using namespace std;' all the time :P
Yikak4 4 months ago
you know what?your music is kinda weird.It reminds me of jesus. But at least I appreciate the tutorial.thanks man
aiwasen 6 months ago
@aiwasen How can a song remind you of a fairytale?
xThaWolfx 5 months ago
This consludes your life...
bigfanowarriors 8 months ago
please try to avoid the back ground music... couldn't hear the voice properly.. other wise its really good tutorial... following it... thanks..
tommyhunter23 10 months ago
Its like applying a variable to a variable lol
zwerty007 1 year ago
Soo... whats the difference between namespaces and classes?
Techn0Junki3 1 year ago
@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 1 year ago
@BLESSMAN11 thanks for clearing that up :)
Techn0Junki3 1 year ago
Question! Question! I noticed the function f() and g() didn't receive function prototypes. Is this because their scope was only local?
DigiTan000 1 year ago
@DigiTan000 Ya, local can't wander to global, cmiiw
1rescen1 1 year ago
I'd still rather have have "using namespace std;" in the global scope.
xZippy38 1 year ago
Comment removed
Wegzo 1 year ago
This is great, I didn't know about namespaces, it's just used in C++, or also in C?
pumpfever 1 year ago
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 1 year ago
@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 1 year ago
@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
AaronVlogs 11 months ago
@jsfowler06 Put a break point on the line of the closing bracket :)
howitzer24 1 year ago
@jsfowler06 use ctrl f5
CodingMadeEasy 1 year ago
verry nice, i allways put namespace std in the global scope, now i know this is incorect.
NightOwl79a 2 years ago 6
all ur vids are nice work, what program did u use for that?
Coi1221 2 years ago
this was slightly confusing...
gamemak0r 2 years ago
Great video! Thank you!
tivrfoa 2 years ago 4
i m okey with "using namespace std; "
sheheryar25 2 years ago 40
@sheheryar25
no shit :D
VicariousVirzo 11 months ago
@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 11 months ago
@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.
iceshadow625 7 months ago
@sheheryar25 so do i~
chulove522 7 months ago
great, thanks
rhillner 2 years ago 6
This comment has received too many negative votes show
dude why dont u just do using namespace std; in the beginning?
JJovola 2 years ago
JJovola, the answer to your question is at 2:36-2:40
MrTakeAshot1 2 years ago 16