<?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/">
  <channel>
    <title>DEV Community: Pushpender Singh</title>
    <description>The latest articles on DEV Community by Pushpender Singh (@pushpend3r).</description>
    <link>https://dev.to/pushpend3r</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F120685%2F5d4e6f5b-5aff-46aa-be3b-617c33079b26.jpg</url>
      <title>DEV Community: Pushpender Singh</title>
      <link>https://dev.to/pushpend3r</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pushpend3r"/>
    <language>en</language>
    <item>
      <title>C++ - Operator Overloading</title>
      <dc:creator>Pushpender Singh</dc:creator>
      <pubDate>Mon, 30 Dec 2019 10:14:59 +0000</pubDate>
      <link>https://dev.to/pushpend3r/c-operator-overloading-829</link>
      <guid>https://dev.to/pushpend3r/c-operator-overloading-829</guid>
      <description>&lt;h1&gt;
  
  
  What is it?
&lt;/h1&gt;

&lt;p&gt;Giving the normal C++ operators such as &lt;strong&gt;+&lt;/strong&gt;, &lt;strong&gt;-&lt;/strong&gt;, &lt;strong&gt;++&lt;/strong&gt;, &lt;strong&gt;*&lt;/strong&gt;, additional meaning when they are applied to user defined type such as &lt;strong&gt;class&lt;/strong&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  But why?
&lt;/h1&gt;

&lt;p&gt;Let's say we have created a class called &lt;strong&gt;counter&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Counter&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;private:&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nl"&gt;public:&lt;/span&gt;
    &lt;span class="n"&gt;Counter&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;

    &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="n"&gt;inc_Count&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;And a object of class &lt;em&gt;Counter&lt;/em&gt; name &lt;strong&gt;c1&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="n"&gt;Counter&lt;/span&gt; &lt;span class="n"&gt;c1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;So in this case if we want to increment &lt;strong&gt;count&lt;/strong&gt; variable, we have to call &lt;strong&gt;inc_Count()&lt;/strong&gt; member function.&lt;/p&gt;

&lt;p&gt;Like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="n"&gt;c1&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;inc_count&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Don't you think it would be great if we can just do this:-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="n"&gt;c1&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Postfix&lt;/span&gt;

&lt;span class="c1"&gt;// or&lt;/span&gt;

&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="n"&gt;c1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Prefix&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;If yes, then Operator Overloading can help us.&lt;/p&gt;

&lt;h1&gt;
  
  
  Overload "++"
&lt;/h1&gt;

&lt;p&gt;This operator can be use in two notation:-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Prefix - first operator then variable/object&lt;/li&gt;
&lt;li&gt;Postfix - first variable then operator&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Note:- In our example it doesn't matter, both Prefix or Postfix have same effect.&lt;/p&gt;

&lt;p&gt;Let's explore Prefix first&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefix
&lt;/h2&gt;

&lt;p&gt;Add this into class &lt;strong&gt;Counter&lt;/strong&gt; under &lt;strong&gt;Public&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="k"&gt;operator&lt;/span&gt; &lt;span class="o"&gt;++&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;To overload an operator we create a member function with &lt;strong&gt;operator&lt;/strong&gt; keyword.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;void&lt;/strong&gt; is return type&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;operator&lt;/strong&gt; is keyword&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;++&lt;/strong&gt; is an operator&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;()&lt;/strong&gt; are parenthesis with no parameters&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;{}&lt;/strong&gt; are curly braces - it is function body&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now you can do this:-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="n"&gt;c1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Postfix
&lt;/h2&gt;

&lt;p&gt;Add this into class &lt;strong&gt;Counter&lt;/strong&gt; under &lt;strong&gt;Public&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="k"&gt;operator&lt;/span&gt; &lt;span class="o"&gt;++&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Only difference between Prefix and Postfix is, in Postfix we specify &lt;em&gt;int&lt;/em&gt; in &lt;strong&gt;()&lt;/strong&gt; parenthesis (because how C++ Compiler know we want to do Prefix or Postfix) and in &lt;strong&gt;function body&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now you can do this:-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="n"&gt;c1&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;You can do same with &lt;strong&gt;--&lt;/strong&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Warning
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;You can't overload &lt;strong&gt;::&lt;/strong&gt;, &lt;strong&gt;.&lt;/strong&gt;, &lt;strong&gt;-&amp;gt;&lt;/strong&gt;, &lt;strong&gt;?:&lt;/strong&gt; operators.&lt;/li&gt;
&lt;li&gt;You can't create new ones.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is more if you want to learn, follow this &lt;a href="https://github.com/Pushpender-Thakur/myDevAssets/raw/master/object-oriented-programming-in-c-4th-edition.pdf"&gt;pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it guys.&lt;br&gt;
Have a nice day.&lt;/p&gt;

&lt;p&gt;If you find anything incorrect or know more about it let me know in the comments.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>cpp</category>
      <category>programming</category>
    </item>
    <item>
      <title>C++ - Objects &amp; Classes</title>
      <dc:creator>Pushpender Singh</dc:creator>
      <pubDate>Thu, 19 Dec 2019 07:31:31 +0000</pubDate>
      <link>https://dev.to/pushpend3r/c-objects-classes-27jd</link>
      <guid>https://dev.to/pushpend3r/c-objects-classes-27jd</guid>
      <description>&lt;h1&gt;
  
  
  Class
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;Class is a user defined datatype.&lt;/li&gt;
&lt;li&gt;It contains variables and functions.&lt;/li&gt;
&lt;li&gt;It is used to create Objects.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Think of it like a blueprint.&lt;/p&gt;

&lt;h1&gt;
  
  
  Object
&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;It is instance of a class.&lt;/li&gt;
&lt;li&gt;One class can create as many objects.&lt;/li&gt;
&lt;li&gt;It represents &lt;strong&gt;real world entity&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;sometime called instance variable.&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Analogy
&lt;/h1&gt;

&lt;p&gt;Let's you are an architect and you designed a blueprint of a house. Your designed blueprint is amazing that so many people want to make house out of it. So you show them your blueprint. Finally everyone have their &lt;em&gt;dream&lt;/em&gt; houses. In this case your blueprint is called &lt;strong&gt;class&lt;/strong&gt; and houses are called &lt;strong&gt;objects&lt;/strong&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  Some Formal Terms
&lt;/h1&gt;

&lt;p&gt;Variable in Object = Member Data&lt;br&gt;
Function in Object = Member Function&lt;/p&gt;

&lt;p&gt;(Note:- &lt;em&gt;some programming languages, member functions called &lt;b&gt;methods&lt;/b&gt;&lt;/em&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  How to define class?
&lt;/h2&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;className&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;private:&lt;/span&gt;
    &lt;span class="c1"&gt;// Member Data&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nl"&gt;public:&lt;/span&gt;
    &lt;span class="c1"&gt;// Member Function&lt;/span&gt;
    &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="n"&gt;showdata&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;  
    &lt;span class="n"&gt;std&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;cout&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;std&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;endl&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="c1"&gt;// private and public are called access modifiers.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  How to create Object?
&lt;/h2&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="n"&gt;className&lt;/span&gt; &lt;span class="n"&gt;objectName&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Calling Member Function
&lt;/h2&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="n"&gt;objectName&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;showdata&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="cm"&gt;/* Here "dot" in between object and member function
called "class member access operator".
*/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h1&gt;
  
  
  Constructor
&lt;/h1&gt;

&lt;p&gt;A Constructor is a member function that is executed automatically whenever an object is created.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to define a Constructor?
&lt;/h2&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;className&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;public:&lt;/span&gt;
    &lt;span class="n"&gt;classname&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// constructor body&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="cm"&gt;/*
1. It must be same name as class name.
2. It have no return type.
*/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h1&gt;
  
  
  Destructor
&lt;/h1&gt;

&lt;p&gt;A Destructor is a member function that is executed automatically whenever an object is destroyed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to define a Destructor?
&lt;/h2&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;className&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="nl"&gt;public:&lt;/span&gt;
    &lt;span class="o"&gt;~&lt;/span&gt;&lt;span class="n"&gt;classname&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// Destructor body&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="cm"&gt;/*
1. It must be same name as class name.
2. It have no return type.
*/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;References:-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.geeksforgeeks.org/c-classes-and-objects/"&gt;https://www.geeksforgeeks.org/c-classes-and-objects/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://amzn.to/2PBRuZ6"&gt;https://amzn.to/2PBRuZ6&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's it guys.&lt;/p&gt;

&lt;p&gt;If you find anything incorrect or know more about it let me know in the comments.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>C++ - Variables</title>
      <dc:creator>Pushpender Singh</dc:creator>
      <pubDate>Sun, 15 Dec 2019 07:48:21 +0000</pubDate>
      <link>https://dev.to/pushpend3r/c-variables-3352</link>
      <guid>https://dev.to/pushpend3r/c-variables-3352</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yME_2wyM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/Pushpender-Thakur/myDevAssets/master/asas.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yME_2wyM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/Pushpender-Thakur/myDevAssets/master/asas.png"&gt;&lt;/a&gt;&lt;br&gt;
A &lt;strong&gt;variable&lt;/strong&gt; in simple terms is a storage place which has some memory allocated to it. &lt;/p&gt;

&lt;p&gt;Think of it like a box where you can put your data into.&lt;/p&gt;

&lt;h3&gt;
  
  
  Terms
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Declaration&lt;/strong&gt;:- specify variable name and it’s data type.&lt;br&gt;
&lt;strong&gt;Definition&lt;/strong&gt;:- Declaration + assign memory to it.&lt;br&gt;
&lt;strong&gt;Initialization&lt;/strong&gt;:- put value into the box.&lt;br&gt;
&lt;strong&gt;Datatype&lt;/strong&gt;:- size of the box&lt;br&gt;
&lt;strong&gt;Variable Name&lt;/strong&gt;: name of the box.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Create a Variable?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;First Method
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="cm"&gt;/*
int = datatype
a = variable name
12 = value
*/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Second Method
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;};&lt;/span&gt; &lt;span class="c1"&gt;// called uniform initialization&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Third Method
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;a&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// called constructor initialization&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;:- &lt;em&gt;All these three called definition + initialization of a variable.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;References for more information:-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://data-flair.training/blogs/variables-in-c-and-c-plus-plus/"&gt;https://data-flair.training/blogs/variables-in-c-and-c-plus-plus/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.cplusplus.com/doc/tutorial/variables/"&gt;http://www.cplusplus.com/doc/tutorial/variables/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.geeksforgeeks.org/c-data-types/"&gt;https://www.geeksforgeeks.org/c-data-types/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's it guys. Have a good day.&lt;/p&gt;

&lt;p&gt;If you find anything incorrect or know more about it let me know in the comments.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>C++ - The Introduction</title>
      <dc:creator>Pushpender Singh</dc:creator>
      <pubDate>Mon, 02 Dec 2019 10:51:25 +0000</pubDate>
      <link>https://dev.to/pushpend3r/c-the-introduction-4gje</link>
      <guid>https://dev.to/pushpend3r/c-the-introduction-4gje</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--m8dDBzpr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://upload.wikimedia.org/wikipedia/commons/1/18/ISO_C%252B%252B_Logo.svg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--m8dDBzpr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://upload.wikimedia.org/wikipedia/commons/1/18/ISO_C%252B%252B_Logo.svg" alt="C++ Logo"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;What is C++?&lt;/h1&gt;

&lt;p&gt;C++ is the Programming Language use to create computer programs.&lt;/p&gt;

&lt;p&gt;It is a &lt;b&gt;Cross Platform Language&lt;/b&gt; means programs made in c++ are able to run on different platforms like Windows/Linux etc with no or little modifications.&lt;/p&gt;

&lt;p&gt;It was developed by Bjarne Stroustrup at Bell labs in 1979.&lt;/p&gt;

&lt;p&gt;It is a Object Oriented Language (Note:- &lt;i&gt;will discuss about it&lt;/i&gt;).&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h1&gt;How to Create Programs in C++?&lt;/h1&gt;

&lt;p&gt;To do that we need :-&lt;/p&gt;

&lt;h2&gt;Hard way&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Text Editor :- Where you type code. It could be Notepad but VSCode will be better.&lt;/li&gt;
&lt;li&gt;Compiler:- who convert our file into computer's understandable form.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Note:- file extension should be &lt;b&gt;.cpp&lt;/b&gt; and compiler will be according to your platform (Windows/Linux etc).&lt;/p&gt;

&lt;h2&gt;Easy Way&lt;/h2&gt;

&lt;p&gt;Just download one of these softwares:-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;DevC++ (&lt;a href="https://sourceforge.net/projects/orwelldevcpp/"&gt;Link&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Code::Blocks (&lt;a href="http://www.codeblocks.org/downloads"&gt;Link&lt;/a&gt;)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Note:- These are called IDEs (Integrated Development Environment).&lt;br&gt;
Simply put &lt;b&gt;Text Editor + Compiler = IDE&lt;/b&gt;.&lt;/p&gt;

&lt;h2&gt;Super Easy way&lt;/h2&gt;

&lt;p&gt;There are Online C++ Compilers:- &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.onlinegdb.com/online_c++_compiler"&gt;Link 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.tutorialspoint.com/compile_cpp_online.php"&gt;Link 2&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;#Important terms&lt;/h1&gt;

&lt;ol&gt;
&lt;li&gt;Source File :- File you create with text editor.&lt;/li&gt;
&lt;li&gt;Executable File :- File that computer can understand/run directly.&lt;/li&gt;
&lt;li&gt;Compilation :- Process of converting source file into Executable file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CONRI9ju--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://media.geeksforgeeks.org/wp-content/cdn-uploads/20190430122723/cpp-program-compilation3-1024x375.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CONRI9ju--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://media.geeksforgeeks.org/wp-content/cdn-uploads/20190430122723/cpp-program-compilation3-1024x375.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it for today.&lt;/p&gt;

&lt;p&gt;If you find anything incorrect or know about it let me know in the comments it would be really appreciated.&lt;/p&gt;

&lt;p&gt;Bye Guys Have a good day.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>beginners</category>
    </item>
    <item>
      <title>My Intro!!</title>
      <dc:creator>Pushpender Singh</dc:creator>
      <pubDate>Sun, 01 Dec 2019 07:16:06 +0000</pubDate>
      <link>https://dev.to/pushpend3r/my-intro-kd0</link>
      <guid>https://dev.to/pushpend3r/my-intro-kd0</guid>
      <description>&lt;p&gt;Hello DEVs,&lt;/p&gt;

&lt;p&gt;My name is Pushpender Thakur (nickname Piyush). I am a Student.&lt;br&gt;
Currently pursuing B.C.A from Pt. J.L.N Govt College, Faridabad.&lt;/p&gt;

&lt;p&gt;I am starting to learn C++. So i have an idea that as i learn i will create post about the topics i'll learn.&lt;br&gt;
If you guys have more ideas about it. Let me know in the comments&lt;/p&gt;

&lt;p&gt;So this is it.&lt;br&gt;
thank you guys for your time&lt;/p&gt;

</description>
      <category>firstpost</category>
    </item>
  </channel>
</rss>
