<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: C++ Tech Interviews</title>
	<atom:link href="http://mpwilson.com/2012/01/10/c-tech-interviews/feed/" rel="self" type="application/rss+xml" />
	<link>http://mpwilson.com/2012/01/10/c-tech-interviews/</link>
	<description></description>
	<pubDate>Wed, 23 May 2012 00:13:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Brett L. Schuchert</title>
		<link>http://mpwilson.com/2012/01/10/c-tech-interviews/#comment-5266</link>
		<dc:creator>Brett L. Schuchert</dc:creator>
		<pubDate>Wed, 11 Jan 2012 15:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://mpwilson.com/?p=4120#comment-5266</guid>
		<description>Forget the hard stuff... Give them an opportunity to show whether or not they know how to properly use inheritance and virtual functions. Give them a design problem (I've used Monopoly) and see where they put the responsibility.

As for tricky questions... Here's one you could use but it requires knowledge of the standard library and references...

Given a std::map stringToString;

If you want to find out if a key is already used, you could do this:
if(stringToString[key] ...)
- Why should you not generally do this to find if something is in them map
- What should you do instead
- What feature of C++ almost requires this observation?</description>
		<content:encoded><![CDATA[<p>Forget the hard stuff&#8230; Give them an opportunity to show whether or not they know how to properly use inheritance and virtual functions. Give them a design problem (I&#8217;ve used Monopoly) and see where they put the responsibility.</p>
<p>As for tricky questions&#8230; Here&#8217;s one you could use but it requires knowledge of the standard library and references&#8230;</p>
<p>Given a std::map stringToString;</p>
<p>If you want to find out if a key is already used, you could do this:<br />
if(stringToString[key] &#8230;)<br />
- Why should you not generally do this to find if something is in them map<br />
- What should you do instead<br />
- What feature of C++ almost requires this observation?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

