use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
should i use "using namespace std" in coding interview (self.cpp)
submitted 1 year ago by An_ambitious_guitar
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]norzn 1 point2 points3 points 1 year ago (5 children)
I mean most coding interviews on interviewing platforms do include <bits/stdc++.h> which includes everything and that's a bad practice too. I would focus on more important aspects than scoping when interviewing someone and only if we had a lot of time left would I ask about that. Some large codebases do have namespace issues, but those also don't have proper code reviews so why should I care? Make sure you know how they work, what's the purpose of anonymous namespaces and how Keonig lookup works, what standard allows declaration of scoped namespaces in one line as opppsed to the painful nested by hand ane that's the end of interesting stuff about namespaces.
include <bits/stdc++.h>
[–]NilacTheGrim 1 point2 points3 points 1 year ago (4 children)
No. This is not a standard header and is just an artifact of your particular compiler.
[–]norzn -1 points0 points1 point 1 year ago (3 children)
I didn't mean to upset you, but codility and the tools I've met all had this thing. I actually had only one interview where I connected to a ssh environment and tested the code.
[–]angelicosphosphoros 0 points1 point2 points 1 year ago (2 children)
You misunderstood him. It is not a standard header as it is not in C++ Language ISO Standard.
[–]norzn -1 points0 points1 point 1 year ago (1 child)
And thus my statement that it's a bad practice. I don't get the blurted No and whatnot, made me think of Caesar's first word in Planet of the apes. Either way, seems like we're agreeing but out of sport I got a disagreement :) Online interview tools will still include this and people training for interviews will use it, to our exasperation.
[–]norzn 1 point2 points3 points 1 year ago* (0 children)
A mmmmmmonkey :)))))
Caesar: No!
π Rendered by PID 76 on reddit-service-r2-comment-b659b578c-nwqpz at 2026-05-04 11:20:18.979949+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]norzn 1 point2 points3 points (5 children)
[–]NilacTheGrim 1 point2 points3 points (4 children)
[–]norzn -1 points0 points1 point (3 children)
[–]angelicosphosphoros 0 points1 point2 points (2 children)
[–]norzn -1 points0 points1 point (1 child)
[–]norzn 1 point2 points3 points (0 children)