<html> <h1>Learn to code</h1> <p>Today i am going to tell about Computer language known as C++. it's history , uses , advantages ,disadvantages and a simple program in C++.</p> <p><br></p> <ul> <li>History </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> 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> 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. </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> 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 & symbol, the const keyword, and single-line comments using two forward slashes .</p> <p> 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> 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> 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 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. </blockquote> <blockquote> </blockquote> <p><img src="https://udemy-images.udemy.com/course/750x422/17503_7fa8_9.jpg" width="750" height="422"/></p> <p><br></p> <blockquote> <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> 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>/* This symbol (start symbol /* , End symbol*/) is used for multi line comment */</p> <p> </p> <p><img src="http://1.bp.blogspot.com/-xKQSxlgqhoY/VRTdNkMpT6I/AAAAAAAAAsc/UgmXjcHKBC4/s1600/prime%2Bnumber.png" width="1024" height="768"/></p> <p>#include <iostream></p> <p>using namespace std;</p> <p><br></p> <p>int main()</p> <p>{</p> <p> int n, i;</p> <p> bool isPrime = true;</p> <p><br></p> <p> cout << "Enter a positive integer: ";</p> <p> cin >> n;</p> <p><br></p> <p> for(i = 2; i <= n / 2; ++i)</p> <p> {</p> <p> if(n % i == 0)</p> <p> {</p> <p> isPrime = false;</p> <p> break;</p> <p> }</p> <p> }</p> <p> if (isPrime)</p> <p> cout << "This is a prime number";</p> <p> else</p> <p> cout << "This is not a prime number";</p> <p><br></p> <p> 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> 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> 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 <= n/2</code> is true means, it is only divisible by 1 and that number itself.So, the given number is a prime number. </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>
author | wajahatsardar |
---|---|
permlink | c-learn-to-code-history-advantages-disadvantages-of-c-language |
category | history |
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"} |
created | 2017-11-03 12:27:51 |
last_update | 2017-11-03 14:01:18 |
depth | 0 |
children | 12 |
last_payout | 2017-11-10 12:27:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.241 HBD |
curator_payout_value | 0.058 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 9,042 |
author_reputation | 17,242,375,006,979 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 19,347,233 |
net_rshares | 143,204,200,336 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kidsysco | 0 | 33,412,204,437 | 31% | ||
readmore | 0 | 17,180,114,495 | 43% | ||
mirhimayun | 0 | 53,864,965,858 | 94% | ||
originalworks | 0 | 2,162,559,168 | 0.5% | ||
kirill.shulko | 0 | 396,361,718 | 100% | ||
pavsamojlov | 0 | 389,695,796 | 100% | ||
fivestargroup | 0 | 101,978,750 | 0.02% | ||
tepansh | 0 | 410,397,197 | 100% | ||
okryag | 0 | 423,826,041 | 100% | ||
primetimesports | 0 | 128,315,093 | 0.02% | ||
aymenz | 0 | 19,529,248,824 | 100% | ||
troyn | 0 | 741,821,151 | 100% | ||
vofazev | 0 | 387,929,662 | 100% | ||
helenjile | 0 | 748,556,654 | 100% | ||
chatsezipevas | 0 | 742,053,983 | 100% | ||
nusevs | 0 | 753,262,142 | 100% | ||
munnana | 0 | 386,251,034 | 100% | ||
zarrus | 0 | 394,808,531 | 100% | ||
frajosse | 0 | 392,138,301 | 100% | ||
earningbot | 0 | 8,347,409,739 | 20% | ||
lawyerup | 0 | 205,745,317 | 1% | ||
wajahatsardar | 0 | 943,954,295 | 100% | ||
sardarwajahat | 0 | 1,160,602,150 | 100% | ||
hairflare | 0 | 0 | 100% | ||
engineers-life | 0 | 0 | 100% | ||
ralampay | 0 | 0 | 100% | ||
farben | 0 | 0 | 100% | ||
mfranzwa | 0 | 0 | 100% |
earningbot upvoted with value of 0.02 on behalf of benilda.
author | earningbot |
---|---|
permlink | re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t124329995z |
category | history |
json_metadata | {"tags":["history"],"app":"steemit/0.1"} |
created | 2017-11-03 12:43:30 |
last_update | 2017-11-03 12:43:30 |
depth | 1 |
children | 1 |
last_payout | 2017-11-10 12:43:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 59 |
author_reputation | 29,497,662,872 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,348,292 |
net_rshares | 0 |
thanks !!!
author | wajahatsardar |
---|---|
permlink | re-earningbot-re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t124524017z |
category | history |
json_metadata | {"tags":["history"],"app":"steemit/0.1"} |
created | 2017-11-03 12:45:30 |
last_update | 2017-11-03 12:45:30 |
depth | 2 |
children | 0 |
last_payout | 2017-11-10 12:45:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 10 |
author_reputation | 17,242,375,006,979 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,348,435 |
net_rshares | 0 |
i think its a best information about c
author | iwant |
---|---|
permlink | re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t191134642z |
category | history |
json_metadata | {"tags":["history"],"app":"steemit/0.1"} |
created | 2017-11-03 19:11:27 |
last_update | 2017-11-03 19:11:27 |
depth | 1 |
children | 0 |
last_payout | 2017-11-10 19:11:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 38 |
author_reputation | 1,161,424,016,963 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,376,550 |
net_rshares | 0 |
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!
author | kidsysco |
---|---|
permlink | re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t133129352z |
category | history |
json_metadata | {"tags":["history"],"app":"steemit/0.1"} |
created | 2017-11-03 13:31:27 |
last_update | 2017-11-03 13:31:27 |
depth | 1 |
children | 5 |
last_payout | 2017-11-10 13:31:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 320 |
author_reputation | 21,789,072,424,361 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,351,877 |
net_rshares | 0 |
yes English is not my first language but i am working on it to improve..
author | wajahatsardar |
---|---|
permlink | re-kidsysco-re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t133332544z |
category | history |
json_metadata | {"tags":["history"],"app":"steemit/0.1"} |
created | 2017-11-03 13:33:39 |
last_update | 2017-11-03 13:33:39 |
depth | 2 |
children | 0 |
last_payout | 2017-11-10 13:33:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.034 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 72 |
author_reputation | 17,242,375,006,979 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,352,027 |
net_rshares | 16,999,191,731 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kidsysco | 0 | 16,999,191,731 | 16% |
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#
author | wajahatsardar |
---|---|
permlink | re-kidsysco-re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t133446905z |
category | history |
json_metadata | {"tags":["history"],"app":"steemit/0.1"} |
created | 2017-11-03 13:34:51 |
last_update | 2017-11-03 13:34:51 |
depth | 2 |
children | 3 |
last_payout | 2017-11-10 13:34:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 113 |
author_reputation | 17,242,375,006,979 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,352,112 |
net_rshares | 0 |
Sounds great! Here is a funny one for you... https://i.redd.it/bwyibvl7plvz.jpg
author | kidsysco |
---|---|
permlink | re-wajahatsardar-re-kidsysco-re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20171103t133847274z |
category | history |
json_metadata | {"tags":["history"],"image":["https://i.redd.it/bwyibvl7plvz.jpg"],"app":"steemit/0.1"} |
created | 2017-11-03 13:38:48 |
last_update | 2017-11-03 13:38:48 |
depth | 3 |
children | 2 |
last_payout | 2017-11-10 13:38:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 80 |
author_reputation | 21,789,072,424,361 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,352,404 |
net_rshares | 0 |
 *<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!*
