diff --git a/README.md b/README.md deleted file mode 100644 index 311e609eb816745862e1a6ff9002c089f7826929..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,93 +0,0 @@ -# Operating_System - - - -## Getting started - -To make it easy for you to get started with GitLab, here's a list of recommended next steps. - -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! - -## Add your files - -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: - -``` -cd existing_repo -git remote add origin https://gitlab.uwe.ac.uk/h2-veziroglu/operating_system.git -git branch -M main -git push -uf origin main -``` - -## Integrate with your tools - -- [ ] [Set up project integrations](https://gitlab.uwe.ac.uk/h2-veziroglu/operating_system/-/settings/integrations) - -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README - -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. - -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. - -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. - -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. - -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. - -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. - -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. - -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. - -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. diff --git a/Worksheet_0/foo.txt b/Worksheet_0/foo.txt deleted file mode 100644 index d5350780851e08aaedd2183b7b88e06e4fa4211d..0000000000000000000000000000000000000000 --- a/Worksheet_0/foo.txt +++ /dev/null @@ -1,5 +0,0 @@ -10 -20 -30 -40 -54 diff --git a/Worksheet_0/task1_pointer b/Worksheet_0/task1_pointer deleted file mode 100644 index 42cc2a737cf386cddbff6d622cb5bfae888e7178..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task1_pointer and /dev/null differ diff --git a/Worksheet_0/task1_pointer.c b/Worksheet_0/task1_pointer.c deleted file mode 100644 index 103b7d703705f3409ba0e7736186758da8643552..0000000000000000000000000000000000000000 --- a/Worksheet_0/task1_pointer.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdio.h> - -int main() { - int n = 10; - int *ptr_to_n = &n; - - // Increment the value of n using the pointer - (*ptr_to_n)++; - printf("Value of n after increment: %d\n", n); - - return 0; -} diff --git a/Worksheet_0/task1_pointer.dSYM/Contents/Info.plist b/Worksheet_0/task1_pointer.dSYM/Contents/Info.plist deleted file mode 100644 index e8b770380a7ef791f6efd52efdd340a40b77399b..0000000000000000000000000000000000000000 --- a/Worksheet_0/task1_pointer.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> - <dict> - <key>CFBundleDevelopmentRegion</key> - <string>English</string> - <key>CFBundleIdentifier</key> - <string>com.apple.xcode.dsym.task1_pointer</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundlePackageType</key> - <string>dSYM</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleShortVersionString</key> - <string>1.0</string> - <key>CFBundleVersion</key> - <string>1</string> - </dict> -</plist> diff --git a/Worksheet_0/task1_pointer.dSYM/Contents/Resources/DWARF/task1_pointer b/Worksheet_0/task1_pointer.dSYM/Contents/Resources/DWARF/task1_pointer deleted file mode 100644 index 258e70a0192cae088ae54f8b3650823ef962d3bb..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task1_pointer.dSYM/Contents/Resources/DWARF/task1_pointer and /dev/null differ diff --git a/Worksheet_0/task1_pointer.dSYM/Contents/Resources/Relocations/x86_64/task1_pointer.yml b/Worksheet_0/task1_pointer.dSYM/Contents/Resources/Relocations/x86_64/task1_pointer.yml deleted file mode 100644 index a245ca1647dd939d5bca519d1ddd241146781ab7..0000000000000000000000000000000000000000 --- a/Worksheet_0/task1_pointer.dSYM/Contents/Resources/Relocations/x86_64/task1_pointer.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -triple: 'x86_64-apple-darwin' -binary-path: '/Users/hazalveziroglu/Desktop/OperatingSytem/worksheet_1/task1_pointer' -relocations: - - { offsetInCU: 0x26, offset: 0x26, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100003F40, symSize: 0x42 } - - { offsetInCU: 0x41, offset: 0x41, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100003F40, symSize: 0x42 } -... diff --git a/Worksheet_0/task2_array_pointer b/Worksheet_0/task2_array_pointer deleted file mode 100644 index d6f76f9bc745f630356eff6d9612f91ea3d06c5e..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task2_array_pointer and /dev/null differ diff --git a/Worksheet_0/task2_array_pointer.c b/Worksheet_0/task2_array_pointer.c deleted file mode 100644 index 9ebccaeffe95f20e4825a9174da0196a68fcdebf..0000000000000000000000000000000000000000 --- a/Worksheet_0/task2_array_pointer.c +++ /dev/null @@ -1,12 +0,0 @@ -#include <stdio.h> - -int main() { - int array[3] = {10, 30, 2000}; - int *ptr = array; - - for (int i = 0; i < 3; i++) { - printf("Value: %d, Address: %p\n", *(ptr + i), (ptr + i)); - } - - return 0; -} diff --git a/Worksheet_0/task2_array_pointer.dSYM/Contents/Info.plist b/Worksheet_0/task2_array_pointer.dSYM/Contents/Info.plist deleted file mode 100644 index 9fe7f7726701c515b252b1b1c76b5e5355479178..0000000000000000000000000000000000000000 --- a/Worksheet_0/task2_array_pointer.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> - <dict> - <key>CFBundleDevelopmentRegion</key> - <string>English</string> - <key>CFBundleIdentifier</key> - <string>com.apple.xcode.dsym.task2_array_pointer</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundlePackageType</key> - <string>dSYM</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleShortVersionString</key> - <string>1.0</string> - <key>CFBundleVersion</key> - <string>1</string> - </dict> -</plist> diff --git a/Worksheet_0/task2_array_pointer.dSYM/Contents/Resources/DWARF/task2_array_pointer b/Worksheet_0/task2_array_pointer.dSYM/Contents/Resources/DWARF/task2_array_pointer deleted file mode 100644 index 183e4a333c41a1d8e77ebaec8c1bf7e4861c65dc..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task2_array_pointer.dSYM/Contents/Resources/DWARF/task2_array_pointer and /dev/null differ diff --git a/Worksheet_0/task2_array_pointer.dSYM/Contents/Resources/Relocations/x86_64/task2_array_pointer.yml b/Worksheet_0/task2_array_pointer.dSYM/Contents/Resources/Relocations/x86_64/task2_array_pointer.yml deleted file mode 100644 index 4d443000636b18f3531344f22027dc6148a102b2..0000000000000000000000000000000000000000 --- a/Worksheet_0/task2_array_pointer.dSYM/Contents/Resources/Relocations/x86_64/task2_array_pointer.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -triple: 'x86_64-apple-darwin' -binary-path: '/Users/hazalveziroglu/Desktop/OperatingSytem/worksheet_1/task2_array_pointer' -relocations: - - { offsetInCU: 0x26, offset: 0x26, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100003ED0, symSize: 0xA6 } - - { offsetInCU: 0x41, offset: 0x41, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100003ED0, symSize: 0xA6 } -... diff --git a/Worksheet_0/task3_array_compare b/Worksheet_0/task3_array_compare deleted file mode 100644 index 91bf6aa3b0cca149215178c52bcdfebd5999d466..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task3_array_compare and /dev/null differ diff --git a/Worksheet_0/task3_array_compare.c b/Worksheet_0/task3_array_compare.c deleted file mode 100644 index 3b90e6cf2a9ca91564c48e906a74326cb38851cc..0000000000000000000000000000000000000000 --- a/Worksheet_0/task3_array_compare.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <stdio.h> - -int compare_arrays(int *arr1, int *arr2, int length) { - if (!arr1 || !arr2) return 0; // Null check - - for (int i = 0; i < length; i++) { - if (arr1[i] != arr2[i]) return 0; - } - return 1; -} - -int main() { - int array1[] = {1, 2, 3}; - int array2[] = {1, 2, 3}; - - int result = compare_arrays(array1, array2, 3); - printf("Arrays are %s\n", result ? "equal" : "not equal"); - - return 0; -} diff --git a/Worksheet_0/task3_array_compare.dSYM/Contents/Info.plist b/Worksheet_0/task3_array_compare.dSYM/Contents/Info.plist deleted file mode 100644 index 90b83e72777759324d05c4a4919b591732a5af72..0000000000000000000000000000000000000000 --- a/Worksheet_0/task3_array_compare.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> - <dict> - <key>CFBundleDevelopmentRegion</key> - <string>English</string> - <key>CFBundleIdentifier</key> - <string>com.apple.xcode.dsym.task3_array_compare</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundlePackageType</key> - <string>dSYM</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleShortVersionString</key> - <string>1.0</string> - <key>CFBundleVersion</key> - <string>1</string> - </dict> -</plist> diff --git a/Worksheet_0/task3_array_compare.dSYM/Contents/Resources/DWARF/task3_array_compare b/Worksheet_0/task3_array_compare.dSYM/Contents/Resources/DWARF/task3_array_compare deleted file mode 100644 index 7fa8cac7fa4530ce840652e66cfe14592f30fca3..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task3_array_compare.dSYM/Contents/Resources/DWARF/task3_array_compare and /dev/null differ diff --git a/Worksheet_0/task3_array_compare.dSYM/Contents/Resources/Relocations/x86_64/task3_array_compare.yml b/Worksheet_0/task3_array_compare.dSYM/Contents/Resources/Relocations/x86_64/task3_array_compare.yml deleted file mode 100644 index 7dda917de0caf4a53e2325982bb15bcb3dd85f45..0000000000000000000000000000000000000000 --- a/Worksheet_0/task3_array_compare.dSYM/Contents/Resources/Relocations/x86_64/task3_array_compare.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -triple: 'x86_64-apple-darwin' -binary-path: '/Users/hazalveziroglu/Desktop/OperatingSytem/worksheet_1/task3_array_compare' -relocations: - - { offsetInCU: 0x26, offset: 0x26, size: 0x8, addend: 0x0, symName: _compare_arrays, symObjAddr: 0x0, symBinAddr: 0x100003E20, symSize: 0x90 } - - { offsetInCU: 0x41, offset: 0x41, size: 0x8, addend: 0x0, symName: _compare_arrays, symObjAddr: 0x0, symBinAddr: 0x100003E20, symSize: 0x90 } - - { offsetInCU: 0xA1, offset: 0xA1, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x90, symBinAddr: 0x100003EB0, symSize: 0xA6 } -... diff --git a/Worksheet_0/task4_file_sum b/Worksheet_0/task4_file_sum deleted file mode 100644 index d1633a9ab094159a918f9184796df456c6e445f7..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task4_file_sum and /dev/null differ diff --git a/Worksheet_0/task4_file_sum.c b/Worksheet_0/task4_file_sum.c deleted file mode 100644 index c0142c08231f4b0009147c941393724bf83dcaec..0000000000000000000000000000000000000000 --- a/Worksheet_0/task4_file_sum.c +++ /dev/null @@ -1,18 +0,0 @@ -#include <stdio.h> - -int main() { - FILE *file = fopen("foo.txt", "r"); - if (!file) { - perror("Error opening file"); - return 1; - } - - int num, sum = 0; - while (fscanf(file, "%d", &num) == 1) { - sum += num; - } - fclose(file); - - printf("Sum of numbers: %d\n", sum); - return 0; -} diff --git a/Worksheet_0/task4_file_sum.dSYM/Contents/Info.plist b/Worksheet_0/task4_file_sum.dSYM/Contents/Info.plist deleted file mode 100644 index ab1a9bea25f726f29c054d8990979b0c8972ce5e..0000000000000000000000000000000000000000 --- a/Worksheet_0/task4_file_sum.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> - <dict> - <key>CFBundleDevelopmentRegion</key> - <string>English</string> - <key>CFBundleIdentifier</key> - <string>com.apple.xcode.dsym.task4_file_sum</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundlePackageType</key> - <string>dSYM</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleShortVersionString</key> - <string>1.0</string> - <key>CFBundleVersion</key> - <string>1</string> - </dict> -</plist> diff --git a/Worksheet_0/task4_file_sum.dSYM/Contents/Resources/DWARF/task4_file_sum b/Worksheet_0/task4_file_sum.dSYM/Contents/Resources/DWARF/task4_file_sum deleted file mode 100644 index 869ae3cf5b88669de7f96b182183025dec5e3daf..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task4_file_sum.dSYM/Contents/Resources/DWARF/task4_file_sum and /dev/null differ diff --git a/Worksheet_0/task4_file_sum.dSYM/Contents/Resources/Relocations/x86_64/task4_file_sum.yml b/Worksheet_0/task4_file_sum.dSYM/Contents/Resources/Relocations/x86_64/task4_file_sum.yml deleted file mode 100644 index 7fe52428e6f55fdf6f495c0edd79051a440dd6b9..0000000000000000000000000000000000000000 --- a/Worksheet_0/task4_file_sum.dSYM/Contents/Resources/Relocations/x86_64/task4_file_sum.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -triple: 'x86_64-apple-darwin' -binary-path: '/Users/hazalveziroglu/Desktop/OperatingSytem/worksheet_1/task4_file_sum' -relocations: - - { offsetInCU: 0x26, offset: 0x26, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100003EA0, symSize: 0xA7 } - - { offsetInCU: 0x41, offset: 0x41, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x0, symBinAddr: 0x100003EA0, symSize: 0xA7 } -... diff --git a/Worksheet_0/task5_swap_function b/Worksheet_0/task5_swap_function deleted file mode 100644 index c9c5da377d0be9bb13ba0301899f7b69ae60dbd2..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task5_swap_function and /dev/null differ diff --git a/Worksheet_0/task5_swap_function.c b/Worksheet_0/task5_swap_function.c deleted file mode 100644 index bdef2ad0963a664418d6ca289da735483b5d36c4..0000000000000000000000000000000000000000 --- a/Worksheet_0/task5_swap_function.c +++ /dev/null @@ -1,22 +0,0 @@ -#include <stdio.h> - -void swap(void *x, void *y, size_t size) { - char temp[size]; - for (size_t i = 0; i < size; i++) { - temp[i] = ((char *)x)[i]; - ((char *)x)[i] = ((char *)y)[i]; - ((char *)y)[i] = temp[i]; - } -} - -int main() { - int a = 5, b = 10; - swap(&a, &b, sizeof(int)); - printf("a: %d, b: %d\n", a, b); - - double c = 1.23, d = 4.56; - swap(&c, &d, sizeof(double)); - printf("c: %.2f, d: %.2f\n", c, d); - - return 0; -} diff --git a/Worksheet_0/task5_swap_function.dSYM/Contents/Info.plist b/Worksheet_0/task5_swap_function.dSYM/Contents/Info.plist deleted file mode 100644 index 5618a0f11f691114dc73ab46731b8a5e6a925300..0000000000000000000000000000000000000000 --- a/Worksheet_0/task5_swap_function.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> - <dict> - <key>CFBundleDevelopmentRegion</key> - <string>English</string> - <key>CFBundleIdentifier</key> - <string>com.apple.xcode.dsym.task5_swap_function</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundlePackageType</key> - <string>dSYM</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleShortVersionString</key> - <string>1.0</string> - <key>CFBundleVersion</key> - <string>1</string> - </dict> -</plist> diff --git a/Worksheet_0/task5_swap_function.dSYM/Contents/Resources/DWARF/task5_swap_function b/Worksheet_0/task5_swap_function.dSYM/Contents/Resources/DWARF/task5_swap_function deleted file mode 100644 index fb3dde8fa5e6b0dbd619d27e53eb4c3ff325886c..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task5_swap_function.dSYM/Contents/Resources/DWARF/task5_swap_function and /dev/null differ diff --git a/Worksheet_0/task5_swap_function.dSYM/Contents/Resources/Relocations/x86_64/task5_swap_function.yml b/Worksheet_0/task5_swap_function.dSYM/Contents/Resources/Relocations/x86_64/task5_swap_function.yml deleted file mode 100644 index 559320c7b19746963716599efeabf6d180be3582..0000000000000000000000000000000000000000 --- a/Worksheet_0/task5_swap_function.dSYM/Contents/Resources/Relocations/x86_64/task5_swap_function.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -triple: 'x86_64-apple-darwin' -binary-path: '/Users/hazalveziroglu/Desktop/OperatingSytem/worksheet_1/task5_swap_function' -relocations: - - { offsetInCU: 0x26, offset: 0x26, size: 0x8, addend: 0x0, symName: _swap, symObjAddr: 0x0, symBinAddr: 0x100003DE0, symSize: 0xF0 } - - { offsetInCU: 0x41, offset: 0x41, size: 0x8, addend: 0x0, symName: _swap, symObjAddr: 0x0, symBinAddr: 0x100003DE0, symSize: 0xF0 } - - { offsetInCU: 0xB8, offset: 0xB8, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0xF0, symBinAddr: 0x100003ED0, symSize: 0x8F } -... diff --git a/Worksheet_0/task6_print_2d_array b/Worksheet_0/task6_print_2d_array deleted file mode 100644 index 333ed58b42527fb67a97ed38183e457a5b811cc5..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task6_print_2d_array and /dev/null differ diff --git a/Worksheet_0/task6_print_2d_array.c b/Worksheet_0/task6_print_2d_array.c deleted file mode 100644 index 4e3ee2e874a1de07f93ceb255adee42ccfd62ebb..0000000000000000000000000000000000000000 --- a/Worksheet_0/task6_print_2d_array.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <stdio.h> - -void print_array(int *arr, int width, int height) { - for (int i = 0; i < height; i++) { - for (int j = 0; j < width; j++) { - printf("%d ", *(arr + i * width + j)); - } - printf("\n"); - } -} - -int main() { - int array[3][3] = { - {1, 2, 3}, - {4, 5, 6}, - {7, 8, 9} - }; - print_array(&array[0][0], 3, 3); - return 0; -} diff --git a/Worksheet_0/task6_print_2d_array.dSYM/Contents/Info.plist b/Worksheet_0/task6_print_2d_array.dSYM/Contents/Info.plist deleted file mode 100644 index 04744d15fb1b5868bc87d1fa9607c9b8adcabb06..0000000000000000000000000000000000000000 --- a/Worksheet_0/task6_print_2d_array.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> - <dict> - <key>CFBundleDevelopmentRegion</key> - <string>English</string> - <key>CFBundleIdentifier</key> - <string>com.apple.xcode.dsym.task6_print_2d_array</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundlePackageType</key> - <string>dSYM</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleShortVersionString</key> - <string>1.0</string> - <key>CFBundleVersion</key> - <string>1</string> - </dict> -</plist> diff --git a/Worksheet_0/task6_print_2d_array.dSYM/Contents/Resources/DWARF/task6_print_2d_array b/Worksheet_0/task6_print_2d_array.dSYM/Contents/Resources/DWARF/task6_print_2d_array deleted file mode 100644 index c0bfecfdf51effb30cda58bed0675c00bbbcdea7..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task6_print_2d_array.dSYM/Contents/Resources/DWARF/task6_print_2d_array and /dev/null differ diff --git a/Worksheet_0/task6_print_2d_array.dSYM/Contents/Resources/Relocations/x86_64/task6_print_2d_array.yml b/Worksheet_0/task6_print_2d_array.dSYM/Contents/Resources/Relocations/x86_64/task6_print_2d_array.yml deleted file mode 100644 index 7e8bae5b8685d563500263405d3729cd71386ed1..0000000000000000000000000000000000000000 --- a/Worksheet_0/task6_print_2d_array.dSYM/Contents/Resources/Relocations/x86_64/task6_print_2d_array.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -triple: 'x86_64-apple-darwin' -binary-path: '/Users/hazalveziroglu/Desktop/OperatingSytem/worksheet_1/task6_print_2d_array' -relocations: - - { offsetInCU: 0x26, offset: 0x26, size: 0x8, addend: 0x0, symName: _print_array, symObjAddr: 0x0, symBinAddr: 0x100003E60, symSize: 0xA0 } - - { offsetInCU: 0x41, offset: 0x41, size: 0x8, addend: 0x0, symName: _print_array, symObjAddr: 0x0, symBinAddr: 0x100003E60, symSize: 0xA0 } - - { offsetInCU: 0xB9, offset: 0xB9, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0xA0, symBinAddr: 0x100003F00, symSize: 0x68 } -... diff --git a/Worksheet_0/task7_tic_tac_toe b/Worksheet_0/task7_tic_tac_toe deleted file mode 100644 index ce8f134e5d221aec56e1f0c52ddcf9ba16b435e9..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task7_tic_tac_toe and /dev/null differ diff --git a/Worksheet_0/task7_tic_tac_toe.c b/Worksheet_0/task7_tic_tac_toe.c deleted file mode 100644 index 67c480790b7252e066938c8bc6c9cda70a9c8a7d..0000000000000000000000000000000000000000 --- a/Worksheet_0/task7_tic_tac_toe.c +++ /dev/null @@ -1,59 +0,0 @@ -#include <stdio.h> - -void print_board(char *board) { - for (int i = 0; i < 3; i++) { - for (int j = 0; j < 3; j++) { - printf("%c ", *(board + i * 3 + j)); - } - printf("\n"); - } -} - -int check_winner(char *board) { - for (int i = 0; i < 3; i++) { - if (*(board + i * 3) == *(board + i * 3 + 1) && *(board + i * 3 + 1) == *(board + i * 3 + 2) && *(board + i * 3) != ' ') - return 1; - if (*(board + i) == *(board + i + 3) && *(board + i + 3) == *(board + i + 6) && *(board + i) != ' ') - return 1; - } - if (*(board) == *(board + 4) && *(board + 4) == *(board + 8) && *(board) != ' ') return 1; - if (*(board + 2) == *(board + 4) && *(board + 4) == *(board + 6) && *(board + 2) != ' ') return 1; - return 0; -} - -int main() { - char board[3][3] = { - {' ', ' ', ' '}, - {' ', ' ', ' '}, - {' ', ' ', ' '} - }; - int player = 1, moves = 0; - - while (moves < 9) { - print_board(&board[0][0]); - int x, y; - printf("Player %d, enter row and column (0-2): ", player); - scanf("%d %d", &x, &y); - // Check if the input is within bounds - if (x < 0 || x > 2 || y < 0 || y > 2) { - printf("Invalid input. Please enter row and column between 0 and 2.\n"); - continue; - } - - // Check if the cell is already occupied - if (board[x][y] == ' ') { - board[x][y] = (player == 1) ? 'X' : 'O'; - if (check_winner(&board[0][0])) { - print_board(&board[0][0]); - printf("Player %d wins!\n", player); - return 0; - } - player = 3 - player; // Switch player - moves++; - } else { - printf("Cell already occupied. Try again.\n"); - } - } - printf("It's a draw!\n"); - return 0; -} diff --git a/Worksheet_0/task7_tic_tac_toe.dSYM/Contents/Info.plist b/Worksheet_0/task7_tic_tac_toe.dSYM/Contents/Info.plist deleted file mode 100644 index 6c620fd92a2c5997ccde0de0874ba04c05bdf1c1..0000000000000000000000000000000000000000 --- a/Worksheet_0/task7_tic_tac_toe.dSYM/Contents/Info.plist +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> - <dict> - <key>CFBundleDevelopmentRegion</key> - <string>English</string> - <key>CFBundleIdentifier</key> - <string>com.apple.xcode.dsym.task7_tic_tac_toe</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundlePackageType</key> - <string>dSYM</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleShortVersionString</key> - <string>1.0</string> - <key>CFBundleVersion</key> - <string>1</string> - </dict> -</plist> diff --git a/Worksheet_0/task7_tic_tac_toe.dSYM/Contents/Resources/DWARF/task7_tic_tac_toe b/Worksheet_0/task7_tic_tac_toe.dSYM/Contents/Resources/DWARF/task7_tic_tac_toe deleted file mode 100644 index caad7032944bfe2b55fd3555b385f88befae44b1..0000000000000000000000000000000000000000 Binary files a/Worksheet_0/task7_tic_tac_toe.dSYM/Contents/Resources/DWARF/task7_tic_tac_toe and /dev/null differ diff --git a/Worksheet_0/task7_tic_tac_toe.dSYM/Contents/Resources/Relocations/x86_64/task7_tic_tac_toe.yml b/Worksheet_0/task7_tic_tac_toe.dSYM/Contents/Resources/Relocations/x86_64/task7_tic_tac_toe.yml deleted file mode 100644 index 6a20380cc47f6feae4ab24a0ae763973c9525fe8..0000000000000000000000000000000000000000 --- a/Worksheet_0/task7_tic_tac_toe.dSYM/Contents/Resources/Relocations/x86_64/task7_tic_tac_toe.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -triple: 'x86_64-apple-darwin' -binary-path: '/Users/hazalveziroglu/Desktop/OperatingSytem/worksheet_1/task7_tic_tac_toe' -relocations: - - { offsetInCU: 0x26, offset: 0x26, size: 0x8, addend: 0x0, symName: _print_board, symObjAddr: 0x0, symBinAddr: 0x100003AF0, symSize: 0x90 } - - { offsetInCU: 0x41, offset: 0x41, size: 0x8, addend: 0x0, symName: _print_board, symObjAddr: 0x0, symBinAddr: 0x100003AF0, symSize: 0x90 } - - { offsetInCU: 0x9D, offset: 0x9D, size: 0x8, addend: 0x0, symName: _check_winner, symObjAddr: 0x90, symBinAddr: 0x100003B80, symSize: 0x1B0 } - - { offsetInCU: 0xE1, offset: 0xE1, size: 0x8, addend: 0x0, symName: _main, symObjAddr: 0x240, symBinAddr: 0x100003D30, symSize: 0x1A5 } -...