#please I need an explanation that can help me understand this better or give an example code

11 messages · Page 1 of 1 (latest)

wet magnet
#

I'm trying to understand "using namespace std" is it some kind of short cut so you won't have to type "std::" repeatedly? If not than can someone please explain it like I'm a toddler. I feel like I'm over thinking this.

crystal hawkBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

livid sandal
#

std is a namespace that has a lot of things you can use. When you do using namespace std; you basically populate where you put this code with everything inside the std namespace.

wet magnet
#

what can I put in the std namespace? thank you for answering by the way.

livid sandal
#

I don’t understand your question

#

It’s bad practice to do

using namespace std;
#

So if I was you, I wouldn’t use namespace std and just wait till I get to namespaces to learn what they are and how they can be useful

#

For now you can keep typing out the std:: every time

wet magnet
#

Ok, thanks again for answering:) I'll take that advise.

livid sandal
#

Np

wet magnet
#

!solved