create account

C++ : Learn to code . history , advantages , disadvantages of C++ language by wajahatsardar

View this thread on: hive.blogpeakd.comecency.com
· @wajahatsardar · (edited)
$0.30
C++ : Learn to code . history , advantages , disadvantages of C++ language
<html>
<h1>Learn to code</h1>
<p>Today i am going to tell about &nbsp;Computer language known as C++. &nbsp;it's history , uses , advantages ,disadvantages &nbsp;and a simple program in C++.</p>
<p><br></p>
<ul>
  <li>History&nbsp;</li>
  <li>Advantages</li>
  <li>Disadvantages</li>
  <li>Simple Program</li>
</ul>
<p><br></p>
<p><img src="https://udemy-images.udemy.com/course/750x422/633832_b4e7_2.jpg" width="750" height="422"/></p>
<p><br></p>
<h1>History :</h1>
<p><br></p>
<p><img src="https://image.slidesharecdn.com/historyofcbyihsanwassan-160502190625/95/history-of-c-4-638.jpg?cb=1462216034" width="638" height="479"/></p>
<p>&nbsp;The C++ programming language has a history going back to 1979, when <a href="http://www2.research.att.com/~bs/">Bjarne Stroustrup</a> was doing work for his Ph.D. thesis. One of the languages Stroustrup had the opportunity to work with was a language called Simula, which as the name implies is a language primarily designed for simulations. <a href="http://staff.um.edu.mt/jskl1/talk.html">The Simula 67 language</a> - which was the variant that Stroustrup worked with - is regarded as the first language to support the object-oriented programming paradigm. Stroustrup found that this paradigm was very useful for software development, however the Simula language was far too slow for practical use.</p>
<p><br></p>
<p><br>
</p>
<p>Shortly thereafter, he began work on "C with Classes", which as the name implies was meant to be a superset of the C language. His goal was to add object-oriented programming into the C language, which was and still is a language well-respected for its portability without sacrificing speed or low-level functionality. His language included classes, basic inheritance, inlining , default function arguments, and strong type checking in addition to all the features of the C language .</p>
<p><br></p>
<p>&nbsp;The first C with Classes compiler was called Cfront, which was derived from a C compiler called CPre. It was a program designed to translate C with Classes code to ordinary C.&nbsp;</p>
<p><br></p>
<p><img src="http://www.cs.uah.edu/~rcoleman/Common/History/Images/CPPHistory01.jpg" width="750" height="157"/></p>
<p><br></p>
<p>&nbsp;In 1983, the name of the language was changed from C with Classes to C++. The ++ operator in the C language is an operator for incrementing a variable, which gives some insight into how Stroustrup regarded the language. Many new features were added around this time, the most notable of which are virtual functions overloading<a href="http://www.cplusplus.com/doc/tutorial/functions2/#function_overload"> </a>, references with the &amp; symbol, the const keyword, and single-line comments using two forward slashes .</p>
<p>&nbsp;In 1985, the first edition of the C++ programming language was released, which became the definitive reference for the language, as there was not yet an official standard.The first commercial implementation of C++ was released in October of the same year.</p>
<p>&nbsp;C++ is standardized by an ISO working group known as JTC1 /SC22 / WG21. So far, it has published four revisions of the C++ standard and is currently working on the next revision,C++2107.In 1998, the ISO working group standardized C++ for the first time as <em>ISO/IEC 14882:1998</em>, which is informally known as <em>C++98</em>. In 2003, it published a new version of the C++ standard called <em>ISO/IEC 14882:2003</em>, which fixed problems identified in C++98.The next major revision of the standard was informally referred to as "C++0x", but it was not released until 2011. C++11 included many additions to both the core language and the standard library .</p>
<p><br></p>
<h1>&nbsp;Advantages :</h1>
<p><br></p>
<ul>
  <li>Object oriented</li>
  <li>Portable language (writing a program irrespective of operating system as well as Hardware)</li>
  <li>Low-level language like Assembly language on Machine language called portable.</li>
  <li>C++ use multi-paradigm programming. The Paradigm means the style of programming .paradigm concerned about logics, structure, and procedure of the program. <a href="https://tekslate.com/class-in-c-with-examples/">C++</a> is multi-paradigm means it follows three paradigm Generic, Imperative, Object Oriented.</li>
  <li>It is useful for the low-level programming language and very efficient for general purpose.</li>
  <li>C++ provide performance and memory efficiency.</li>
  <li>It provides a high-level abstraction.</li>
  <li>In the language of the problem domain.</li>
  <li>C++ is compatible with&nbsp;C.</li>
  <li>C++ used reusability of code.</li>
  <li>C++ used inheritance, polymorphasm.</li>
