{"id":68576,"date":"2021-08-05T04:10:10","date_gmt":"2021-08-05T08:10:10","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/lesson-1-short-notes-on-c-77\/"},"modified":"2021-08-05T04:10:10","modified_gmt":"2021-08-05T08:10:10","slug":"lesson-1-short-notes-on-c-77","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=68576","title":{"rendered":"Lesson 1: Short Notes on C++ #77"},"content":{"rendered":"<p>  This short note is for those who already know C++ and want to    refresh their memory. Beginners can still take a look to get an overall idea.  <\/p>\n<ul>\n<li> Three pillars of object-oriented development: encapsulation, inheritance, and polymorphism.      <\/li>\n<li> C++ supports encapsulation through (user-defined)           classes. Class properties and internal             workings can be hidden from outside world.     <\/li>\n<li> C++ supports polymorphism through overloading, overriding     <\/li>\n<li> C++ supports inheritance by allowing classes to share (extend) the properties and workings of other classes     <\/li>\n<li> Managed C++ is an extension of the C++ language. Managed C++ allows the use of Microsoft&#8217;s new platform (.Net) and libraries      <\/li>\n<li> How to include header files: #include  or #include        <\/li>\n<li> Print in the console:  std::cout &lt; &lt;&quot;Hello World!n&quot;; or cout &lt;&lt;&quot;Hello World!n&quot;; std::cout &lt;&lt; &quot;Number and String together:t&quot; &lt;&lt; 70000;          <\/li>\n<li> Read from the console: std::cin &gt;&gt; response; where response is a variable       <\/li>\n<li> If you do not want to use &#8216;std::&#8217; in the previous examples, you can use the statement &#8216;using namespace std;&#8217; before       <\/li>\n<li> How to comment: use \/\/ to comment single line or use \/*c++ code*\/ to comment a block      <\/li>\n<li> [ Code commenting is a good practice only when you describe why is the code block than what the block does.]     <\/li>\n<li> C++ is case sensitive     <\/li>\n<li> Keywords, Reserved words: Some words are reserved in C++. You can not use them as variable names. <\/li>\n<li> Keywords:<br \/>asm\telse\tnew\tthisauto\tenum\toperator\tthrowbool\texplicit\tprivate\ttruebreak\texport\tprotected\ttrycase\textern\tpublic\ttypedefcatch\tfalse\tregister\ttypeidchar\tfloat\treinterpret_cast\ttypenameclass\tfor\treturn\tunionconst\tfriend\tshort\tunsignedconst_cast\tgoto\tsigned\tusingcontinue\tif\tsizeof\tvirtualdefault\tinline\tstatic\tvoiddelete\tint\tstatic_cast\tvolatiledo\tlong\tstruct\twchar_tdouble\tmutable\tswitch\twhiledynamic_cast\tnamespace\ttemplate<\/li>\n<li> Reserved words: And\tbitor\tnot_eq\txorand_eq\tcompl\tor\txor_eqbitand\tnot\tor_eq<\/li>\n<li> Variable declaration: unsigned int age;<\/li>\n<li> How to create aliases: typedef unsigned short int USHORT;<\/li>\n<li> C++ Escape characters:<br \/>a\tBell (alert) <br \/>b\tBackspace <br \/>f\tForm feed <br \/>n\tNew line <br \/>r\tCarriage return <br \/>t\tTab <br \/>v\tVertical tab <br \/>&#8216;\tSingle quote <br \/>&#8221;\tDouble quote <br \/>?\tQuestion mark <br \/>\tBackslash <br \/>00\tOctal notation <br \/>xhhh\tHexadecimal notation\n<\/li>\n<li> Define constants:<br \/>#define numberOfContinents 7\n<\/li>\n<li> Enumerated constants:<br \/>enum WeekDays { Monday<\/li>\n<\/ul>\n<p> From: http:\/\/sitestree.com\/?p=5062<br \/> Categories:77<br \/>Tags:<br \/> Post Data:2007-12-08 06:35:30<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This short note is for those who already know C++ and want to refresh their memory. Beginners can still take a look to get an overall idea. Three pillars of object-oriented development: encapsulation, inheritance, and polymorphism. C++ supports encapsulation through (user-defined) classes. Class properties and internal workings can be hidden from outside world. C++ supports &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=68576\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-68576","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":26483,"url":"http:\/\/bangla.sitestree.com\/?p=26483","url_meta":{"origin":68576,"position":0},"title":"Lesson 1: Short Notes on C++ #Programming #C++","author":"Author-Check- Article-or-Video","date":"April 26, 2021","format":false,"excerpt":"This short note is for those who already know C++ and want to refresh their memory. Starters can still take a look to get an overall idea. Three pillars of object-oriented development: encapsulation, inheritance, and polymorphism. C++ supports encapsulation through (user-defined) classes. Class properties and internal workings can be hidden\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78161,"url":"http:\/\/bangla.sitestree.com\/?p=78161","url_meta":{"origin":68576,"position":1},"title":"Misc. Short Notes on Visual Studio and C#","author":"Sayed","date":"May 11, 2025","format":false,"excerpt":"Download Visual Studio Community Edition: https:\/\/visualstudio.microsoft.com\/vs\/community Compare Different Versions of Visual Studio: https:\/\/visualstudio.microsoft.com\/vs\/compare IPO Diagram for Your Code (Application) IPO Diagram visually shows\/describes key inputs, Processes\/Operations, and resulting outputs from those operations. Ref: https:\/\/www.youtube.com\/watch?v=a10a11oxjrA&pp=0gcJCdgAo7VqN5tD For UML class diagram Concepts, please check: https:\/\/www.visual-paradigm.com\/guide\/uml-unified-modeling-language\/uml-class-diagram-tutorial An example from the URL above: In Object\u2026","rel":"","context":"In &quot;C# - Misc&quot;","block_context":{"text":"C# - Misc","link":"http:\/\/bangla.sitestree.com\/?cat=1973"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-7.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-7.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-7.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/05\/image-7.png?resize=700%2C400 2x"},"classes":[]},{"id":76179,"url":"http:\/\/bangla.sitestree.com\/?p=76179","url_meta":{"origin":68576,"position":2},"title":"Struct\/Record Examples in C Programming Language","author":"Sayed","date":"July 20, 2024","format":false,"excerpt":"#pragma warning(disable : 4996) #include <iostream> #include <string.h> \/\/struct struct student { char name[50]; int age; float height; }; struct student s1 = { \" Nina Chase\", 12, 1.55 }; struct student s2 = { \" Shyann Morris\", 12, 1.65 }; \/\/typedef struct typedef struct { char name[50]; int age;\u2026","rel":"","context":"In &quot;Data Structure and Algorithms&quot;","block_context":{"text":"Data Structure and Algorithms","link":"http:\/\/bangla.sitestree.com\/?cat=1966"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10552,"url":"http:\/\/bangla.sitestree.com\/?p=10552","url_meta":{"origin":68576,"position":3},"title":"C++ Template Example","author":"","date":"August 29, 2015","format":false,"excerpt":"\/* The following code example is taken from the book \u00a0* \"The C++ Standard Library - A Tutorial and Reference\" \u00a0* by Nicolai M. Josuttis, Addison-Wesley, 1999 \u00a0* \u00a0* (C) Copyright Nicolai M. Josuttis 1999. \u00a0* Permission to copy, use, modify, sell and distribute this software \u00a0* is granted provided\u2026","rel":"","context":"In &quot;C++&quot;","block_context":{"text":"C++","link":"http:\/\/bangla.sitestree.com\/?cat=1420"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67450,"url":"http:\/\/bangla.sitestree.com\/?p=67450","url_meta":{"origin":68576,"position":4},"title":"Hibernate: Basic Concepts #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 22, 2021","format":false,"excerpt":"Hibernate Object Relational Mapping Software ORM qualities: Pure relational, Light object mapping, Medium object mapping, Full object mapping ORM Metadata: ORM metadata provides support for mapping between classes and tables, properties and columns, associations and foreign keys, Java types and SQL types. Full Object Mapping: Supports advanced object modeling: composition,\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26487,"url":"http:\/\/bangla.sitestree.com\/?p=26487","url_meta":{"origin":68576,"position":5},"title":"C++ Syntax: in brief #Programming #C++","author":"Author-Check- Article-or-Video","date":"April 26, 2021","format":false,"excerpt":"This will make sense only if you want to refresh your memory on C++ syntax. cout << \"Enter two integers:\" << endl; \/\/ output to screen cin >> n >> m; \/\/ Note: Using endl prints out a newline and flushes the output buffer. cout << \"number of digits in\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/68576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=68576"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/68576\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=68576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=68576"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=68576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}