summaryrefslogtreecommitdiff
path: root/2022/Cpp/Day7
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-04-09 03:11:09 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-04-09 03:11:09 +0200
commit05c20dd5c02dd317afec8c96df331960f1814270 (patch)
treeff47c145da49ef5cfbc92cd417bbabb0b439f04d /2022/Cpp/Day7
parentc827efeeef0cdc63c5366e9d945fa53c09988491 (diff)
downloadaoc-05c20dd5c02dd317afec8c96df331960f1814270.tar.xz
aoc-05c20dd5c02dd317afec8c96df331960f1814270.zip
removed file
Diffstat (limited to '2022/Cpp/Day7')
-rwxr-xr-x2022/Cpp/Day7/youssef.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/2022/Cpp/Day7/youssef.cpp b/2022/Cpp/Day7/youssef.cpp
deleted file mode 100755
index 70daea0..0000000
--- a/2022/Cpp/Day7/youssef.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
-#include <bits/stdc++.h>
-
-using namespace std;
-
-class Dir {
-private:
- string name;
- vector<Dir *> dir_list;
- unsigned int size;
- bool is_file;
-
-public:
- Dir(string _name, unsigned int _size = 0) {
- this->name = _name;
- this->size = _size;
-
- this->is_file = true;
- if (_size == 0) {
- this->is_file = false;
- }
- }
-
- void add(Dir *dir) {
- dir_list.emplace_back(dir);
- }
-};
-
-class FileSystem {
-private:
- Dir root_dir;
- map<string, Dir> map_dir;
-
-public:
- void add_to_dir(string path, Dir* dir) {
- map_dir[path].add(dir);
- }
-
- void create_dir(string path, Dir dir) {
- if (!map_dir.count(path)) {
- map_dir[path] = dir;
- }
- }
-};
-
-void read_input() {
- string cur_dir = "";
-}
-
-int main() {
- return 0;
-}