init: add basic strcuture based on quartz

This commit is contained in:
2025-10-23 18:57:47 +03:30
parent ece66f364d
commit e06a0c7fed
203 changed files with 32322 additions and 0 deletions
@@ -0,0 +1,48 @@
# 🧭 Topic: Basics of C++ & Data Types
> [!info] Quick Overview
> This topic introduces how to compile and run C++ code, basic input/output, variables, built-in data types, and the math library.
> By the end, students will be able to write simple C++ programs using variables and standard input/output streams.
---
## 📌 Covered in This Topic
- Introduction to compilation and code editors
- `cin` / `cout` basic usage
- Variables and naming conventions
- Built-in data types (`int`, `float`, `double`, `char`, `bool`)
- Type conversion
- Using the math library
---
## 📑 Slides & Materials
- 👨‍🏫 [Professor Slides (PDF)](./slides/prof.pdf)
- 🧑‍🏫 [TA Workshop Slides (PDF)](./slides/ta.pdf)
---
## 🛠️ Workshop & Assignments
- 💬 [Workshop Questions](./workshops)
- 🧮 [Assignments](01-Workshop.md)
- ❓ [Q&A and Common Issues](./resources/qa.md)
---
## 🌐 Additional Resources
- [C++ Reference](https://cplusplus.com/reference/)
- [Learn C++](https://www.learncpp.com/)
- [Data Types in C++ (W3Schools)](https://www.w3schools.com/cpp/cpp_data_types.asp)
_Add more useful links here as the course progresses._
---
## ⏩ Navigation
- ⬅️ [Previous Topic: Problem Solving](../02-problem-solving/topic.md)
- ➡️ [Next Topic: Conditions & Loops](../04-conditions-loops/topic.md)
---
> [!tip] Tip
> If something doesnt make sense — **dont stay stuck alone**. Ask the TA to clarify it right away. Often, a quick question can save you a lot of time and frustration. Remember: if youre confused, chances are others are too.
@@ -0,0 +1,64 @@
> [!info] Brief description
> This page lists the **workshop questions** for this topic and provides **downloadable official solutions**.
> These questions are meant to help you apply the concepts learned in class through hands-on coding exercises.
---
> [!tip] How to use this page
> - Start by attempting each question on your own.
> - Use the official solutions only to review and learn better approaches.
> - If something doesnt make sense, **ask a TA** during or after the session.
> - Check the [Q&A page](../resources/qa.md) for common questions and clarifications.
---
## 📦 Download All Solutions
- **All official solutions (zip):** [Download all official solutions](./workshops/01-basics-data-types/official-solutions.zip)
---
## 🧾 Official Questions & Solutions
| Question # | Title / Short Description | Question (Download) | Official Solution (Download) |
|------------|---------------------------------------------------------------|---------------------------------------------------------------|------------------------------------------------------------------|
| Q1 | Simple I/O and variables — read two numbers and print the sum | [Download PDF](./workshops/01-q1-question.pdf) | [01-q1-solution.cpp](./workshops/01-q1-solution.cpp) |
| Q2 | Type conversion — integer division vs floating point | [Download PDF](./workshops/01-q2-question.pdf) | [01-q2-solution.cpp](./workshops/01-q2-solution.cpp) |
| Q3 | Using `<cmath>` — compute and format results | [Download PDF](./workshops/01-q3-question.pdf) | [01-q3-solution.cpp](./workshops/01-q3-solution.cpp) |
| Q4 | Edge cases & input validation | [Download PDF](./workshops/01-q4-question.pdf) | [01-q4-solution.cpp](./workshops/01-q4-solution.cpp) |
> [!note] Not available yet?
> Some solutions will be uploaded after the workshop or assignment deadline. Check back later or ask your TA.
---
## ❓ Q&A and Support
> [!question] Got stuck or confused?
> If something in a question or solution is unclear:
> - Revisit the lecture notes and workshop slides.
> - Check the [Q&A page](../resources/qa.md) for clarifications.
> - Ask your TA — thats what were here for.
- [Topic Q&A](../resources/qa.md)
- [Workshop Slides](./workshops/01-basics-data-types/slides.pdf)
- [Professor Slides](../lectures/01-data-types/professor-slides.pdf)
---
## 🙏 Acknowledgements
> [!success] Special thanks
> These materials were created collaboratively to support your learning.
> - You are encouraged to use and adapt the solutions **for learning**, not copying.
> - If you find an error or have a better solution, you can suggest an improvement.
> - TA and instructor feedback will be added over time.
---
## ⚖️ Licensing & Usage
> [!important] Usage note
> Official workshop solutions are for **educational use only**. Please do not repost them publicly or use them in ways that violate course policy.
@@ -0,0 +1,64 @@
> [!info] Brief description
> This page lists the **assignment questions** for this topic and provides **downloadable official solutions**.
> These questions are meant to help you apply the concepts learned in class through hands-on coding exercises.
---
> [!tip] How to use this page
> - Start by attempting each question on your own.
> - Use the official solutions only to review and learn better approaches.
> - If something doesnt make sense, **ask a TA**.
> - Check the [Q&A page](../resources/qa.md) for common questions and clarifications.
---
## 📦 Download All Solutions
- **All official solutions (zip):** [Download all official solutions](./workshops/01-basics-data-types/official-solutions.zip)
---
## 🧾 Official Questions & Solutions
| Question # | Title / Short Description | Question (Download) | Official Solution (Download) |
|------------|---------------------------------------------------------------|---------------------------------------------------------------|------------------------------------------------------------------|
| Q1 | Simple I/O and variables — read two numbers and print the sum | [Download PDF](./workshops/01-q1-question.pdf) | [01-q1-solution.cpp](./workshops/01-q1-solution.cpp) |
| Q2 | Type conversion — integer division vs floating point | [Download PDF](./workshops/01-q2-question.pdf) | [01-q2-solution.cpp](./workshops/01-q2-solution.cpp) |
| Q3 | Using `<cmath>` — compute and format results | [Download PDF](./workshops/01-q3-question.pdf) | [01-q3-solution.cpp](./workshops/01-q3-solution.cpp) |
| Q4 | Edge cases & input validation | [Download PDF](./workshops/01-q4-question.pdf) | [01-q4-solution.cpp](./workshops/01-q4-solution.cpp) |
> [!note] Not available yet?
> Some solutions will be uploaded after the workshop or assignment deadline. Check back later or ask your TA.
---
## ❓ Q&A and Support
> [!question] Got stuck or confused?
> If something in a question or solution is unclear:
> - Revisit the lecture notes and workshop slides.
> - Check the [Q&A page](../resources/qa.md) for clarifications.
> - Ask your TA — thats what were here for.
- [Topic Q&A](../resources/qa.md)
- [Workshop Slides](./workshops/01-basics-data-types/slides.pdf)
- [Professor Slides](../lectures/01-data-types/professor-slides.pdf)
---
## 🙏 Acknowledgements
> [!success] Special thanks
> These materials were created collaboratively to support your learning.
> - You are encouraged to use and adapt the solutions **for learning**, not copying.
> - If you find an error or have a better solution, you can suggest an improvement.
> - TA and instructor feedback will be added over time.
---
## ⚖️ Licensing & Usage
> [!important] Usage note
> Official assignment solutions are for **educational use only**. Please do not repost them publicly or use them in ways that violate course policy.
@@ -0,0 +1,31 @@
# **Q&A**
## ❓ Question 1
> Question: _“Whats the difference between `int` and `float` in C++?”_
> [!info] **Answer**
`int` stores whole numbers without decimals, while `float` stores numbers with fractional parts.
For example:
> - `int x = 5;`
> - `float y = 5.25;`
📚 **Read more:**
- [Professor Slides](https://chatgpt.com/Slides/Topic.pdf)
- [Workshop Slides](https://chatgpt.com/Workshop/Workshop.pdf)
- [External Resource](https://cplusplus.com/doc/tutorial/variables/)
---
### ❓ Question 2
> Question: _“Why do I need to use semicolons in C++?”_
> [!info] Answer
> Semicolons mark the end of a statement in C++. They help the compiler understand where one command finishes and the next begins. Without it, the compiler throws an error.
📚 **Read more:**
- [Professor Slides](https://chatgpt.com/Slides/Topic.pdf)
- [External Resource](https://www.geeksforgeeks.org/basics-of-cpp/)
@@ -0,0 +1,48 @@
# 🧭 Topic: Basics of C++ & Data Types
> [!info] Quick Overview
> This topic introduces how to compile and run C++ code, basic input/output, variables, built-in data types, and the math library.
> By the end, students will be able to write simple C++ programs using variables and standard input/output streams.
---
## 📌 Covered in This Topic
- Introduction to compilation and code editors
- `cin` / `cout` basic usage
- Variables and naming conventions
- Built-in data types (`int`, `float`, `double`, `char`, `bool`)
- Type conversion
- Using the math library
---
## 📑 Slides & Materials
- 👨‍🏫 [Professor Slides (PDF)](./slides/prof.pdf)
- 🧑‍🏫 [TA Workshop Slides (PDF)](./slides/ta.pdf)
---
## 🛠️ Workshop & Assignments
- 💬 [Workshop Questions](./workshops)
- 🧮 [Assignments](01-Workshop.md)
- ❓ [Q&A and Common Issues](./resources/qa.md)
---
## 🌐 Additional Resources
- [C++ Reference](https://cplusplus.com/reference/)
- [Learn C++](https://www.learncpp.com/)
- [Data Types in C++ (W3Schools)](https://www.w3schools.com/cpp/cpp_data_types.asp)
_Add more useful links here as the course progresses._
---
## ⏩ Navigation
- ⬅️ [Previous Topic: Problem Solving](../02-problem-solving/topic.md)
- ➡️ [Next Topic: Conditions & Loops](../04-conditions-loops/topic.md)
---
> [!tip] Tip
> If something doesnt make sense — **dont stay stuck alone**. Ask the TA to clarify it right away. Often, a quick question can save you a lot of time and frustration. Remember: if youre confused, chances are others are too.
@@ -0,0 +1,64 @@
> [!info] Brief description
> This page lists the **workshop questions** for this topic and provides **downloadable official solutions**.
> These questions are meant to help you apply the concepts learned in class through hands-on coding exercises.
---
> [!tip] How to use this page
> - Start by attempting each question on your own.
> - Use the official solutions only to review and learn better approaches.
> - If something doesnt make sense, **ask a TA** during or after the session.
> - Check the [Q&A page](../resources/qa.md) for common questions and clarifications.
---
## 📦 Download All Solutions
- **All official solutions (zip):** [Download all official solutions](./workshops/01-basics-data-types/official-solutions.zip)
---
## 🧾 Official Questions & Solutions
| Question # | Title / Short Description | Question (Download) | Official Solution (Download) |
|------------|---------------------------------------------------------------|---------------------------------------------------------------|------------------------------------------------------------------|
| Q1 | Simple I/O and variables — read two numbers and print the sum | [Download PDF](./workshops/01-q1-question.pdf) | [01-q1-solution.cpp](./workshops/01-q1-solution.cpp) |
| Q2 | Type conversion — integer division vs floating point | [Download PDF](./workshops/01-q2-question.pdf) | [01-q2-solution.cpp](./workshops/01-q2-solution.cpp) |
| Q3 | Using `<cmath>` — compute and format results | [Download PDF](./workshops/01-q3-question.pdf) | [01-q3-solution.cpp](./workshops/01-q3-solution.cpp) |
| Q4 | Edge cases & input validation | [Download PDF](./workshops/01-q4-question.pdf) | [01-q4-solution.cpp](./workshops/01-q4-solution.cpp) |
> [!note] Not available yet?
> Some solutions will be uploaded after the workshop or assignment deadline. Check back later or ask your TA.
---
## ❓ Q&A and Support
> [!question] Got stuck or confused?
> If something in a question or solution is unclear:
> - Revisit the lecture notes and workshop slides.
> - Check the [Q&A page](../resources/qa.md) for clarifications.
> - Ask your TA — thats what were here for.
- [Topic Q&A](../resources/qa.md)
- [Workshop Slides](./workshops/01-basics-data-types/slides.pdf)
- [Professor Slides](../lectures/01-data-types/professor-slides.pdf)
---
## 🙏 Acknowledgements
> [!success] Special thanks
> These materials were created collaboratively to support your learning.
> - You are encouraged to use and adapt the solutions **for learning**, not copying.
> - If you find an error or have a better solution, you can suggest an improvement.
> - TA and instructor feedback will be added over time.
---
## ⚖️ Licensing & Usage
> [!important] Usage note
> Official workshop solutions are for **educational use only**. Please do not repost them publicly or use them in ways that violate course policy.
@@ -0,0 +1,64 @@
> [!info] Brief description
> This page lists the **assignment questions** for this topic and provides **downloadable official solutions**.
> These questions are meant to help you apply the concepts learned in class through hands-on coding exercises.
---
> [!tip] How to use this page
> - Start by attempting each question on your own.
> - Use the official solutions only to review and learn better approaches.
> - If something doesnt make sense, **ask a TA**.
> - Check the [Q&A page](../resources/qa.md) for common questions and clarifications.
---
## 📦 Download All Solutions
- **All official solutions (zip):** [Download all official solutions](./workshops/01-basics-data-types/official-solutions.zip)
---
## 🧾 Official Questions & Solutions
| Question # | Title / Short Description | Question (Download) | Official Solution (Download) |
|------------|---------------------------------------------------------------|---------------------------------------------------------------|------------------------------------------------------------------|
| Q1 | Simple I/O and variables — read two numbers and print the sum | [Download PDF](./workshops/01-q1-question.pdf) | [01-q1-solution.cpp](./workshops/01-q1-solution.cpp) |
| Q2 | Type conversion — integer division vs floating point | [Download PDF](./workshops/01-q2-question.pdf) | [01-q2-solution.cpp](./workshops/01-q2-solution.cpp) |
| Q3 | Using `<cmath>` — compute and format results | [Download PDF](./workshops/01-q3-question.pdf) | [01-q3-solution.cpp](./workshops/01-q3-solution.cpp) |
| Q4 | Edge cases & input validation | [Download PDF](./workshops/01-q4-question.pdf) | [01-q4-solution.cpp](./workshops/01-q4-solution.cpp) |
> [!note] Not available yet?
> Some solutions will be uploaded after the workshop or assignment deadline. Check back later or ask your TA.
---
## ❓ Q&A and Support
> [!question] Got stuck or confused?
> If something in a question or solution is unclear:
> - Revisit the lecture notes and workshop slides.
> - Check the [Q&A page](../resources/qa.md) for clarifications.
> - Ask your TA — thats what were here for.
- [Topic Q&A](../resources/qa.md)
- [Workshop Slides](./workshops/01-basics-data-types/slides.pdf)
- [Professor Slides](../lectures/01-data-types/professor-slides.pdf)
---
## 🙏 Acknowledgements
> [!success] Special thanks
> These materials were created collaboratively to support your learning.
> - You are encouraged to use and adapt the solutions **for learning**, not copying.
> - If you find an error or have a better solution, you can suggest an improvement.
> - TA and instructor feedback will be added over time.
---
## ⚖️ Licensing & Usage
> [!important] Usage note
> Official assignment solutions are for **educational use only**. Please do not repost them publicly or use them in ways that violate course policy.
@@ -0,0 +1,31 @@
# **Q&A**
## ❓ Question 1
> Question: _“Whats the difference between `int` and `float` in C++?”_
> [!info] **Answer**
`int` stores whole numbers without decimals, while `float` stores numbers with fractional parts.
For example:
> - `int x = 5;`
> - `float y = 5.25;`
📚 **Read more:**
- [Professor Slides](https://chatgpt.com/Slides/Topic.pdf)
- [Workshop Slides](https://chatgpt.com/Workshop/Workshop.pdf)
- [External Resource](https://cplusplus.com/doc/tutorial/variables/)
---
### ❓ Question 2
> Question: _“Why do I need to use semicolons in C++?”_
> [!info] Answer
> Semicolons mark the end of a statement in C++. They help the compiler understand where one command finishes and the next begins. Without it, the compiler throws an error.
📚 **Read more:**
- [Professor Slides](https://chatgpt.com/Slides/Topic.pdf)
- [External Resource](https://www.geeksforgeeks.org/basics-of-cpp/)