<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>C&#43;&#43; on Daniel Pomfret</title>
    <link>https://pomfret.uk/tags/c&#43;&#43;/</link>
    <description>Recent content in C&#43;&#43; on Daniel Pomfret</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Daniel Pomfret</copyright>
    <lastBuildDate>Mon, 05 Dec 2016 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://pomfret.uk/tags/c++/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Shorthand If/Else (ternary) Statements - C#, C&#43;&#43;, Python &amp; PHP</title>
      <link>https://pomfret.uk/posts/shorthand-ifelse-ternary-statements-c-c-python-php/</link>
      <pubDate>Mon, 05 Dec 2016 00:00:00 +0000</pubDate>
      <guid>https://pomfret.uk/posts/shorthand-ifelse-ternary-statements-c-c-python-php/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve been going through the multiple languages I know recently, and refreshing my knowledge. After working with Python for a few months, I found going back to C# very easy.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve noticed many similarities except for a few; In my opinion the ternary operator slightly differs from each language. So I&amp;rsquo;d thought I&amp;rsquo;d write these findings down for future use.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;C# &amp;amp; C++&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;variable = (input &amp;gt; 0) ? &amp;rsquo;true&amp;rsquo; : &amp;lsquo;false&amp;rsquo;;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
