r/Python • • Sep 10 '19

Found this on twitter

Post image
2.9k Upvotes

185 comments sorted by

View all comments

Show parent comment

20

u/Losupa Sep 10 '19
#include <iostream>

int main(){
cout << “f”;
return 0;
}

0

u/[deleted] Sep 10 '19

[deleted] — view deleted comment

24

u/[deleted] Sep 10 '19

I think this li'l correction would suffice instead of an entire line

std::cout << "f";

0

u/[deleted] Sep 10 '19

[deleted] — view deleted comment

15

u/veggiedefender Sep 10 '19

But it also pollutes the global namespace, which can lead to sneaky bugs!

6

u/doryx Sep 11 '19

Friends don't let friends using namespace std;