C++ Console Lesson 11: Global and Local Scope
More at xoax.net This C++ recording warning shows how to topical and gloabl orbit duty in C++ programs and how to attain ingest of them. Please accede every questions to our installation xoax.net
Related Posts
Comments
Comment from Yikak4
Time January 27, 2012 at 10:19 am
What has this got to do with UFO sightings?!
Comment from randomguyalwayshere
Time January 27, 2012 at 11:12 am
Why do you always put in beginning a picture of napoleon?
Comment from skippy999999
Time January 27, 2012 at 11:35 am
Goddamn it why do you use void main? Its supposed to be int main!
Comment from TheSoulAssassin20
Time January 27, 2012 at 11:43 am
@4Got10Shadow I thought the same thing. This video was made in 2008 though.
Comment from TheSoulAssassin20
Time January 27, 2012 at 12:01 pm
Is this old or why arn’t you using
using namespace std;
???????
Comment from 4Got10Shadow
Time January 27, 2012 at 12:46 pm
why he doesnt use using namespace std; so that he will not include std:: at every beginnung????
Comment from khichehade
Time January 27, 2012 at 1:14 pm
Directly to the point, that’s why these are awesome tutorials
Thanx
Comment from danagamer
Time January 27, 2012 at 1:23 pm
::var forces uses local variable, without :: it would use the global variable (if one is present).
btw the narrator sounds like Napoleon Dynamite!
Comment from lalitmali
Time January 27, 2012 at 1:33 pm
why is scope resolution operator(::) printing the global variable?
can anybody explain?
Comment from guineapig1016
Time January 27, 2012 at 2:22 pm
i love you who ever you are! thx soooooooo much! if i where adoctor i would give you one o my paychecks….but im not……(yet) lol
Comment from howitzer24
Time January 27, 2012 at 2:25 pm
@XenonXero Putting those open and closing brackets creates a subscope. For example:
int main()
{
int alpha = 0;
{
int alpha = 1;
}
}
This is legal because the open and closing brackets create a new subscope below the outer scope. The new scope is like starting with a clean slate of available variable identifiers to use.
Comment from Semperfi918
Time January 27, 2012 at 2:39 pm
Thanks Michael Hall I love you lol. Seriously I watch these everyday now for a week and I am getting this still got alot more videos to go.
Comment from xZippy38
Time January 27, 2012 at 3:24 pm
I pray I get a C++ teacher like you.
Comment from XenonXero
Time January 27, 2012 at 3:25 pm
From 2:56 i didn’t understand can any body help.. ?
Comment from stillnew
Time January 27, 2012 at 3:37 pm
hi people can somebody explain to me how do people wrote the c++ c java and all of those and how or what they use i mean like can somebody plz explain it to me or send m a link website or something about the history and more appreciate the help
Comment from xBloodYxCannibaLx
Time January 27, 2012 at 4:15 pm
u explaining epicly good tnx
Comment from kimbinhmai123
Time January 27, 2012 at 4:54 pm
great tutorial video , thanks
Comment from MrCoolUS
Time January 27, 2012 at 5:49 pm
LOVE these tutorials. Recently transferred from Java to C++. These tutorials should help me get started in C++. Thanks so much (=.
Comment from 13DraconusMaximus13
Time January 27, 2012 at 6:13 pm
@Archlvt CAN ^^
Comment from TheYoGamer
Time January 27, 2012 at 6:59 pm
Hmm, i don´t get it…
Comment from Archlvt
Time January 27, 2012 at 7:41 pm
I can’t tell if he’s saying iX CAN or CAN’T be accessed since it’s nested in a local block within the main block.
Comment from bryanj12341
Time January 27, 2012 at 7:57 pm
this video was really helpful, thanks
Comment from GamingRebel
Time January 27, 2012 at 8:50 pm
Thanks man, you’re awesome!
Comment from kamil6007
Time January 27, 2012 at 9:11 pm
VERY good video!
Comment from zarkoasenov
Time January 27, 2012 at 10:03 am
cringe