<?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: Khandaker Akif Razzak</title>
    <description>The latest articles on DEV Community by Khandaker Akif Razzak (@omiakif).</description>
    <link>https://dev.to/omiakif</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%2F476015%2Ff3b28f21-8b1e-4838-8623-2e7994af108a.png</url>
      <title>DEV Community: Khandaker Akif Razzak</title>
      <link>https://dev.to/omiakif</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omiakif"/>
    <language>en</language>
    <item>
      <title>Journal Entry #2: Hello World! ... The first code</title>
      <dc:creator>Khandaker Akif Razzak</dc:creator>
      <pubDate>Mon, 28 Sep 2020 18:10:23 +0000</pubDate>
      <link>https://dev.to/omiakif/journal-entry-2-hello-world-the-first-code-3hp2</link>
      <guid>https://dev.to/omiakif/journal-entry-2-hello-world-the-first-code-3hp2</guid>
      <description>&lt;p&gt;Today, I wrote my first "Hello World" code in C++. This seems to be the first code every developer writes. &lt;/p&gt;

&lt;p&gt;Before writing the code, there is a prerequisite. As you see, every code needs to be translated into machine code for computers to understand. The C++ code also needs to be translated into machine code. Compilers do the translating for us. &lt;/p&gt;

&lt;p&gt;C++ requires a compiler named GNU compiler collection ... GCC in short. This compiler seems like a common compiler for many programming languages. I had to install it before compiling my &lt;em&gt;Hello_world.cpp&lt;/em&gt; file. All the installation and code compilation was done from terminal and the code was written in nano text editor. I performed all the tasks in Ubuntu 20.04. &lt;/p&gt;

&lt;p&gt;All the steps to write the Hello World code is as follows: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt;&lt;br&gt;
Fire up a terminal by pressing &lt;em&gt;ctrl+alt+T&lt;/em&gt; and install G++ (Linux OS) by typing&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$sudo apt install g++
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Do not forget to type your password. You will be seeing a bunch of lines running down after that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt;&lt;br&gt;
Confirm if g++ is installed or not by typing&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$g++ --version
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;You will see an output like this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;g++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt;&lt;br&gt;
Create a new directory in your preferred location and change directory to the one you created. You might have to use sudo to create a directory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$sudo mkdir hello_world
$cd hello_world
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 4&lt;/strong&gt;&lt;br&gt;
Create a text file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$touch hello_world.cpp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 5&lt;/strong&gt;&lt;br&gt;
Edit the file using nano editor. In other words, type nano with the cpp file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$sudo nano hello_world.cpp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;A command-line editor will open. Here you will have to writer your code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6&lt;/strong&gt;&lt;br&gt;
Now the moment of truth! You write your first hello world code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;
int main(){
     cout&amp;lt;&amp;lt;"Hello World!" &amp;lt;&amp;lt;endl;
     return 0;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 7&lt;/strong&gt;&lt;br&gt;
Create a binary file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$g++ hello_world.cpp -o hello_world
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 8&lt;/strong&gt;&lt;br&gt;
Now run the binary file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$./hello_world
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;This command will print a string in the terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hello World!
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;And Wala! You have your first code written in C++.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>nano</category>
      <category>devjournal</category>
    </item>
    <item>
      <title>Journal Entry #1: My resolve</title>
      <dc:creator>Khandaker Akif Razzak</dc:creator>
      <pubDate>Sun, 27 Sep 2020 15:34:10 +0000</pubDate>
      <link>https://dev.to/omiakif/journal-entry-1-my-resolve-3di8</link>
      <guid>https://dev.to/omiakif/journal-entry-1-my-resolve-3di8</guid>
      <description>&lt;p&gt;I have decided to pursue a career in software engineering. But my non-CS degree does not allow me to become one. To keep track of my activities and proper evaluation of my studies and code development, I have decided to post most of my codes daily in the dev.to community. This platform will be my code journal. I believe my effort and resolve will lead me to become a software engineer one day. My blogs will tell me how much I have come from writing a "hello world" code to writing industrial-grade code.&lt;/p&gt;

</description>
      <category>devjournal</category>
      <category>software</category>
      <category>engineering</category>
    </item>
  </channel>
</rss>
