<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									It&#039;s C++ not C/C++ - C++				            </title>
            <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 08 Jun 2026 20:47:36 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52503</link>
                        <pubDate>Mon, 20 Apr 2026 21:14:41 +0000</pubDate>
                        <description><![CDATA[@tfpfau 
Nor the realist who points out that you&#039;ve supplied the wrong size glass.]]></description>
                        <content:encoded><![CDATA[<p>@tfpfau </p>
<p>Nor the realist who points out that you've supplied the wrong size glass.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>Will</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52503</guid>
                    </item>
				                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52478</link>
                        <pubDate>Sat, 18 Apr 2026 00:45:19 +0000</pubDate>
                        <description><![CDATA[No, keep them coming! They serve a useful purpose, and we need to refine how we use them. I keep forgetting to use CoPilot to double check my work and kick myself afterwards. And I enjoy the...]]></description>
                        <content:encoded><![CDATA[<p></p>
<p>I will have to resist giving ChatGPT's responses I</p>
<p></p>
<p>No, keep them coming! They serve a useful purpose, and we need to refine how we use them. I keep forgetting to use CoPilot to double check my work and kick myself afterwards. And I enjoy the way you poke at ChatGPT. it promotes discussion.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>TFMcCarthy</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52478</guid>
                    </item>
				                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52477</link>
                        <pubDate>Sat, 18 Apr 2026 00:33:06 +0000</pubDate>
                        <description><![CDATA[Don&#039;t forget the engineer who thinks the glass is twice as big as it needs to be...
&nbsp;]]></description>
                        <content:encoded><![CDATA[
<p>  In summary, I reminded of the optimist, with a half-full glass, and the pessimist, with a half-empty glass....</p>
<p></p>
<p>Don't forget the engineer who thinks the glass is twice as big as it needs to be...</p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>tfpfau</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52477</guid>
                    </item>
				                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52476</link>
                        <pubDate>Fri, 17 Apr 2026 21:44:50 +0000</pubDate>
                        <description><![CDATA[@tfmccarthy 
Hi TimI will have to resist giving ChatGPT&#039;s responses I have already gotten into trouble once before! It is that I have found it so very helpful even if it can give incorrect ...]]></description>
                        <content:encoded><![CDATA[<p>@tfmccarthy </p>
<p>Hi Tim<br /><br />I will have to resist giving ChatGPT's responses I have already gotten into trouble once before! It is that I have found it so very helpful even if it can give incorrect replies with great confidence. It is a great teacher and has made learning and coding so much faster and easier. It always responds and doesn't fob you off or ignore your questions or put you down so much so I asked it this question:<br /><br />Have you been programmed to be nice and not give insulting replies that some humans are prone to?<br /><br />ChatGPT:</p>
<p>Short answer: yes—intentionally so, but not in a fake or sugarcoated way.<br /><br />I’m designed to be respectful and constructive, which means I avoid insults, personal attacks, or trying to put people down. That said, I’m not supposed to just agree with everything or “be nice” at the expense of honesty. If something is incorrect, risky, or doesn’t make sense, I’ll push back—just without being rude about it.<br /><br />Humans sometimes use insults to vent, assert dominance, or react emotionally. I don’t have those impulses, so the goal is to keep things useful, clear, and grounded instead.<br /><br />If you want blunt, direct feedback (without the fluff), you can say so—I can adjust the tone while still keeping it respectful.</p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>robotBuilder</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52476</guid>
                    </item>
				                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52475</link>
                        <pubDate>Fri, 17 Apr 2026 20:32:14 +0000</pubDate>
                        <description><![CDATA[Hi Tim @tfmccarthy,
  Thanks for your kind replies, including the PMs.
   I am certainly fallible, and whilst we can&#039;t actually see each other, I am happy to agree that you are most likely...]]></description>
                        <content:encoded><![CDATA[<p>Hi Tim @tfmccarthy,</p>
<p>  Thanks for your kind replies, including the PMs.</p>
<p>   I am certainly fallible, and whilst we can't actually see each other, I am happy to agree that you are most likely the more handsome.</p>
<p>   I have started to reply to the PMs, but the effort you put in, deserves more thought and research on my part. </p>
<p>  In summary, I reminded of the optimist, with a half-full glass, and the pessimist, with a half-empty glass. I think any differences between us are of similar magnitude. </p>
<p>If I don't get too distracted with other stuff, I'll try to contact you by PM soon.</p>
<p>Best wishes and take care, Dave</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>DaveE</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52475</guid>
                    </item>
				                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52472</link>
                        <pubDate>Fri, 17 Apr 2026 15:37:18 +0000</pubDate>
                        <description><![CDATA[Hmm. Correct me if I&#039;m wrong, wasn&#039;t that the response from ChatGPT? Or was it from a different agent?
I have to confess, I&#039;m suddenly feeling a bit nervous that I&#039;ll run afoul of ChatGPT s...]]></description>
                        <content:encoded><![CDATA[<p></p>
<p>ChatGPT replied:</p>
<p></p>
<p>Hmm. Correct me if I'm wrong, wasn't that the response from ChatGPT? Or was it from a different agent?</p>
<p>I have to confess, I'm suddenly feeling a bit nervous that I'll run afoul of ChatGPT someplace down the line. But that's fine. I'll recover. :D</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>TFMcCarthy</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52472</guid>
                    </item>
				                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52471</link>
                        <pubDate>Fri, 17 Apr 2026 10:03:21 +0000</pubDate>
                        <description><![CDATA[&nbsp;
&quot;Arduino uses real C++ under the hood&quot;
&nbsp;

@tfmccarthy wrote:
This is confused. There&#039;s no &quot;under the hood&quot; here. You&#039;re using C++ directly. Like saying underneath this post ...]]></description>
                        <content:encoded><![CDATA[<p>&nbsp;</p>
<p><em>"Arduino uses real C++ under the hood"</em></p>
<p>&nbsp;</p>
<blockquote>
<p>@tfmccarthy wrote:</p>
<p>This is confused. There's no<span> </span><em>"under the hood"</em><span> </span>here. You're using C++ directly. Like saying underneath this post is English text.</p>
</blockquote>
<p>&nbsp;</p>
<p>ChatGPT replied:</p>
<p>You’re right to push back on that phrasing—it’s sloppy.</p>
<p>When people say <em>“Arduino uses real C++ under the hood,”</em> they’re usually trying (badly) to communicate that Arduino isn’t a completely separate language. But technically, you <strong>are writing C++ directly</strong>, not something that merely compiles <em>into</em> C++ behind the scenes.</p>
<p>What <em>is</em> happening is a bit subtler:</p>
<ul>
<li>
<p>The Arduino build system <strong>wraps your sketch</strong> with some extra code before compilation</p>
</li>
<li>
<p>It <strong>auto-generates function prototypes</strong></p>
</li>
<li>
<p>It links against Arduino-specific libraries (like <code>digitalWrite</code>, <code>pinMode</code>, etc.)</p>
</li>
</ul>
<p>So your <code>.ino</code> file is essentially treated as a <strong>simplified C++ source file</strong>, then slightly preprocessed and compiled with a standard C++ compiler (usually <code>avr-g++</code>, <code>arm-none-eabi-g++</code>, etc.).</p>
<p>A more accurate way to say it would be:</p>
<blockquote>
<p>“Arduino is a lightweight framework and build system on top of C++ that hides some boilerplate.”</p>
</blockquote>
<p>Your analogy works: saying “under the hood” implies a different layer or language, which isn’t really the case. It’s more like <strong>C++ with training wheels and some automatic conveniences</strong>, not a different engine entirely.</p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>robotBuilder</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52471</guid>
                    </item>
				                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52468</link>
                        <pubDate>Fri, 17 Apr 2026 01:06:02 +0000</pubDate>
                        <description><![CDATA[Dave,
You never have to apologize to me. If I led you to believe I was referring to you, then I owe you the apology.
So, let&#039;s agree we&#039;re both infallible and I&#039;m the more handsome one. :)...]]></description>
                        <content:encoded><![CDATA[<p></p>
<p>Please accept my full apologies if anything I wrote was incorrect or offensive, that has never been my intention.</p>
<p></p>
<p>Dave,</p>
<p>You never have to apologize to me. If I led you to believe I was referring to you, then I owe you the apology.</p>
<p>So, let's agree we're both infallible and I'm the more handsome one. :)</p>
<p>I will PM you with more.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>TFMcCarthy</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52468</guid>
                    </item>
				                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52467</link>
                        <pubDate>Fri, 17 Apr 2026 00:16:42 +0000</pubDate>
                        <description><![CDATA[Hi @tfmccarthy,
   Please accept my full apologies if anything I wrote was incorrect or offensive, that has never been my intention.
  I don&#039;t think I ever suggested that the compiler Ardu...]]></description>
                        <content:encoded><![CDATA[<p>Hi @tfmccarthy,</p>
<p>   Please accept my full apologies if anything I wrote was incorrect or offensive, that has never been my intention.</p>
<p>  I don't think I ever suggested that the compiler Arduino uses was expecting anything other than a C++ code, nor that the compiler is limited in its ability to compile C++ code. </p>
<p>  However, I do feel the latest C++ language definition is complex and lengthy, and may present a steep and foreboding, learning curve for someone coming to programming for the first time.</p>
<p>Bjarne Strousstrap's Fourth edition C++ Programming Language book is listed as having 1376 pages, and is based on C++11 definition (2011 version), whilst W3Schools intro (https://www.w3schools.com/cpp/cpp_intro.asp) lists 4 subsequent updates, the latest being C++23 (2023 version), which I presume would require an even heavier volume to describe in equivalent detail. (C++26 definition is expected this year, and experimentally supported by GCC.) </p>
<p>The second edition of Kernighan &amp; Ritchie (C Programming Language) is only 284 pages. </p>
<p>Thus, my suggestion for anyone <strong>starting</strong> with Arduino supported modules, who is unfamiliar with C++, is to look to the C subset of C++, for major part of any programme they wish to write, whilst embracing a limited use of classes, especially those helpfully provided as built-ins to the Arduino IDE and in libraries.</p>
<p>I note the W3Schools page just referenced includes:</p>
<blockquote>
<h2>Difference between C and C++</h2>
<p>C++ was developed as an extension of <a href="https://www.w3schools.com/c/index.php">C</a>, and both languages have almost the same syntax.</p>
<p>The main difference between C and C++ is that C++ supports classes and objects, while C does not.</p>
</blockquote>
<p>Of course, achieving full competency with entire C++ language will provide a much richer experience, and a natural progression, but I hope it is not an <strong>immediate</strong> requirement for someone putting together simple projects of the type regularly demonstrated and explained on this website. </p>
<p>I do not pretend my suggestion is an ideal solution, and I look forward to reading about better alternative recommendations for someone starting with Arduino based projects, who is not experienced in C++ programming.</p>
<p>&nbsp;</p>
<p>Best wishes to all, and apologies for any offence or confusion I have introduced, Dave</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>DaveE</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52467</guid>
                    </item>
				                    <item>
                        <title>RE: It&#039;s C++ not C/C++</title>
                        <link>https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52466</link>
                        <pubDate>Thu, 16 Apr 2026 16:42:36 +0000</pubDate>
                        <description><![CDATA[@robotbuilder 
The main purpose of my post was to address the misconception I&#039;ve seen in a number of posts on this forum to the effect of, &quot;There&#039;s no C++ code here, We use mainly C.&quot; The o...]]></description>
                        <content:encoded><![CDATA[<p>@robotbuilder </p>
<p>The main purpose of my post was to address the misconception I've seen in a number of posts on this forum to the effect of, "There's no C++ code here, We use mainly C." The opposite is true. AFAICT, there's nothing but C++. I think it's important for people to know what language they're programming in.</p>
<p>There's nothing to get excited about. You don't have to change how you program. You just need to be aware that it's C++ and you can use it's features.</p>
<p>SDL is an curious case. The author and maintainers are committed to using only C to program in. IIRC, they do provide C++ bindings. I haven't looked at the code closely but I've always had the feeling that it would benefit with C++. ATST, they've done a wonderful job so far so I don't want to "mess with success."</p>
<p><em>"Is the AI response accurate?"</em></p>
<p>For the most part, yes but...the differences are less language issues and more program structure issues.</p>
<p><em>"Arduino uses real C++ under the hood"</em></p>
<p>This is confused. There's no <em>"under the hood"</em> here. You're using C++ directly. Like saying underneath this post is English text.</p>
<p><em>"It hides some complexity"</em></p>
<p>The items are all program structure and not language issues.</p>
<p><em>"It adds its own libraries and functions"</em></p>
<p>Again, program structure issues.</p>
<p><em>"You can still use real C++ features"</em></p>
<p>That's accurate.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/c-plus-plus/">C++</category>                        <dc:creator>TFMcCarthy</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/c-plus-plus/its-c-not-c-c/#post-52466</guid>
                    </item>
							        </channel>
        </rss>
		