author | minnowbooster | ||||||
---|---|---|---|---|---|---|---|
permlink | comment-1510233016028 | ||||||
category | history | ||||||
json_metadata | {"app":"⇐stoned⇔pastries⇒/¹.².³","format":"markdown","tags":["minnowbooster"]} | ||||||
created | 2017-11-09 13:10:15 | ||||||
last_update | 2017-11-09 13:10:15 | ||||||
depth | 1 | ||||||
children | 1 | ||||||
last_payout | 2017-11-16 13:10:15 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.002 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 389 | ||||||
author_reputation | 230,546,282,483,083 | ||||||
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 19,866,373 | ||||||
net_rshares | 10,768,107,955 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
samhamou | 0 | 10,768,107,955 | 51% |
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.
author | originalworks |
---|---|
permlink | re-comment-1510233016028-20171109t131137 |
category | history |
json_metadata | "{"app": "pysteem/0.5.4"}" |
created | 2017-11-09 13:11:36 |
last_update | 2017-11-09 13:11:36 |
depth | 2 |
children | 0 |
last_payout | 2017-11-16 13:11:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 271 |
author_reputation | 79,292,026,602,057 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 19,866,476 |
net_rshares | 0 |
wow very nice post
author | sardar-semi |
---|---|
permlink | re-wajahatsardar-c-learn-to-code-history-advantages-disadvantages-of-c-language-20180128t001820279z |
category | history |
json_metadata | {"tags":["history"],"app":"steemit/0.1"} |
created | 2018-01-29 12:21:06 |
last_update | 2018-01-29 12:21:06 |
depth | 1 |
children | 0 |
last_payout | 2018-02-05 12:21:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 18 |
author_reputation | 12,227,855,355 |
root_title | "C++ : Learn to code . history , advantages , disadvantages of C++ language" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 33,276,599 |
net_rshares | 0 |