<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Scope of &amp;quot;using namespace std;&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81215/scope-of-using-namespace-std</link><description>Hi, 
 
 With enabling of C++ support in my nCS project, i was able to include &amp;quot;using namespace std&amp;quot; and successfully build. 
 However, i wasn&amp;#39;t able to use C++ std keywords like cout,endl, etc,. 
 So can you please help me understand what do i gain by</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Oct 2021 14:54:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81215/scope-of-using-namespace-std" /><item><title>RE: Scope of "using namespace std;"</title><link>https://devzone.nordicsemi.com/thread/336722?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 14:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79165848-4b44-49fe-8707-a5a5461f73ee</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Ubaid&lt;/p&gt;
&lt;p&gt;All that the &amp;#39;using&amp;#39; keyword does is remove the requirement to include the namespace name in front of any identifier within that namespace (allowing you to write cout instead of std::cout for instance).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You still have to include the right header file to get access to the functions you want to use. In the case of cout and endl you need to include iostream:&lt;br /&gt;&lt;em&gt;#include &amp;lt;iostream&amp;gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Could you try with the include and see if it works?&lt;br /&gt;If it still doesn&amp;#39;t work, will it work the normal way (using std:: in front) ?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>