I told tell my lecturer it's not advised to put using namespace std; and he said that it was just an opinion. After that, I knew I had no business learning from him because his knowledge was limited.
Thabk you for going over "using namespace std" and why it shouldn't be used. So many tutorials start wirh it and never explain to people what it is, and why they are using it.
#include
namespace first{
int x = 1;
}
namespace second{
int x = 2;
}
int main() {
int x = 0;
std::cout
You made this series YEARS AGO but I'm benefitting from the information ON this series in August 2024. Good teaching!
thank you for the warning about `using namespace std`, my teacher is telling us to always use that when writing in c++
FOR REAL THAT IS SUCH A LIFE SAVER 😂
My teacher said without that your c++ code won't be executed ... but never thought the logic behind
I told tell my lecturer it's not advised to put using namespace std; and he said that it was just an opinion. After that, I knew I had no business learning from him because his knowledge was limited.
Thabk you for going over "using namespace std" and why it shouldn't be used. So many tutorials start wirh it and never explain to people what it is, and why they are using it.
Excellent breakdown. Quick, clear and concise. Thanks
This Bro is really cooking...
Oh man this is so clean thank you. Subbed
Thank for teaching C++
Thank you so much for this one ..
NOW I GET THIS 🔥🔥👍👍
this is the best explanation of it!
thank you for existing ❤
I am addicted to your Videos Bro.
Bro. You are great. Love you from the Core of my Heart ❤️❤️❤️❤️❤️❤️❤️
You are the best. Please keep it up.
you can use "using namespace std ; " after "include" instead of using "std::" in every line
thx for teaching namespace its life changing
whatever anything before or after whatever anything I do or did or anything
its some what similiar to different object with same class
but why i dont see it as a solution? its just lowering down the probability of a conflict, because we can still find a conflicting namespaces
Thamk you!
loving it
thanks bro
Thank you so much
This one was cool
Man i did not knew this ..
thank you
Thanks
who's letting bro cook!!
So I tried using this code
#include
no it doesnt it stays the same
No, it doesn't.
Test this code:
```
#include
namespace first {
int x = 1;
}
int main() {
using namespace first;
int x = 0;
std::cout
No, it doesn't.
Test this code:
```
#include
namespace first {
int x = 1;
}
int main() {
using namespace first;
int x = 0;
std::cout
algo algo
#include
int main (){
std::string
that is wrong ?
Error in 3rd line
Remove "
namespace cnts
{
// namespace for constants
const int DAYS_PER_WEEK = 7;
const int WEEKS_PER_MONTH = 4;
const int MONTHS_PER_YEAR = 12;
const int DAYS_PER_YEAR = 365;
}
namespace msgs
{
// namespace for messages
std::string hello = "Hello there!";
std::string welcome = "Welcome!";
std::string gameOver = "GAME OVER!";
}
int main()
{
int days_per_month = cnts::DAYS_PER_WEEK * cnts::WEEKS_PER_MONTH;
std::cout
thanks bro
Thanks