+ 1

Which is better?

1. using namespace std 2. Write the std manually (std::cout , std::cin) 3. Write using std::cout , using std::cin before int main()?

30th Sep 2017, 2:30 AM
Mustakim Arianto
Mustakim Arianto - avatar
3 Answers
+ 7
https://code.sololearn.com/c61v1WUGFXoK/?ref=app that is why number 1 is called as bad practice But anyway Everybody care output more than code,right?
30th Sep 2017, 2:45 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
30th Sep 2017, 5:19 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
Ummmm sound like 2 equal 3 😑 then ans is only 1 and 2 Ans is 2 Well if you define 2 methods inside your own namespaces that have same name but different namespace ex namespace: foo(QUXX) bar(QUXX) If you type using namespace foo and bar then you call QUXX().... lemme make example code
30th Sep 2017, 2:39 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar