<?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: Ram Kumar Shukla</title>
    <description>The latest articles on DEV Community by Ram Kumar Shukla (@ramkshukla).</description>
    <link>https://dev.to/ramkshukla</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%2F477147%2Fc10af193-6795-4f2f-bf00-701b55163f18.png</url>
      <title>DEV Community: Ram Kumar Shukla</title>
      <link>https://dev.to/ramkshukla</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ramkshukla"/>
    <language>en</language>
    <item>
      <title>class and objects in c++</title>
      <dc:creator>Ram Kumar Shukla</dc:creator>
      <pubDate>Mon, 14 Dec 2020 00:49:07 +0000</pubDate>
      <link>https://dev.to/ramkshukla/class-and-objects-in-c-3d4g</link>
      <guid>https://dev.to/ramkshukla/class-and-objects-in-c-3d4g</guid>
      <description>&lt;p&gt;hey there, today we will talk about class and instances in c++. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Class&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;c++ supports object-oriented programming and often called user defined data types.&lt;br&gt;
A class is a blueprint of the object. Data and functions within a class are called member of the class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;definition of class

class Circle{
      public:
        double radius; //radius of the circle
}; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;class definition is starts with keyword class followed by classname. Here public means members of the class are accessible from outside the class from anywhere within scope of the class.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Class Objects&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Circle circle1; //Declare circle1 of type Circle
Circle circle2; //Declare circle2 of type Circle
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;class objects/instances are defined by exactly the same way we define basic variables. class name followed by object name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;cmath&amp;gt;

using namespace std;

class Circle{
     public:
       double radius;
};

int main(){
  //Objects instantiations
Circle circle1;
Circle circle2;
double area = 0.0; //Store the area of the circle here

circle1.radius = 2.1;
circle2.radius = 5.3;

// Area of the circle1
area = 3.14 * pow(circle1.radius, 2);
cout &amp;lt;&amp;lt; "Area of the circle is " &amp;lt;&amp;lt; area &amp;lt;&amp;lt; endl;

// Area of the circle2
area = 3.14 * pow(circle2.radius, 2);
cout &amp;lt;&amp;lt; "Area of the circle is " &amp;lt;&amp;lt; area &amp;lt;&amp;lt; endl;

return 0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;when above code compiled and executed, it will produce a follwing result.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Area of the circle is 13.8474
Area of the circle is 88.2026
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>cpp</category>
      <category>programming</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>what is buffer in c/c++?</title>
      <dc:creator>Ram Kumar Shukla</dc:creator>
      <pubDate>Sat, 12 Dec 2020 23:59:49 +0000</pubDate>
      <link>https://dev.to/ramkshukla/what-is-buffer-is-c-c-1m6p</link>
      <guid>https://dev.to/ramkshukla/what-is-buffer-is-c-c-1m6p</guid>
      <description>&lt;p&gt;Buffer is a term that refers to a block of computer memory that serves as temporary storage area is called buffer. All standard input and output device contains an input and output buffer. &lt;br&gt;
&lt;strong&gt;Some of the example of the buffer...&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Computer which uses RAM as buffer.&lt;/li&gt;
&lt;li&gt;In a video streaming a sections of the movie you are streaming downloads to your device to stay ahead of your viewing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Data can placed in software buffer before it is processed, writing data to a buffer is much faster than direct operation.&lt;br&gt;
using a buffer while programing in C/c++ speeds up calculation process. Buffers come in handy when a difference exists between the rate data is received and the rate it is processed.&lt;/p&gt;

&lt;p&gt;If you want to store a array of characters after a some input to store that in desired location, then you must need to clear unwanted buffer first so as to get the next input in desired location. &lt;/p&gt;

&lt;p&gt;cin.ignore() is used to ignore or clear one or more characters from the input buffer.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>productivity</category>
      <category>programming</category>
      <category>codequality</category>
    </item>
    <item>
      <title>What is Digital Ocean and it's history?</title>
      <dc:creator>Ram Kumar Shukla</dc:creator>
      <pubDate>Fri, 11 Dec 2020 15:30:12 +0000</pubDate>
      <link>https://dev.to/ramkshukla/what-is-digital-ocean-and-it-s-history-55dp</link>
      <guid>https://dev.to/ramkshukla/what-is-digital-ocean-and-it-s-history-55dp</guid>
      <description>&lt;h3&gt;
  
  
  what is digital ocean?
&lt;/h3&gt;

&lt;p&gt;Digital Ocean is an cloud hosting provider that offer cloud computing services. In January 2018, it achieved the title of being &lt;em&gt;third&lt;/em&gt; largest cloud hosting company in the world. They are highly obsessed to provide a best cloud hosting Plateform from individual developer to large scale business. Digital Ocean is a cloud server providers based on United states of America. Their headquarter operates from New York city and they have lots of Data center across the globe.&lt;/p&gt;

&lt;h3&gt;
  
  
  History
&lt;/h3&gt;

&lt;p&gt;It came into existence on June 24th 2011. Ben and Moisey Uretsky founders of the Digital Ocean. They founded this company that provides individual software develpoer  and small scale startups making it easy for them to host website with one click.&lt;/p&gt;

</description>
      <category>website</category>
      <category>hosting</category>
      <category>digitalocean</category>
    </item>
  </channel>
</rss>
