{"id":27118048,"url":"https://github.com/zmercury/cpp","last_synced_at":"2025-04-07T06:50:02.555Z","repository":{"id":64109873,"uuid":"562792271","full_name":"zmercury/cpp","owner":"zmercury","description":"C++ - Second Semester Notes","archived":false,"fork":false,"pushed_at":"2023-03-26T15:18:38.000Z","size":612,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-05-18T17:29:36.379Z","etag":null,"topics":["bed","bicte","c","cpp","ict","notes","programming","sanothimi"],"latest_commit_sha":null,"homepage":"https://zmercury.github.io/cpp","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmercury.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-07T09:14:22.000Z","updated_at":"2023-04-11T03:15:45.000Z","dependencies_parsed_at":"2023-01-14T22:15:41.557Z","dependency_job_id":null,"html_url":"https://github.com/zmercury/cpp","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmercury%2Fcpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmercury%2Fcpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmercury%2Fcpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmercury%2Fcpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmercury","download_url":"https://codeload.github.com/zmercury/cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608151,"owners_count":20965950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bed","bicte","c","cpp","ict","notes","programming","sanothimi"],"created_at":"2025-04-07T06:50:02.053Z","updated_at":"2025-04-07T06:50:02.527Z","avatar_url":"https://github.com/zmercury.png","language":"C++","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003c!-- ## Bibek Ghimire is copying my shit 😂😂 -\u003e [Click Here](https://github.com/Ether18/cpp)  --\u003e\n\n# 📜 C++ | Notes and Assignment | 2nd Semester\n\n![GitHub](https://img.shields.io/github/license/zmercury/cpp?style=for-the-badge)\n![GitHub Repo stars](https://img.shields.io/github/stars/zmercury/cpp?style=for-the-badge)\n![GitHub last commit](https://img.shields.io/github/last-commit/zmercury/cpp?style=for-the-badge)\n\n\n\u003c/div\u003e\n\n\n\n\u003c!-- ### Latest Assignment of Dec 14 \u0026 15 - [👉 Click Here](/Assignment/) --\u003e\n### Latest Note - [👉 Click Here](#February)\n## Table of Content\n\n### November \n\n|Date|Content|Link|\n|--------|---------|:---------:|\n|Nov\u0026nbsp;7|Syllabus|[Syllabus](/Notes/00_November/000_Nov7/)|\n|Nov\u0026nbsp;8|C Recap: Find Simple Interest, Sample of Switch and Loop Statement|[Notes](/Notes/00_November/001_Nov8/)|\n|Nov\u0026nbsp;9|Basic Addition, User Input and find area of rectriangle|[Notes](/Notes/00_November/002_Nov9/)|\n|Nov\u0026nbsp;10|Simple Interest using double and Area of Circle (PI)|[Notes](/Notes/00_November/003_Nov10/)|\n|Nov 11|Classes in C++: Sample Programs|[Notes](/Notes/00_November/004_Nov11/)|\n|Nov 13|**Questions:**\u003cbr/\u003e**1.** Area of square \u003cbr/\u003e **2.** Volume of a cuboid \u003cbr/\u003e **3.** Volume of cube \u003cbr/\u003e **4.** Print sum, difference, product and quotient of two user input numbers \u003cbr/\u003e **5.** To input age of person and print in days with a appropriate format \u003cbr/\u003e **6.** To input length \u0026 breadth of a room and calculate and print its area and perimeter \u003cbr/\u003e **7.** To read the radius of a sphere and compute its surface area and volume \u003cbr/\u003e **8.** To input temperature in Celsius and to print its Fahrenheit equivalent \u003cbr/\u003e **9.** To read base and altitude of a triangle and prints its area|[Notes](/Notes/00_November/005_Nov13/)|\n|Nov\u0026nbsp;14|Completed the questions given in Nov 13 --\u003e [Click Here](/Notes/00_November/005_Nov13/)|[Notes](/Notes/00_November/006_Nov14/)|\n|Nov\u0026nbsp;15|Find Greatest Number among three numbers |[Notes](/Notes/00_November/007_Nov15)|\n|Nov\u0026nbsp;16|ASCII,For loop and Increment and Decrement Operators |[Notes](/Notes/00_November/008_Nov16/)|\n|Nov\u0026nbsp;22|Use of if.. else... and else if...... (Calculate Grade) \u003cbr/\u003e **Questions** \u003cbr/\u003e **1.** Enter values of length and breadth of a rectangle from user and check if it is square or not. \u003cbr/\u003e **2.** A shop will give discount of 10% if the cost of purchased quantity is more than 1000. Ask user for quantity. Suppose, one unit will cost 100. Judge and print total cost for user. \u003cbr/\u003e **3.** A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years. Ask user for their salary and year of service and print the net bonus amount. \u003cbr/\u003e **4.** Check that whether a number is even or odd. \u003cbr/\u003e **5.** Program to check whether a number is divisible by 5 and 11 or not. \u003cbr/\u003e **6.** Program to check whether the triangle is an equilateral, isosceles or scalene triangle. \u003cbr/\u003e **7.** Program to calculate profit or loss. \u003cbr/\u003e **8.** Program to check whether a year is a leap year or not by using an if-else statement. \u003cbr/\u003e **9.** Program that checks whether the character is an alphabet or not. \u003cbr/\u003e **10.** Program to check whether a number is a prime or composite number.|[Notes](/Notes/00_November/009_Nov22/) |\n|Nov\u0026nbsp;23|Switch Statement (Assignment: Input two number and find the sum, difference, product and quotient using switch)| [Notes](/Notes/00_November/010_Nov23/)|\n|Nov\u0026nbsp;27| Classwork (if block, swap number)| [Notes](/Notes/00_November/011_Nov27/)|\n|Nov\u0026nbsp;28| Loop | [Notes](/Notes/00_November/012_Nov28/)|\n|Nov\u0026nbsp;29| Jump Statement and Arithmatic Operators| [Notes](/Notes/00_November/013_Nov29/)|\n|Nov\u0026nbsp;30| Assignment Operators, Relational Operator \u0026 Logical Operator | [Notes](/Notes/00_November/014_Nov30/)|\n\n\n### December\n\n|Date|Content|Link|\n|---|---|---|\n|Dec\u0026nbsp;1| Increment \u0026 Decrement Operator / Ternary Operator (Syntax and Example) / Features of Object Oriented Programming |[Notes](/Notes/01_December/001_Dec1/)|\n|Dec\u0026nbsp;2| Difference between C and C++ / Types of Data Types in C++ with example |[Notes](/Notes/01_December/002_Dec2/)|\n|Dec\u0026nbsp;4| Basic Structure of C++ Program (Header File, Main Function etc) |[Notes](/Notes/01_December/003_Dec4/)|\n|Dec\u0026nbsp;5| Scope resolution operator , Insersion and Extraction Operator |[Notes](/Notes/01_December/004_Dec5/)|\n|Dec\u0026nbsp;11| Namespace with syntax and example |[Notes](/Notes/01_December/005_Dec11/)|\n|Dec\u0026nbsp;12| Data Type Conversion with Examples  |[Notes](/Notes/01_December/006_Dec12/)|\n|Dec\u0026nbsp;13| Types of Data Type Conversion with Examples  |[Notes](/Notes/01_December/007_Dec13/)|\n|Dec\u0026nbsp;14| Dynamic Memory Allocation and its example - Assignment [Click Here](/Notes/01_December/008_Dec14#homework)  |[Notes](/Notes/01_December/008_Dec14/)|\n|Dec\u0026nbsp;15| Bitwise Operator and Return Type - Assignment [Click Here](/Notes/01_December/009_Dec15#homework) |[Notes](/Notes/01_December/009_Dec15/)|\n|Dec\u0026nbsp;16| Inline Function |[Notes](/Notes/01_December/010_Dec16/)|\n|Dec\u0026nbsp;18| Overloaded Function \u0026 Default Argument |[Notes](/Notes/01_December/011_Dec18/)|\n|Dec\u0026nbsp;19| Reference Var in C++ \u0026 Assignment -\u003e [Click Here](/Notes/01_December/012_Dec19/) |[Notes](/Notes/01_December/012_Dec19/#homework)|\n|Dec\u0026nbsp;20| Return by Reference |[Notes](/Notes/01_December/013_Dec20/)|\n|Dec\u0026nbsp;21| Constuctor and Destructor |[Notes](/Notes/01_December/014_Dec21/)|\n|Dec\u0026nbsp;22| Type of Constructor |[Notes](/Notes/01_December/015_Dec22/)|\n|Dec\u0026nbsp;23| Classwork |[Notes](/Notes/01_December/016_Dec23/)|\n|Dec\u0026nbsp;26| Parameterized Constructor |[Notes](/Notes/01_December/017_Dec26/)|\n|Dec\u0026nbsp;27| Destructor |[Notes](/Notes/01_December/018_Dec27/)|\n|Dec\u0026nbsp;28| Copy Constructor |[Notes](/Notes/01_December/019_Dec28/)|\n|Dec\u0026nbsp;29| Constructor Overloading |[Notes](/Notes/01_December/020_Dec29/)|\n\n### January\n\n|Date|Content|Link|\n|---|---|---|\n|Jan\u0026nbsp;1| Array, How to declare an Array and Find the sum of the elements in an array |[Notes](/Notes/02_January/000_Jan1/)|\n|Jan\u0026nbsp;2| Classwork (Write a program using array to input and display the marks of 5 students within a class) |[Notes](/Notes/02_January/001_Jan2/)|\n|Jan\u0026nbsp;3| Board Test |[Notes](/Notes/02_January/002_Jan3/)|\n|Jan\u0026nbsp;4| 3-D Array |[Notes](/Notes/02_January/003_Jan4/)|\n|Jan\u0026nbsp;5| 2D Array (Multi IO)|[Notes](/Notes/02_January/004_Jan5/)|\n|Jan\u0026nbsp;31|Base Class and Derived Class|[Notes](/Notes/02_January/005_Jan31/)|\n\n### February\n\n|Date|Content|Link|\n|---|---|---|\n|Feb\u0026nbsp;2/11|Presentation|[Notes](/Notes/03_February/001_Feb2/)|\n|Feb\u0026nbsp;12|Inheritance and Its types|[Notes](/Notes/03_February/002_Feb12/)|\n|Feb\u0026nbsp;14|1. Write a program to add two numbers using inheritance \u003cbr\u003e 2. Write a program in C++ to display mobile name and its cost with tax using single inheritance|[Notes](/Notes/03_February/003_Feb14/)|\n|Feb\u0026nbsp;15|Write a program to display pass or fail and input roll number, marks using multilevel inheritance|[Notes](/Notes/03_February/004_Feb15/)|\n|Feb\u0026nbsp;16|Surprise Class Test|[Notes](/Notes/03_February/005_Feb16/)|\n|Feb\u0026nbsp;17|Write a program to find the sum and product of two numbers using hierarchical inheritance|[Notes](/Notes/03_February/006_Feb17/)|\n|Feb\u0026nbsp;20|What is Ambiguity and program that demonstrates Ambigious Property and how to tackle it in C++ |[Notes](/Notes/03_February/007_Feb20/)|\n|Feb\u0026nbsp;22|Function Overriding and Execution sequence of constructor and destructor in inheritance|[Notes](/Notes/03_February/008_Feb22/)|\n|Feb\u0026nbsp;23|What is Containership or Nesting? What is Container? Example and syntax|[Notes](/Notes/03_February/009_Feb23/)|\n|Feb\u0026nbsp;26||[Notes](/Notes/03_February/010_Feb26/)|\n|Feb\u0026nbsp;27|Array of objects \u0026 Static Data Members|[Notes](/Notes/03_February/011_Feb27/)|\n|Feb\u0026nbsp;28|Static and Non-Static Data Members|[Notes](/Notes/03_February/012_Feb28/)\n\n### March\n\n|Date|Content|Link|\n|---|---|---|\n|Mar\u0026nbsp;1|Friend Class and Friend Function|[Notes](/Notes/04_March/00_Mar1/)|\n|Mar\u0026nbsp;3|Polymorphism|[Notes](/Notes/04_March/01_Mar3/)|\n|Mar\u0026nbsp;5|Pure Virtual Function|[Notes](/Notes/04_March/02_Mar5/)|\n|Mar\u0026nbsp;7|Early Binding and Late Binding|[Notes](/Notes/04_March/03_Mar7/)|\n|Mar\u0026nbsp;10|Roadmap for polymorphism|[Notes](/Notes/04_March/04_Mar10/)|\n|Mar\u0026nbsp;22|Encapsulation|[Notes](/Notes/04_March/05_Mar22/)|\n|Mar\u0026nbsp;23|Operator Overloading|[Notes](/Notes/04_March)|\n\n\n\n\n  \n\n\n###### Copyright (c) 2022 [Mercury / Jupiter / Mxvenus](https://nikhilbastola.com.np) \n\n\n      ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmercury%2Fcpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmercury%2Fcpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmercury%2Fcpp/lists"}