</ul>
<p>With the use of C++ in development of modern games, operating systems, browsers, and much more, it is safe to say that C++ is irreplaceable.<br>
</p>
<blockquote>Many major applications like</blockquote>
<ul>
  <li><code>Adobe Products like Photoshop, Illustrator, InDesign</code></li>
  <li><code>Amazon - one of the biggest e-commerce sites</code></li>
  <li><code>Autodesk products for Computer Aided Design</code></li>
  <li><code>Facebook - social networking site are heavy C++ centric product</code></li>
</ul>
<blockquote>Moreover, the fact that there’s a huge community improving C++ on every iteration means that it is only expected to be used even more in the coming future.&nbsp;</blockquote>
<blockquote>&nbsp;</blockquote>
<p><img src="https://udemy-images.udemy.com/course/750x422/17503_7fa8_9.jpg" width="750" height="422"/></p>
<p><br></p>
<blockquote>&nbsp;<strong>C++ job opportunities and salary</strong><br>
<br>
C++ developers can expect an average salary yearly 100,000<a href="https://gooroo.io/analytics/skill/Cpp/#.V8-qYfl96Uk"> </a>&nbsp;salary with over 7,700 jobs advertised every month.<br>
<br>
The requirement of jobs comes mostly from game development, rendering engines and the windows applications.</blockquote>
<h1>Disadvantages :</h1>
<p><br></p>
<ul>
  <li>It has less security</li>
  <li>C++ has a bootable</li>
  <li>Complex in a very large high-level program.</li>
  <li>Used for platform specific application commonly.</li>
  <li>For a particular operating system or platform, the library set has usually chosen that locks.</li>
  <li>When C++ used for web applications complex and difficult to debug.</li>
  <li>C++ can’t support garbage collection.</li>
  <li>C++ is not secure because it has a pointer, friend function, and global variable.</li>
  <li>No support for threads built in.</li>
</ul>
<p><br></p>
<p><br></p>
<h1>Simple program in C++ :</h1>
<p>// This symbol(//) is used for comment for single line.</p>
<p>/* &nbsp;This symbol (start symbol /* &nbsp;, End symbol*/) is used for multi line comment &nbsp;*/</p>
<p>&nbsp;</p>
<p><img src="http://1.bp.blogspot.com/-xKQSxlgqhoY/VRTdNkMpT6I/AAAAAAAAAsc/UgmXjcHKBC4/s1600/prime%2Bnumber.png" width="1024" height="768"/></p>
<p>#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p><br></p>
<p>int main()</p>
<p>{</p>
<p>&nbsp;&nbsp;int n, i;</p>
<p>&nbsp;&nbsp;bool isPrime = true;</p>
<p><br></p>
<p>&nbsp;&nbsp;cout &lt;&lt; "Enter a positive integer: ";</p>
<p>&nbsp;&nbsp;cin &gt;&gt; n;</p>
<p><br></p>
<p>&nbsp;&nbsp;for(i = 2; i &lt;= n / 2; ++i)</p>
<p>&nbsp;&nbsp;{</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(n % i == 0)</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;isPrime = false;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;if (isPrime)</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout &lt;&lt; "This is a prime number";</p>
<p>&nbsp;&nbsp;else</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cout &lt;&lt; "This is not a prime number";</p>
<p><br></p>
<p>&nbsp;&nbsp;return 0;</p>
<p>}</p>
<blockquote><strong>Output</strong></blockquote>
<blockquote>Enter a positive integer: 29<br>
<br>
This is a prime number.</blockquote>
<blockquote>&nbsp;This program takes a positive integer from user and stores it in variable n.Then, <code>for</code> loop is executed which checks whether the number entered by user is perfectly divisible by i or not.The foor loop initiates with an initial value of i equals to 2 and increasing the value of i in each iteration.If the number entered by user is perfectly divisible by i then, <em>isPrime</em>&nbsp;is set to false and the number will not be a prime number.But, if the number is not perfectly divisible by i until test condition <code>i &lt;= n/2</code> is true means, it is only divisible by 1 and that number itself.So, the given number is a prime number.&nbsp;</blockquote>
<p><br></p>
<p><br></p>
<p><img src="https://steemitimages.com/0x0/http://i.imgur.com/v4Qr59I.gif" width="1277" height="240"/></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><img src="https://steemitimages.com/0x0/https://media.giphy.com/media/13CJfenolX5Mk/giphy.gif" width="480" height="270"/></p>
<p><br></p>
<p>Follow @wajahatsardar</p>
</html>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorwajahatsardar
permlinkc-learn-to-code-history-advantages-disadvantages-of-c-language
categoryhistory
json_metadata{"tags":["history","coding","computerlanguage","bussy","include"],"users":["wajahatsardar"],"image":["https://udemy-images.udemy.com/course/750x422/633832_b4e7_2.jpg","https://image.slidesharecdn.com/historyofcbyihsanwassan-160502190625/95/history-of-c-4-638.jpg?cb=1462216034","http://www.cs.uah.edu/~rcoleman/Common/History/Images/CPPHistory01.jpg","https://udemy-images.udemy.com/course/750x422/17503_7fa8_9.jpg","http://1.bp.blogspot.com/-xKQSxlgqhoY/VRTdNkMpT6I/AAAAAAAAAsc/UgmXjcHKBC4/s1600/prime%2Bnumber.png","https://steemitimages.com/0x0/http://i.imgur.com/v4Qr59I.gif","https://steemitimages.com/0x0/https://media.giphy.com/media/13CJfenolX5Mk/giphy.gif"],"links":["http://www2.research.att.com/~bs/","http://staff.um.edu.mt/jskl1/talk.html","http://www.cplusplus.com/doc/tutorial/functions2/#function_overload","https://tekslate.com/class-in-c-with-examples/","https://gooroo.io/analytics/skill/Cpp/#.V8-qYfl96Uk"],"app":"steemit/0.1","format":"html"}
created2017-11-03 12:27:51
last_update2017-11-03 14:01:18
depth0
children12
last_payout2017-11-10 12:27:51
cashout_time1969-12-31 23:59:59
total_payout_value0.241 HBD
curator_payout_value0.058 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9,042
author_reputation17,242,375,006,979
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id19,347,233
net_rshares143,204,200,336
author_curate_reward""
vote details (28)
@earningbot ·
earningbot upvoted with value of 0.02 on behalf of benilda.
properties (22)
authorearningbot
permlinkre-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t124329995z
categoryhistory
json_metadata{"tags":["history"],"app":"steemit/0.1"}
created2017-11-03 12:43:30
last_update2017-11-03 12:43:30
depth1
children1
last_payout2017-11-10 12:43:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length59
author_reputation29,497,662,872
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,348,292
net_rshares0
@wajahatsardar ·
thanks !!!
properties (22)
authorwajahatsardar
permlinkre-earningbot-re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t124524017z
categoryhistory
json_metadata{"tags":["history"],"app":"steemit/0.1"}
created2017-11-03 12:45:30
last_update2017-11-03 12:45:30
depth2
children0
last_payout2017-11-10 12:45:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation17,242,375,006,979
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,348,435
net_rshares0
@iwant ·
i think its a best information about c
properties (22)
authoriwant
permlinkre-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t191134642z
categoryhistory
json_metadata{"tags":["history"],"app":"steemit/0.1"}
created2017-11-03 19:11:27
last_update2017-11-03 19:11:27
depth1
children0
last_payout2017-11-10 19:11:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length38
author_reputation1,161,424,016,963
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,376,550
net_rshares0
@kidsysco ·
Nice post! It shows a good review of classic C++. It does not sound like English is your first language, so I admire you for learning and practicing. Keep it up!

Maybe you will do C# next? Java would probably be the next logical, historically accurate language to review. C# is the best of both world's and my favorite!
properties (22)
authorkidsysco
permlinkre-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t133129352z
categoryhistory
json_metadata{"tags":["history"],"app":"steemit/0.1"}
created2017-11-03 13:31:27
last_update2017-11-03 13:31:27
depth1
children5
last_payout2017-11-10 13:31:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length320
author_reputation21,789,072,424,361
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,351,877
net_rshares0
@wajahatsardar ·
$0.03
yes English is not my first language but i am working on it to improve..
👍  
properties (23)
authorwajahatsardar
permlinkre-kidsysco-re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t133332544z
categoryhistory
json_metadata{"tags":["history"],"app":"steemit/0.1"}
created2017-11-03 13:33:39
last_update2017-11-03 13:33:39
depth2
children0
last_payout2017-11-10 13:33:39
cashout_time1969-12-31 23:59:59
total_payout_value0.034 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length72
author_reputation17,242,375,006,979
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,352,027
net_rshares16,999,191,731
author_curate_reward""
vote details (1)
@wajahatsardar ·
thanks for your complement. i,ll do on java next because i don,t know about c# and i dont know any thing about c#
properties (22)
authorwajahatsardar
permlinkre-kidsysco-re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t133446905z
categoryhistory
json_metadata{"tags":["history"],"app":"steemit/0.1"}
created2017-11-03 13:34:51
last_update2017-11-03 13:34:51
depth2
children3
last_payout2017-11-10 13:34:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length113
author_reputation17,242,375,006,979
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,352,112
net_rshares0
@kidsysco ·
Sounds great! Here is a funny one for you...

https://i.redd.it/bwyibvl7plvz.jpg
properties (22)
authorkidsysco
permlinkre-wajahatsardar-re-kidsysco-re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t133847274z
categoryhistory
json_metadata{"tags":["history"],"image":["https://i.redd.it/bwyibvl7plvz.jpg"],"app":"steemit/0.1"}
created2017-11-03 13:38:48
last_update2017-11-03 13:38:48
depth3
children2
last_payout2017-11-10 13:38:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length80
author_reputation21,789,072,424,361
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,352,404
net_rshares0
@minnowbooster ·
$0.00
@minnowbooster upvoted this post!
![Calling @originalworks :)](http://minnowshares.net/upgoat/?user=wajahatsardar&receiver=wajahatsardar&sender=mirhimayun&value=0.11&hash=181)
*<sub>img credz: pixabay.com</sub>*
*Nice, you got a 94.0% @mirhimayun upgoat, thanks to @wajahatsardar*
*Want a boost? [Minnowbooster's](https://steemit.com/minnowbooster/@minnowbooster/6rt2mn-introducing-minnowbooster-beta) got your back!*
    
👍  
properties (23)
authorminnowbooster
permlinkcomment-1510233016028
categoryhistory
json_metadata{"app":"⇐stoned⇔pastries⇒/¹.².³","format":"markdown","tags":["minnowbooster"]}
created2017-11-09 13:10:15
last_update2017-11-09 13:10:15
depth1
children1
last_payout2017-11-16 13:10:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.002 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length389
author_reputation230,546,282,483,083
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries
0.
accountupgoat
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,866,373
net_rshares10,768,107,955
author_curate_reward""
vote details (1)
@originalworks ·
originalworks
The @OriginalWorks BETA V2 bot has upvoted(0.5%) and checked this post!
Some similarity seems to be present here:
http://www.cplusplus.com/info/history/
This is an early BETA version. If you cited this source, then ignore this message! Reply if you feel this is an error.
properties (22)
authororiginalworks
permlinkre-comment-1510233016028-20171109t131137
categoryhistory
json_metadata"{"app": "pysteem/0.5.4"}"
created2017-11-09 13:11:36
last_update2017-11-09 13:11:36
depth2
children0
last_payout2017-11-16 13:11:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length271
author_reputation79,292,026,602,057
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,866,476
net_rshares0
@sardar-semi ·
wow very nice post
properties (22)
authorsardar-semi
permlinkre-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20180128t001820279z
categoryhistory
json_metadata{"tags":["history"],"app":"steemit/0.1"}
created2018-01-29 12:21:06
last_update2018-01-29 12:21:06
depth1
children0
last_payout2018-02-05 12:21:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length18
author_reputation12,227,855,355
root_title"C++ : Learn to code . history , advantages , disadvantages of C++ language"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id33,276,599
net_rshares0