├── .gitignore ├── CODEOWNERS ├── DemidovichSP ├── HelloWorld │ ├── cmake-build-debug │ │ ├── .cmake │ │ │ └── api │ │ │ │ └── v1 │ │ │ │ ├── query │ │ │ │ ├── cache-v2 │ │ │ │ ├── cmakeFiles-v1 │ │ │ │ ├── codemodel-v2 │ │ │ │ └── toolchains-v1 │ │ │ │ └── reply │ │ │ │ ├── directory-.-Debug-d0094a50bb2071803777.json │ │ │ │ ├── codemodel-v2-58fcadd6fae72cb01c10.json │ │ │ │ └── codemodel-v2-0a5de5ba5b0179fa131b.json │ │ ├── doctest │ │ │ ├── tmp │ │ │ │ ├── doctest-cfgcmd.txt │ │ │ │ └── doctest-cfgcmd.txt.in │ │ │ └── src │ │ │ │ └── doctest-stamp │ │ │ │ └── doctest-gitinfo.txt │ │ ├── CMakeFiles │ │ │ ├── cmake.check_cache │ │ │ ├── 3.21.1 │ │ │ │ ├── CompilerIdC │ │ │ │ │ └── a.exe │ │ │ │ ├── CompilerIdCXX │ │ │ │ │ └── a.exe │ │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ │ ├── CMakeRCCompiler.cmake │ │ │ │ └── CMakeSystem.cmake │ │ │ ├── HelloWorld.dir │ │ │ │ ├── test.cpp.obj │ │ │ │ └── helloWorld.cpp.obj │ │ │ ├── clion-environment.txt │ │ │ ├── TargetDirectories.txt │ │ │ ├── clion-log.txt │ │ │ └── doctest.dir │ │ │ │ └── Labels.txt │ │ ├── .ninja_deps │ │ ├── HelloWorld.exe │ │ ├── Testing │ │ │ └── Temporary │ │ │ │ └── LastTest.log │ │ └── .ninja_log │ ├── helloWorld.h │ ├── helloWorld.cpp │ ├── .idea │ │ ├── HelloWorld.iml │ │ ├── misc.xml │ │ ├── vcs.xml │ │ ├── .gitignore │ │ └── modules.xml │ ├── test.cpp │ └── CMakeLists.txt └── RationalNumbers │ ├── cmake-build-debug │ ├── .cmake │ │ └── api │ │ │ └── v1 │ │ │ ├── query │ │ │ ├── cache-v2 │ │ │ ├── cmakeFiles-v1 │ │ │ ├── codemodel-v2 │ │ │ └── toolchains-v1 │ │ │ └── reply │ │ │ └── directory-.-Debug-d0094a50bb2071803777.json │ ├── doctest │ │ ├── tmp │ │ │ ├── doctest-cfgcmd.txt │ │ │ └── doctest-cfgcmd.txt.in │ │ └── src │ │ │ └── doctest-stamp │ │ │ └── doctest-gitinfo.txt │ ├── CMakeFiles │ │ ├── cmake.check_cache │ │ ├── 3.21.1 │ │ │ ├── CompilerIdC │ │ │ │ └── a.exe │ │ │ ├── CompilerIdCXX │ │ │ │ └── a.exe │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeRCCompiler.cmake │ │ │ └── CMakeSystem.cmake │ │ ├── RationalNumbers.dir │ │ │ ├── test.cpp.obj │ │ │ └── RationalNumber.cpp.obj │ │ ├── clion-environment.txt │ │ ├── TargetDirectories.txt │ │ ├── clion-log.txt │ │ └── doctest.dir │ │ │ └── Labels.txt │ ├── .ninja_deps │ ├── RationalNumbers.exe │ ├── Testing │ │ └── Temporary │ │ │ └── LastTest.log │ └── .ninja_log │ ├── .idea │ ├── RationalNumbers.iml │ ├── misc.xml │ ├── vcs.xml │ ├── .gitignore │ └── modules.xml │ ├── CMakeLists.txt │ └── test.cpp ├── anysimova_n_s ├── stack │ └── CMakeLists.txt ├── rational │ └── CMakeLists.txt ├── dynamic_array │ ├── CMakeLists.txt │ └── dynamic_array.h └── CMakeLists.txt ├── ulyanova_stack ├── stack │ └── CMakeLists.txt └── CMakeLists.txt ├── allayarov_t_r ├── doctest │ └── CMakeLists.txt ├── hello_world │ ├── hello_world.h │ ├── hello_world.cpp │ ├── hello_world_test.cpp │ └── CMakeLists.txt ├── .gitignore ├── stack │ └── CMakeLists.txt ├── dynamic_array │ ├── CMakeLists.txt │ └── dynamic_array.h ├── rational │ └── CMakeLists.txt └── CMakeLists.txt ├── pleshakov_i_n ├── Dynamic │ └── Dynamic.h ├── hello_world │ ├── main.cpp │ ├── hello_world.h │ ├── CMakeLists.txt │ └── test.cpp ├── Stack │ └── CMakeLists.txt ├── Rational │ ├── CMakeLists.txt │ └── Rational.h └── CMakeLists.txt ├── martynov_s_i ├── rational │ ├── Numbers.cpp │ └── CMakeLists.txt ├── hello_world │ ├── hello_world.cpp │ ├── hello_world.h │ ├── CMakeLists.txt │ └── test.cpp ├── stack │ └── CMakeLists.txt ├── dynamic_array │ ├── CMakeLists.txt │ └── dynamic_array.h └── CMakeLists.txt ├── Tsykanov_A ├── hello_world │ ├── hello.cpp │ ├── hello.h │ ├── test.cpp │ └── CMakeLists.txt ├── dynamic_array │ └── CMakeLists.txt ├── Rational_numbers │ └── CMakeLists.txt └── CMakeLists.txt ├── hello_world ├── hello_world.h ├── main.cpp ├── CMakeLists.txt └── test.cpp ├── strijakov_d_i ├── hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── CMakeLists.txt │ └── test.cpp └── CMakeLists.txt ├── Alexandrov_n_a ├── Hello_World │ ├── helloworld.h │ ├── main.cpp │ ├── CMakeLists.txt │ └── test.cpp ├── stack │ └── CMakeLists.txt ├── dinmas │ ├── CMakeLists.txt │ ├── dinmas.h │ └── test.cpp ├── rational │ ├── CMakeLists.txt │ └── rational.h └── CMakeLists.txt ├── boriskin_a_a ├── hello_world │ ├── main.cpp │ ├── hello_world.h │ ├── CMakeLists.txt │ └── test.cpp ├── Rational │ ├── CMakeLists.txt │ └── test.cpp ├── DynamicArray │ ├── CMakeLists.txt │ └── dynamic_array.h └── CMakeLists.txt ├── bychkova_m_v ├── hello_world │ ├── main.cpp │ ├── hello_world.h │ ├── CMakeLists.txt │ └── test.cpp ├── stack │ ├── CMakeLists.txt │ └── test.cpp ├── rational │ ├── CMakeLists.txt │ └── rational.h ├── dynamic_array │ ├── CMakeLists.txt │ └── dynamic_array.h └── CMakeLists.txt ├── laptev_a_v ├── hello_world │ ├── main.cpp │ ├── hello_world.h │ ├── CMakeLists.txt │ └── test.cpp └── CMakeLists.txt ├── panin_s_a ├── hello_world │ ├── main.cpp │ ├── hello_world.h │ ├── CMakeLists.txt │ └── test.cpp ├── Rational │ ├── CMakeLists.txt │ └── Rational.h ├── DynamicArray │ ├── CMakeLists.txt │ └── DynamicArray.h └── CMakeLists.txt ├── rusakov ├── hello_world │ ├── helloworld.h │ ├── main.cpp │ ├── test.cpp │ └── CMakeLists.txt ├── CMakeLists.txt ├── Stack │ └── CMakeLists.txt └── Rational │ ├── CMakeLists.txt │ └── rational.h ├── shabaev_r_a ├── hello_world │ ├── hello_world.h │ └── test.cpp ├── dinamic_array │ └── CMakeLists.txt ├── CMakeLists.txt └── rational │ └── rational.h ├── smirnov_i_v ├── hello_world │ ├── hello_world.h │ ├── main.cpp │ └── test.cpp ├── stack │ └── CMakeLists.txt ├── dyn_array │ ├── CMakeLists.txt │ └── dyn_array.h ├── kr │ └── stringqueue.h ├── CMakeLists.txt └── rational │ └── rational.h ├── voskovshchuk_d_m ├── Hello_World │ ├── Hello_World.h │ ├── Hello_World.cpp │ ├── test.cpp │ └── CMakeLists.txt ├── CMakeLists.txt └── rational │ ├── CMakeLists.txt │ └── rational.h ├── Golovznin_M_A ├── hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── test.cpp │ └── CMakeLists.txt ├── stack │ ├── CMakeLists.txt │ └── test.cpp ├── rational_numbers │ └── CMakeLists.txt └── CMakeLists.txt ├── Kashpar_E_E ├── dynamic_array │ ├── dynamic_array.cpp │ ├── CMakeLists.txt │ └── dynamic_array.h ├── hello_world │ ├── main.cpp │ ├── hello_world.h │ ├── CMakeLists.txt │ └── test.cpp ├── rational │ ├── CMakeLists.txt │ └── rational.h └── CMakeLists.txt ├── Moshchenok_E_A ├── Hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── CMakeLists.txt │ └── test.cpp ├── Rational │ └── CMakeLists.txt ├── Dyn_array │ └── CMakeLists.txt └── CMakeLists.txt ├── Novitskiy_L_R ├── hello_world │ ├── main.cpp │ ├── hello_world.h │ ├── test.cpp │ └── CMakeLists.txt ├── rational │ └── CMakeLists.txt ├── dyn_array │ ├── CMakeLists.txt │ └── dyn_array.h └── CMakeLists.txt ├── Ten_d_s ├── hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── test.cpp │ └── CMakeLists.txt ├── rational │ ├── CMakeLists.txt │ ├── rational.h │ └── test.cpp ├── dyn_array │ ├── CMakeLists.txt │ └── dynamic_array.h └── CMakeLists.txt ├── skobelev_i_s ├── hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── test.cpp │ └── CMakeLists.txt ├── stack │ ├── CMakeLists.txt │ ├── .vscode │ │ └── settings.json │ └── test.cpp ├── dynamicArray │ ├── CMakeLists.txt │ └── dynamic.h ├── rational │ ├── CMakeLists.txt │ ├── test.cpp │ └── rational.h └── CMakeLists.txt ├── Vakhrameev_N_O ├── hello_world │ ├── hello.cpp │ ├── hello_world.h │ ├── test.cpp │ └── CMakeLists.txt ├── stack │ ├── stack │ │ └── CMakeLists.txt │ └── CMakeLists.txt └── CMakeLists.txt ├── bryzgalova_j_a ├── hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── CMakeLists.txt │ └── test.cpp ├── Rational │ ├── CMakeLists.txt │ ├── Rational.h │ └── test.cpp ├── dynamic_array │ └── CMakeLists.txt └── CMakeLists.txt ├── namestnikov_a_e ├── hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── test.cpp │ └── CMakeLists.txt └── CMakeLists.txt ├── romanenko_y_a ├── hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── test.cpp │ └── CMakeLists.txt ├── dynamic_array │ ├── CMakeLists.txt │ └── dynamic_array.h ├── stack │ ├── CMakeLists.txt │ └── test.cpp ├── rational │ └── CMakeLists.txt └── CMakeLists.txt ├── tyavin_v_v ├── hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── test.cpp │ └── CMakeLists.txt ├── rational │ ├── CMakeLists.txt │ └── rational.h └── CMakeLists.txt ├── larin_a_d ├── stack │ └── CMakeLists.txt ├── rational_numbers │ └── CMakeLists.txt ├── dynamic_array │ └── CMakeLists.txt └── CMakeLists.txt ├── ulyanova_m_i ├── rational │ └── CMakeLists.txt ├── dynamicarray │ ├── dynamicarray │ │ ├── dynamicarray.cpp │ │ ├── dynamicarray_test.cpp │ │ ├── CMakeLists.txt │ │ └── dynamicarray.h │ └── CMakeLists.txt └── CMakeLists.txt ├── Basalova_a_a └── hello_world │ ├── hello_world.h │ ├── main.cpp │ ├── CMakeLists.txt │ └── test.cpp ├── ulyanova_hw ├── helloworld │ ├── CMakeLists.txt │ ├── helloworld.cpp │ ├── helloworld.h │ └── helloworld_test.cpp └── CMakeLists.txt ├── vinnik_y_v ├── dynamic_array │ └── CMakeLists.txt ├── rational │ └── CMakeLists.txt └── CMakeLists.txt ├── efimenko_m_y ├── Dynamic │ ├── CMakeLists.txt │ └── dynamic.h ├── Rational │ └── CMakeLists.txt └── CMakeLists.txt ├── koshkin_p_v ├── Hello_World │ ├── Hello_World │ │ ├── hello_world.h │ │ ├── CMakeLists.txt │ │ ├── main.cpp │ │ └── test.cpp │ └── CMakeLists.txt └── rational │ ├── rational │ ├── CMakeLists.txt │ └── rational.h │ └── CMakeLists.txt ├── gurov_e_p ├── stack │ └── CMakeLists.txt ├── rational_numbers │ └── CMakeLists.txt ├── dynamic_array │ └── CMakeLists.txt └── CMakeLists.txt ├── strijakov ├── rational │ ├── CMakeLists.txt │ └── rational.h ├── dynamic │ ├── CMakeLists.txt │ ├── dynamic.h │ └── test.cpp └── CMakeLists.txt ├── zorin_k_a ├── rational │ ├── CMakeLists.txt │ ├── rational.h │ └── test.cpp ├── dynamic │ ├── CMakeLists.txt │ └── dynamic.h └── CMakeLists.txt ├── fedor_avil ├── rational │ ├── CMakeLists.txt │ └── rational.h ├── dynamic │ └── CMakeLists.txt └── CMakeLists.txt ├── vakhrameev_N_O └── dynamic_array │ ├── dynamic │ ├── CMakeLists.txt │ └── class_dynamic_array.h │ └── CMakeLists.txt ├── Borodkina ├── stack │ └── CmakeLists.txt ├── rational │ ├── CmakeLists.txt │ └── rational.h ├── dynamic_array │ ├── CmakeLists.txt │ └── dynamic_array.h └── CmakeLists.txt ├── Gavryushov ├── stack │ └── CMakeLists.txt ├── rational │ ├── CMakeLists.txt │ └── rational.h ├── dynamic │ ├── CMakeLists.txt │ └── dynamic.h └── CMakeLists.txt ├── shinkarenko_r_o ├── rational │ ├── CMakeLists.txt │ └── rational.h └── CMakeLists.txt ├── vakrameev_N_O ├── rational │ ├── CMakeLists.txt │ └── test.cpp └── CMakeLists.txt ├── CMakeLists.txt ├── magomedov_m_m └── rational │ ├── CMakeLists.txt │ ├── rational.h │ └── test.cpp ├── Bordukova_A_A ├── Stack │ └── CMakeLists.txt └── Rational_1 │ └── CMakeLists.txt ├── rationalnumbers └── rational │ └── CMakeLists.txt ├── Rusakov_N_A └── DynamicArray │ ├── CMakeLists.txt │ └── DynamicArray.h └── tarasov_e_v ├── rational ├── CMakeLists.txt └── rational.h └── dynamic_array └── CMakeLists.txt /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @frogitcher @ylivshits 2 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/.cmake/api/v1/query/cache-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/.cmake/api/v1/query/codemodel-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/.cmake/api/v1/query/toolchains-v1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/.cmake/api/v1/query/cache-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /anysimova_n_s/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(stack stack.h stack_test.cpp) -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/doctest/tmp/doctest-cfgcmd.txt: -------------------------------------------------------------------------------- 1 | cmd='' 2 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/.cmake/api/v1/query/codemodel-v2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/.cmake/api/v1/query/toolchains-v1: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/doctest/tmp/doctest-cfgcmd.txt: -------------------------------------------------------------------------------- 1 | cmd='' 2 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/doctest/tmp/doctest-cfgcmd.txt.in: -------------------------------------------------------------------------------- 1 | cmd='@cmd@' 2 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/doctest/tmp/doctest-cfgcmd.txt.in: -------------------------------------------------------------------------------- 1 | cmd='@cmd@' 2 | -------------------------------------------------------------------------------- /ulyanova_stack/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(stack_test stack_test.cpp doctest.h stack.h) -------------------------------------------------------------------------------- /allayarov_t_r/doctest/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.23) 2 | project(doctest) 3 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/helloWorld.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string helloWorld(); 5 | -------------------------------------------------------------------------------- /pleshakov_i_n/Dynamic/Dynamic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/pleshakov_i_n/Dynamic/Dynamic.h -------------------------------------------------------------------------------- /martynov_s_i/rational/Numbers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/martynov_s_i/rational/Numbers.cpp -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/helloWorld.cpp: -------------------------------------------------------------------------------- 1 | #include "helloWorld.h" 2 | 3 | std::string helloWorld(){ 4 | return "Hello World!"; 5 | } 6 | -------------------------------------------------------------------------------- /Tsykanov_A/hello_world/hello.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "hello.h" 3 | 4 | int main(){ 5 | std::cout << Hello_World(); 6 | } -------------------------------------------------------------------------------- /hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() { 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main() { 5 | std::cout << HelloWorld(); 6 | } 7 | -------------------------------------------------------------------------------- /strijakov_d_i/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | std::string H elloWorld(){ 4 | return "Hello World!"; 5 | } 6 | -------------------------------------------------------------------------------- /Alexandrov_n_a/Hello_World/helloworld.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | std::string HelloWorld(){ 4 | return "Hello World"; 5 | } 6 | -------------------------------------------------------------------------------- /Tsykanov_A/hello_world/hello.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string Hello_World(){ 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /boriskin_a_a/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main(){ 5 | std::cout << HelloWorld(); 6 | } -------------------------------------------------------------------------------- /bychkova_m_v/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "hello_world.h" 3 | int main () { 4 | std:: cout << Helloworld(); 5 | } 6 | -------------------------------------------------------------------------------- /laptev_a_v/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main(){ 5 | std::cout << HelloWorld(); 6 | } 7 | -------------------------------------------------------------------------------- /panin_s_a/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main() { 5 | std::cout << HelloWorld(); 6 | } -------------------------------------------------------------------------------- /rusakov/hello_world/helloworld.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld(){ 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /shabaev_r_a/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() { 5 | return "Hello World!"; 6 | } -------------------------------------------------------------------------------- /smirnov_i_v/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() { 5 | return "Hello World!"; 6 | } -------------------------------------------------------------------------------- /voskovshchuk_d_m/Hello_World/Hello_World.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HWorld() { 5 | return "Hello World!"; 6 | } -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/.idea/HelloWorld.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Golovznin_M_A/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() { 5 | return "Hello World!"; 6 | } -------------------------------------------------------------------------------- /Golovznin_M_A/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(stack) 3 | 4 | add_executable(test_stack test.cpp stack.h) 5 | -------------------------------------------------------------------------------- /Kashpar_E_E/dynamic_array/dynamic_array.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/Kashpar_E_E/dynamic_array/dynamic_array.cpp -------------------------------------------------------------------------------- /Kashpar_E_E/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main() { 5 | std::cout << HelloWorld(); 6 | } 7 | -------------------------------------------------------------------------------- /Moshchenok_E_A/Hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string Hello_world() { 5 | return "Hello world!"; 6 | } -------------------------------------------------------------------------------- /Novitskiy_L_R/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main() { 5 | std::cout << HelloWorld(); 6 | } -------------------------------------------------------------------------------- /Ten_d_s/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld(){ 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /allayarov_t_r/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() 5 | { 6 | return "Hello World!"; 7 | } -------------------------------------------------------------------------------- /boriskin_a_a/Rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | 3 | add_executable( testRational 4 | test.cpp 5 | rational.cpp 6 | rational.h 7 | ) -------------------------------------------------------------------------------- /boriskin_a_a/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld(){ 5 | return "Hello World!"; 6 | } -------------------------------------------------------------------------------- /laptev_a_v/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld(){ 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /martynov_s_i/hello_world/hello_world.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main(){ 5 | std::cout << Hello_world(); 6 | } -------------------------------------------------------------------------------- /martynov_s_i/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string Hello_world(){ 5 | return "Hello world!"; 6 | } -------------------------------------------------------------------------------- /panin_s_a/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld(){ 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /pleshakov_i_n/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main(){ 5 | std::cout << HelloWorld(); 6 | } 7 | -------------------------------------------------------------------------------- /skobelev_i_s/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() { 5 | return "Hello World"; 6 | } -------------------------------------------------------------------------------- /Kashpar_E_E/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() { 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /Novitskiy_L_R/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() { 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /Vakhrameev_N_O/hello_world/hello.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "hello_world.h" 3 | 4 | int main() 5 | { 6 | std::cout<< Hell(); 7 | } 8 | -------------------------------------------------------------------------------- /Vakhrameev_N_O/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string Hell() 5 | { 6 | return "Hello World!"; 7 | } 8 | -------------------------------------------------------------------------------- /bryzgalova_j_a/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std :: string HelloWorld(){ 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /bryzgalova_j_a/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main(){ 5 | std::cout << HelloWorld(); 6 | } 7 | -------------------------------------------------------------------------------- /bychkova_m_v/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string Helloworld() { 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /namestnikov_a_e/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() { 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /namestnikov_a_e/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main() 5 | { 6 | std::cout << HelloWorld(); 7 | } 8 | -------------------------------------------------------------------------------- /pleshakov_i_n/Stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(Stack) 4 | 5 | add_executable(test_stack test_stack.cpp stack.h) -------------------------------------------------------------------------------- /romanenko_y_a/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld(){ 5 | return "Hello World!"; 6 | } 7 | -------------------------------------------------------------------------------- /smirnov_i_v/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test_stack 6 | test.cpp 7 | ) -------------------------------------------------------------------------------- /strijakov_d_i/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main(){ 5 | std::cout << HelloWorld(); 6 | } 7 | -------------------------------------------------------------------------------- /tyavin_v_v/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld() { 5 | return "Hello World!"; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /Alexandrov_n_a/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test 6 | test.cpp 7 | stack.h 8 | ) -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/.idea/RationalNumbers.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /martynov_s_i/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(Stack) 4 | 5 | add_executable(Stack 6 | test.cpp 7 | Stack.h 8 | ) -------------------------------------------------------------------------------- /pleshakov_i_n/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | std::string HelloWorld(){ 5 | return "Hello World!"; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /Moshchenok_E_A/Hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main() { 5 | std::cout << Hello_world(); 6 | return 0; 7 | } -------------------------------------------------------------------------------- /larin_a_d/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test 6 | test.cpp 7 | stack.h 8 | ) -------------------------------------------------------------------------------- /rusakov/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "helloworld.h" 2 | #include 3 | using namespace std; 4 | int main() 5 | { 6 | cout << HelloWorld(); 7 | } 8 | -------------------------------------------------------------------------------- /smirnov_i_v/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main() 5 | { 6 | std::cout << HelloWorld(); 7 | return 0; 8 | } -------------------------------------------------------------------------------- /tyavin_v_v/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main() 5 | { 6 | std::cout << HelloWorld(); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /ulyanova_m_i/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(Rational Rational.cpp Rational.h) 2 | add_executable(rational_test rational_test.cpp Rational.cpp doctest.h) -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/.ninja_deps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/HelloWorld/cmake-build-debug/.ninja_deps -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /Golovznin_M_A/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "hello_world.h" 3 | 4 | int main() { 5 | std::cout << HelloWorld(); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /Moshchenok_E_A/Rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | add_executable(test_rational test.cpp main.cpp rational.h) 5 | -------------------------------------------------------------------------------- /Ten_d_s/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | using namespace std; 4 | 5 | int main(){ 6 | cout << HelloWorld(); 7 | } 8 | -------------------------------------------------------------------------------- /allayarov_t_r/hello_world/hello_world.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | int main() 5 | { 6 | std::cout << HelloWorld() << std::endl; 7 | } -------------------------------------------------------------------------------- /skobelev_i_s/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | using namespace std; 4 | int main() { 5 | std::cout << HelloWorld(); 6 | } -------------------------------------------------------------------------------- /Basalova_a_a/hello_world/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | using namespace std; 5 | 6 | string helloworld(){ 7 | return "hello world"; 8 | } 9 | -------------------------------------------------------------------------------- /Basalova_a_a/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | 4 | using namespace std; 5 | 6 | int main(){ 7 | cout << helloworld(); 8 | } 9 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/HelloWorld.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/HelloWorld/cmake-build-debug/HelloWorld.exe -------------------------------------------------------------------------------- /Kashpar_E_E/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test_rational test.cpp rational.h rational.cpp) 6 | -------------------------------------------------------------------------------- /allayarov_t_r/.gitignore: -------------------------------------------------------------------------------- 1 | # VSCode tools 2 | .vscode/ 3 | 4 | # CMake tools 5 | CMakeCache.txt 6 | CMakeFiles/ 7 | Makefile 8 | cmake_install.cmake 9 | build/ 10 | -------------------------------------------------------------------------------- /bryzgalova_j_a/Rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.23.0) 2 | 3 | project(Rational) 4 | 5 | add_executable(test test.cpp Rational.cpp Rational.h) -------------------------------------------------------------------------------- /pleshakov_i_n/Rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(Rational) 4 | 5 | add_executable(test_rational test.cpp Rational.cpp Rational.h) -------------------------------------------------------------------------------- /romanenko_y_a/hello_world/main.cpp: -------------------------------------------------------------------------------- 1 | #include "hello_world.h" 2 | #include 3 | using namespace std; 4 | 5 | int main(){ 6 | cout << HelloWorld(); 7 | } 8 | -------------------------------------------------------------------------------- /ulyanova_hw/helloworld/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(Helloworld helloworld.cpp helloworld.h) 2 | add_executable(helloworld_test helloworld_test.cpp helloworld.cpp doctest.h) -------------------------------------------------------------------------------- /ulyanova_hw/helloworld/helloworld.cpp: -------------------------------------------------------------------------------- 1 | #include "helloworld.h" 2 | #include 3 | 4 | using namespace std; 5 | 6 | int main() { 7 | cout << helloworld(); 8 | } -------------------------------------------------------------------------------- /ulyanova_hw/helloworld/helloworld.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | using namespace std; 5 | 6 | string helloworld() { 7 | return "hello, world!"; 8 | } 9 | -------------------------------------------------------------------------------- /ulyanova_m_i/dynamicarray/dynamicarray/dynamicarray.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/ulyanova_m_i/dynamicarray/dynamicarray/dynamicarray.cpp -------------------------------------------------------------------------------- /Alexandrov_n_a/dinmas/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test 6 | test.cpp 7 | dinmas.cpp 8 | dinmas.h 9 | ) -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/doctest/src/doctest-stamp/doctest-gitinfo.txt: -------------------------------------------------------------------------------- 1 | repository='https://github.com/doctest/doctest.git' 2 | module='' 3 | tag='origin' 4 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/.ninja_deps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/RationalNumbers/cmake-build-debug/.ninja_deps -------------------------------------------------------------------------------- /Vakhrameev_N_O/stack/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(stackr) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test test.cpp) -------------------------------------------------------------------------------- /allayarov_t_r/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.23) 2 | project(stack) 3 | 4 | add_executable(stack stack_test.cpp) 5 | target_link_libraries(stack) 6 | -------------------------------------------------------------------------------- /shabaev_r_a/dinamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | add_executable(stable_dinamic_array stable_dinamic_array.cpp test.cpp) -------------------------------------------------------------------------------- /smirnov_i_v/dyn_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test_dyn_array 6 | test.cpp 7 | dyn_array.cpp 8 | ) -------------------------------------------------------------------------------- /vinnik_y_v/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test 6 | test.cpp 7 | DynArr.h 8 | doctest.h 9 | ) -------------------------------------------------------------------------------- /Alexandrov_n_a/Hello_World/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "helloworld.h" 3 | int main(int arge, char* argv[]) { 4 | std::cout << HelloWorld(); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/doctest/src/doctest-stamp/doctest-gitinfo.txt: -------------------------------------------------------------------------------- 1 | repository='https://github.com/doctest/doctest.git' 2 | module='' 3 | tag='origin' 4 | -------------------------------------------------------------------------------- /efimenko_m_y/Dynamic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(dynamic dynamic.h dynamic.cpp) 2 | 3 | add_executable(dynamic_test dynamic_test.cpp) 4 | target_link_libraries(dynamic_test dynamic) -------------------------------------------------------------------------------- /ulyanova_m_i/dynamicarray/dynamicarray/dynamicarray_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/ulyanova_m_i/dynamicarray/dynamicarray/dynamicarray_test.cpp -------------------------------------------------------------------------------- /voskovshchuk_d_m/Hello_World/Hello_World.cpp: -------------------------------------------------------------------------------- 1 | #include "Hello_World.h" 2 | #include 3 | 4 | 5 | int main() 6 | { 7 | std::cout << HWorld(); 8 | } 9 | 10 | -------------------------------------------------------------------------------- /Alexandrov_n_a/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project1) 4 | add_executable(test 5 | test.cpp 6 | rational.cpp 7 | rational.h 8 | ) -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /anysimova_n_s/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(rational rational.h rational.cpp) 2 | 3 | add_executable(rational_test test.cpp) 4 | target_link_libraries(rational_test rational) 5 | -------------------------------------------------------------------------------- /boriskin_a_a/DynamicArray/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test_dyn_array 6 | test.cpp 7 | dynamic_array.cpp 8 | ) -------------------------------------------------------------------------------- /efimenko_m_y/Rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(rational rational.h rational.cpp) 2 | 3 | add_executable(rational_test rational_test.cpp) 4 | target_link_libraries(rational_test rational) -------------------------------------------------------------------------------- /koshkin_p_v/Hello_World/Hello_World/hello_world.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | using namespace std; 5 | 6 | string Hello_World() 7 | { 8 | return "Hello World!"; 9 | } -------------------------------------------------------------------------------- /martynov_s_i/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(numbers) 4 | 5 | add_executable(test_rational 6 | test.cpp 7 | Numbers.cpp 8 | Numbers.h 9 | ) -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/RationalNumbers.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/RationalNumbers/cmake-build-debug/RationalNumbers.exe -------------------------------------------------------------------------------- /Kashpar_E_E/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test_dynamic_array test.cpp dynamic_array.h dynamic_array.cpp) 6 | -------------------------------------------------------------------------------- /Kashpar_E_E/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(main main.cpp hello_world.h) 6 | 7 | add_executable(test test.cpp) -------------------------------------------------------------------------------- /Basalova_a_a/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.12.1) 2 | 3 | project(project) 4 | 5 | add_executable(main main.cpp hello_world.h) 6 | add_executable (test test.cpp) 7 | -------------------------------------------------------------------------------- /Novitskiy_L_R/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(rational) 4 | 5 | add_executable(main main.cpp hello_world.h) 6 | 7 | add_executable(test test.cpp) 8 | -------------------------------------------------------------------------------- /koshkin_p_v/Hello_World/Hello_World/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(main main.cpp hello_world.h) 6 | 7 | add_executable(test test.cpp) -------------------------------------------------------------------------------- /koshkin_p_v/rational/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test 6 | rational.cpp 7 | rational.h 8 | test.cpp 9 | ) 10 | -------------------------------------------------------------------------------- /panin_s_a/Rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(some) 4 | 5 | add_executable(main 6 | Rational.cpp 7 | Rational.h 8 | test.cpp 9 | ) 10 | 11 | 12 | -------------------------------------------------------------------------------- /pleshakov_i_n/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | 6 | add_executable(main main.cpp hello_world.h) 7 | 8 | add_executable(test test.cpp) 9 | -------------------------------------------------------------------------------- /vinnik_y_v/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(test 6 | test.cpp 7 | Rational.h 8 | Rational.cpp 9 | doctest.h 10 | ) -------------------------------------------------------------------------------- /Tsykanov_A/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello.h" 4 | 5 | TEST_CASE("fact") { 6 | CHECK(Hello_World() == "Hello World!"); 7 | } -------------------------------------------------------------------------------- /bryzgalova_j_a/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.23.0) 2 | 3 | project(project) 4 | 5 | add_executable(main main.cpp hello_world.h) 6 | 7 | add_executable(test test.cpp) 8 | 9 | -------------------------------------------------------------------------------- /efimenko_m_y/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(OOP) 4 | 5 | include_directories(doctest) 6 | 7 | add_subdirectory(Rational) 8 | add_subdirectory(Dynamic) 9 | 10 | -------------------------------------------------------------------------------- /gurov_e_p/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(oop) 3 | 4 | include_directories(doctest) 5 | 6 | add_executable( 7 | stack 8 | test.cpp 9 | stack.h 10 | ) 11 | -------------------------------------------------------------------------------- /skobelev_i_s/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test 8 | test.cpp 9 | stack.h 10 | ) -------------------------------------------------------------------------------- /strijakov/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | 6 | add_executable(test 7 | test.cpp 8 | rational.cpp 9 | rational.h 10 | ) 11 | -------------------------------------------------------------------------------- /zorin_k_a/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | 6 | add_executable(test 7 | test.cpp 8 | rational.cpp 9 | rational.h 10 | ) 11 | -------------------------------------------------------------------------------- /Moshchenok_E_A/Dyn_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | add_executable(test dyn_array.h test_dyn_array.cpp) 5 | 6 | #add_executable(dr dyn_array.h dyn.cpp) 7 | -------------------------------------------------------------------------------- /Vakhrameev_N_O/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("fact") { 6 | CHECK(Hell()=="Hello World!"); 7 | } 8 | -------------------------------------------------------------------------------- /koshkin_p_v/Hello_World/Hello_World/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | using namespace std; 5 | 6 | int main() 7 | { 8 | cout << Hello_World(); 9 | return 0; 10 | } -------------------------------------------------------------------------------- /zorin_k_a/dynamic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | 6 | add_executable(test 7 | test.cpp 8 | dynamic.cpp 9 | dynamic.h 10 | ) 11 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/a.exe -------------------------------------------------------------------------------- /martynov_s_i/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(dynamic_array) 4 | 5 | add_executable(test_dynamic_array 6 | test.cpp 7 | dynamic_array.cpp 8 | dynamic_array.h 9 | ) -------------------------------------------------------------------------------- /panin_s_a/DynamicArray/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(some) 4 | 5 | add_executable(main 6 | DynamicArray.cpp 7 | DynamicArray.h 8 | test.cpp 9 | ) 10 | 11 | 12 | -------------------------------------------------------------------------------- /ulyanova_hw/helloworld/helloworld_test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "helloworld.h" 4 | 5 | TEST_CASE("Test") { 6 | CHECK(helloworld() == "hello, world!"); 7 | } -------------------------------------------------------------------------------- /ulyanova_m_i/dynamicarray/dynamicarray/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_executable(Dynamicarray dynamicarray.cpp dynamicarray.h) 2 | add_executable(dynamicarray_test dynamicarray_test.cpp dynamicarray.cpp doctest.h dynamicarray.h) -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdCXX/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdCXX/a.exe -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/HelloWorld.dir/test.cpp.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/HelloWorld.dir/test.cpp.obj -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/Testing/Temporary/LastTest.log: -------------------------------------------------------------------------------- 1 | Start testing: May 20 19:56 RTZ 2 (ceia) 2 | ---------------------------------------------------------- 3 | End testing: May 20 19:56 RTZ 2 (ceia) 4 | -------------------------------------------------------------------------------- /Moshchenok_E_A/Hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | add_executable(hello_world hello_world.h main.cpp) 5 | 6 | add_executable(test_hello_world hello_world.h test.cpp) -------------------------------------------------------------------------------- /hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(main 6 | main.cpp 7 | hello_world.h 8 | ) 9 | 10 | add_executable(test 11 | test.cpp 12 | ) 13 | -------------------------------------------------------------------------------- /shabaev_r_a/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } -------------------------------------------------------------------------------- /Alexandrov_n_a/Hello_World/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(main 6 | main.cpp 7 | helloworld.h 8 | ) 9 | add_executable(test 10 | test.cpp 11 | ) -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "helloWorld.h" 3 | #include "doctest.h" 4 | 5 | TEST_CASE("testing hello world") { 6 | CHECK(helloWorld() == "Hello World!"); 7 | } -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/a.exe -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/Testing/Temporary/LastTest.log: -------------------------------------------------------------------------------- 1 | Start testing: May 31 23:26 RTZ 2 (ceia) 2 | ---------------------------------------------------------- 3 | End testing: May 31 23:26 RTZ 2 (ceia) 4 | -------------------------------------------------------------------------------- /bychkova_m_v/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test_stack 8 | stack.h 9 | test.cpp 10 | ) 11 | 12 | -------------------------------------------------------------------------------- /fedor_avil/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test 8 | rational.cpp 9 | rational.h 10 | test.cpp 11 | ) -------------------------------------------------------------------------------- /namestnikov_a_e/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing func") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } 8 | -------------------------------------------------------------------------------- /smirnov_i_v/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } -------------------------------------------------------------------------------- /tyavin_v_v/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test_rational 8 | test.cpp 9 | rational.cpp 10 | ) 11 | -------------------------------------------------------------------------------- /voskovshchuk_d_m/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | add_subdirectory(rational) 8 | add_subdirectory(Hello_World) 9 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/HelloWorld.dir/helloWorld.cpp.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/HelloWorld.dir/helloWorld.cpp.obj -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdCXX/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdCXX/a.exe -------------------------------------------------------------------------------- /Tsykanov_A/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | cmake_minimum_required (VERSION 3.0) 3 | 4 | include_directories(doctest) 5 | 6 | add_executable (main 7 | "DynamicArray.cpp" 8 | "DynamicArray.h" 9 | "test.cpp" 10 | ) 11 | -------------------------------------------------------------------------------- /anysimova_n_s/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_library(dynamic_array dynamic_array.h dynamic_array.cpp) 2 | 3 | add_executable(dynamic_array_test dynamic_array_test.cpp) 4 | target_link_libraries(dynamic_array_test dynamic_array) -------------------------------------------------------------------------------- /bryzgalova_j_a/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.23.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test_dynamic dynamic_array.cpp dynamic_array.h test.cpp) 8 | -------------------------------------------------------------------------------- /bychkova_m_v/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(main 6 | main.cpp 7 | hello_world.h 8 | ) 9 | 10 | add_executable(test 11 | test.cpp 12 | ) -------------------------------------------------------------------------------- /skobelev_i_s/dynamicArray/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test 8 | dynamic.cpp 9 | test.cpp 10 | dynamic.h 11 | ) -------------------------------------------------------------------------------- /skobelev_i_s/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test 8 | rational.cpp 9 | test.cpp 10 | rational.h 11 | ) -------------------------------------------------------------------------------- /tyavin_v_v/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } 8 | -------------------------------------------------------------------------------- /vakhrameev_N_O/dynamic_array/dynamic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(dynamic_array) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test test.cpp dynamic.cpp class_dynamic_array.h) -------------------------------------------------------------------------------- /Moshchenok_E_A/Hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(Hello_world() == "Hello world!"); 7 | } -------------------------------------------------------------------------------- /Novitskiy_L_R/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } -------------------------------------------------------------------------------- /Ten_d_s/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } 8 | -------------------------------------------------------------------------------- /boriskin_a_a/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(main 6 | main.cpp 7 | hello_world.h 8 | ) 9 | 10 | add_executable( test 11 | test.cpp 12 | ) -------------------------------------------------------------------------------- /boriskin_a_a/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } -------------------------------------------------------------------------------- /fedor_avil/dynamic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test_dynamic 8 | dynamic_array.cpp 9 | dynamic.h 10 | test.cpp 11 | ) -------------------------------------------------------------------------------- /panin_s_a/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(main 6 | main.cpp 7 | hello_world.h 8 | ) 9 | 10 | add_executable(test 11 | test.cpp 12 | ) 13 | -------------------------------------------------------------------------------- /rusakov/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "helloworld.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } 8 | -------------------------------------------------------------------------------- /skobelev_i_s/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(HelloWorld() == "Hello World"); 7 | } -------------------------------------------------------------------------------- /strijakov/dynamic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test_dynamic 8 | dynamic.cpp 9 | dynamic.h 10 | test.cpp 11 | ) -------------------------------------------------------------------------------- /strijakov_d_i/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(main 6 | main.cpp 7 | hello_world.h 8 | ) 9 | 10 | add_executable(test 11 | test.cpp 12 | ) 13 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/RationalNumbers.dir/test.cpp.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/RationalNumbers.dir/test.cpp.obj -------------------------------------------------------------------------------- /Kashpar_E_E/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } 8 | -------------------------------------------------------------------------------- /Ten_d_s/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test_rational 8 | rational.cpp 9 | rational.h 10 | test.cpp 11 | ) -------------------------------------------------------------------------------- /koshkin_p_v/Hello_World/Hello_World/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("Testing Hello_World") 6 | { 7 | CHECK(Hello_World() == "Hello World!"); 8 | } -------------------------------------------------------------------------------- /laptev_a_v/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(main 6 | main.cpp 7 | hello_world.h 8 | ) 9 | 10 | add_executable( test 11 | test.cpp 12 | ) 13 | -------------------------------------------------------------------------------- /laptev_a_v/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } 8 | -------------------------------------------------------------------------------- /romanenko_y_a/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(HelloWorld() == "Hello World!"); 7 | } 8 | -------------------------------------------------------------------------------- /voskovshchuk_d_m/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(main 8 | rational.cpp 9 | rational.h 10 | test.cpp 11 | ) 12 | -------------------------------------------------------------------------------- /Basalova_a_a/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include 3 | #include "hello_world.h" 4 | #include 5 | 6 | TEST_CASE("testing"){ 7 | CHECK(helloworld() == "hello world"); 8 | } 9 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Golovznin_M_A/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | #include 5 | 6 | TEST_CASE("testing hello world") { 7 | CHECK(HelloWorld() == "Hello World"); 8 | } -------------------------------------------------------------------------------- /Tsykanov_A/Rational_numbers/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.0) 2 | 3 | include_directories(doctest) 4 | 5 | add_executable (main 6 | "Rational_numbers.cpp" 7 | "Rational_numbers.h" 8 | "test.cpp" 9 | ) 10 | 11 | -------------------------------------------------------------------------------- /bychkova_m_v/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(testing_rational 8 | rational.cpp 9 | rational.h 10 | test.cpp 11 | ) -------------------------------------------------------------------------------- /gurov_e_p/rational_numbers/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(oop) 3 | 4 | include_directories(doctest) 5 | 6 | add_executable( 7 | rational_test 8 | test.cpp 9 | rational.cpp 10 | rational.h 11 | ) 12 | -------------------------------------------------------------------------------- /larin_a_d/rational_numbers/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(oop) 3 | 4 | include_directories(doctest) 5 | 6 | add_executable( 7 | rational_test 8 | test.cpp 9 | rational.cpp 10 | rational.h 11 | ) 12 | -------------------------------------------------------------------------------- /strijakov_d_i/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | 5 | 6 | TEST_CASE("testing the factorial function") { 7 | CHECK(HelloWorld() == "Hello World!"); 8 | } 9 | -------------------------------------------------------------------------------- /Borodkina/stack/CmakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.23.0-rc2) 2 | project(project) 3 | add_compile_options(-std=c++17) 4 | include_directories(doctest) 5 | 6 | 7 | add_executable(stack_test stack_test.cpp stack.h) 8 | 9 | 10 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /Gavryushov/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.23.0-rc2) 2 | project(project) 3 | add_compile_options(-std=c++17) 4 | include_directories(doctest) 5 | 6 | 7 | add_executable(test_stack test_stack.cpp stack.h) 8 | 9 | 10 | -------------------------------------------------------------------------------- /Ten_d_s/dyn_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable (dyn_array 8 | dynamic_array.cpp 9 | dynamic_array.h 10 | tests.cpp 11 | ) -------------------------------------------------------------------------------- /Vakhrameev_N_O/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(hello hello.cpp hello_world.h) 8 | 9 | add_executable(test test.cpp) 10 | -------------------------------------------------------------------------------- /larin_a_d/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(oop) 3 | 4 | include_directories(doctest) 5 | 6 | add_executable( 7 | dynamic_array 8 | test.cpp 9 | dynamic_array.cpp 10 | dynamic_array.h 11 | ) 12 | -------------------------------------------------------------------------------- /martynov_s_i/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable(hello 6 | hello_world.cpp 7 | hello_world.h 8 | ) 9 | 10 | add_executable(test 11 | test.cpp 12 | ) 13 | -------------------------------------------------------------------------------- /martynov_s_i/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | #include 5 | 6 | TEST_CASE("testing hello world") { 7 | CHECK(Hello_world() == "Hello world!"); 8 | } -------------------------------------------------------------------------------- /skobelev_i_s/stack/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "array": "cpp", 4 | "string_view": "cpp", 5 | "initializer_list": "cpp", 6 | "utility": "cpp", 7 | "type_traits": "cpp" 8 | } 9 | } -------------------------------------------------------------------------------- /Alexandrov_n_a/Hello_World/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "helloworld.h" 4 | #include 5 | 6 | TEST_CASE("testing the factorial function") { 7 | CHECK(HelloWorld() == "Hello World"); 8 | } -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /shinkarenko_r_o/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(rational_numbers) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test_rational 8 | test.cpp 9 | rational.cpp 10 | rational.h 11 | ) 12 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/RationalNumbers.dir/RationalNumber.cpp.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frogitcher/oop_misis_2021/HEAD/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/RationalNumbers.dir/RationalNumber.cpp.obj -------------------------------------------------------------------------------- /Gavryushov/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.23.0-rc2) 2 | project(project) 3 | add_compile_options(-std=c++17) 4 | include_directories(doctest) 5 | 6 | 7 | add_executable(test test.cpp rational.h rational.cpp) 8 | 9 | 10 | -------------------------------------------------------------------------------- /Golovznin_M_A/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(hello_world) 3 | 4 | set(CMAKE_CXX_STANDARD 17) 5 | 6 | add_executable(main main.cpp hello_world.h) 7 | 8 | add_executable(test_hello test.cpp) 9 | 10 | 11 | -------------------------------------------------------------------------------- /bychkova_m_v/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | #include 5 | 6 | TEST_CASE("testing the hello function") { 7 | CHECK(Helloworld() == "Hello World!"); 8 | } 9 | -------------------------------------------------------------------------------- /gurov_e_p/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(oop) 3 | 4 | include_directories(doctest) 5 | 6 | add_executable( 7 | dynamic_array 8 | test.cpp 9 | dynamic_array.cpp 10 | dynamic_array.h 11 | ) 12 | -------------------------------------------------------------------------------- /panin_s_a/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "hello_world.h" 3 | #include "doctest.h" 4 | #include 5 | 6 | TEST_CASE("testing the factorial function") { 7 | CHECK(HelloWorld() == "Hello World!"); 8 | } 9 | -------------------------------------------------------------------------------- /vakrameev_N_O/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(rational_nums) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(rational rational.cpp class_rational.h) 8 | 9 | add_executable(test test.cpp) 10 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: w64 9.0 (local)@C:\Program Files\JetBrains\CLion 2021.3.3\bin\mingw 2 | Options: 3 | 4 | Options:-DCMAKE_MAKE_PROGRAM=C:/Program Files/JetBrains/CLion 2021.3.3/bin/ninja/win/ninja.exe -------------------------------------------------------------------------------- /Ten_d_s/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(main 8 | main.cpp 9 | hello_world.h) 10 | 11 | add_executable(test 12 | test.cpp 13 | ) -------------------------------------------------------------------------------- /Tsykanov_A/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(hello_world) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include_directories(doctest) 5 | 6 | add_executable (main 7 | "hello.cpp" 8 | "hello.h" 9 | ) 10 | add_executable (test 11 | "test.cpp" 12 | ) -------------------------------------------------------------------------------- /bryzgalova_j_a/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | #include 5 | 6 | TEST_CASE("testing the factorial function") { 7 | CHECK(HelloWorld() == "Hello World!"); 8 | } 9 | -------------------------------------------------------------------------------- /pleshakov_i_n/hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "hello_world.h" 4 | #include 5 | 6 | TEST_CASE("testing the factorial function") { 7 | CHECK(HelloWorld() == "Hello World!"); 8 | } 9 | -------------------------------------------------------------------------------- /romanenko_y_a/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test_dynamic_array 8 | dynamic_array.cpp 9 | dynamic_array.h 10 | test.cpp 11 | ) -------------------------------------------------------------------------------- /romanenko_y_a/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_compile_options(-std=c++17) 8 | 9 | add_executable(test_stack 10 | stack.h 11 | test.cpp 12 | ) 13 | -------------------------------------------------------------------------------- /skobelev_i_s/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.9) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(main 8 | main.cpp 9 | hello_world.h 10 | ) 11 | add_executable(test 12 | test.cpp 13 | ) -------------------------------------------------------------------------------- /voskovshchuk_d_m/Hello_World/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest/doctest.h" 3 | #include "Hello_World.h" 4 | 5 | TEST_CASE("testing the factorial function") { 6 | CHECK(1 == 1); 7 | CHECK(HWorld() == "Hello World!"); 8 | } -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: w64 9.0 (local)@C:\Program Files\JetBrains\CLion 2021.3.3\bin\mingw 2 | Options: 3 | 4 | Options:-DCMAKE_MAKE_PROGRAM=C:/Program Files/JetBrains/CLion 2021.3.3/bin/ninja/win/ninja.exe -------------------------------------------------------------------------------- /Gavryushov/dynamic/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.23.0-rc2) 2 | project(project) 3 | add_compile_options(-std=c++17) 4 | include_directories(doctest) 5 | 6 | 7 | add_executable(test_dynamic test_dynamic.cpp dynamic.h dynamic.cpp) 8 | 9 | 10 | -------------------------------------------------------------------------------- /bychkova_m_v/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(test_dynamic_array 8 | dynamic_array.cpp 9 | dynamic_array.h 10 | test.cpp 11 | ) 12 | 13 | -------------------------------------------------------------------------------- /hello_world/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | 3 | 4 | #include "doctest.h" 5 | #include "hello_world.h" 6 | #include 7 | 8 | TEST_CASE("testing the factorials function") { 9 | CHECK(HelloWorld() == "Hello World!"); 10 | } 11 | -------------------------------------------------------------------------------- /Borodkina/rational/CmakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.23.0-rc2) 2 | project(project) 3 | add_compile_options(-std=c++17) 4 | include_directories(doctest) 5 | 6 | 7 | add_executable(rational_test rational_test.cpp rational.h rational.cpp) 8 | 9 | 10 | -------------------------------------------------------------------------------- /romanenko_y_a/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(main 8 | main.cpp 9 | hello_world.h) 10 | 11 | add_executable(test 12 | test.cpp 13 | ) -------------------------------------------------------------------------------- /rusakov/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(main 8 | main.cpp 9 | helloworld.h 10 | ) 11 | 12 | add_executable(test 13 | test.cpp 14 | ) 15 | 16 | -------------------------------------------------------------------------------- /Novitskiy_L_R/dyn_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable( 6 | main 7 | dyn_array.cpp 8 | dyn_array.h 9 | ) 10 | 11 | add_executable( 12 | test 13 | test.cpp 14 | ) -------------------------------------------------------------------------------- /Novitskiy_L_R/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | add_executable( 6 | main 7 | main.cpp 8 | hello_world.h 9 | ) 10 | 11 | add_executable( 12 | test 13 | test.cpp 14 | ) -------------------------------------------------------------------------------- /tyavin_v_v/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(main 8 | main.cpp 9 | hello_world.h 10 | ) 11 | 12 | add_executable(test_hello 13 | test.cpp 14 | ) 15 | -------------------------------------------------------------------------------- /allayarov_t_r/hello_world/hello_world_test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | 3 | #include "hello_world.h" 4 | 5 | #include "doctest.h" 6 | 7 | TEST_CASE("[hello_world] - testing HelloWorld function") 8 | { 9 | CHECK(HelloWorld() == "Hello World!"); 10 | } -------------------------------------------------------------------------------- /romanenko_y_a/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_compile_options(-std=c++17) 8 | 9 | add_executable(test_rational 10 | rational.cpp 11 | rational.h 12 | test.cpp 13 | ) 14 | -------------------------------------------------------------------------------- /voskovshchuk_d_m/Hello_World/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | 5 | include_directories(doctest) 6 | 7 | add_executable(main 8 | Hello_World.cpp 9 | Hello_World.h 10 | ) 11 | 12 | 13 | add_executable(test 14 | test.cpp 15 | ) 16 | 17 | -------------------------------------------------------------------------------- /Borodkina/dynamic_array/CmakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.23.0-rc2) 2 | project(project) 3 | add_compile_options(-std=c++17) 4 | include_directories(doctest) 5 | 6 | 7 | add_executable(dynamic_array_test dynamic_array_test.cpp dynamic_array.h dynamic_array.cpp) 8 | 9 | 10 | -------------------------------------------------------------------------------- /Golovznin_M_A/rational_numbers/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(rational_numbers) 3 | 4 | set(CMAKE_CXX_STANDARD 17) 5 | 6 | add_executable(rational rational.cpp rational.h) 7 | 8 | add_executable(test_rational test.cpp rational.cpp rational.h) 9 | 10 | 11 | -------------------------------------------------------------------------------- /allayarov_t_r/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.23) 2 | project(dynamic_array) 3 | 4 | add_library(da_module dynamic_array.cpp) 5 | target_link_libraries(da_module) 6 | 7 | add_executable(dynamic_array dynamic_array_test.cpp) 8 | target_link_libraries(dynamic_array da_module) 9 | -------------------------------------------------------------------------------- /allayarov_t_r/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.23) 2 | project(hello_world) 3 | 4 | add_library(hw_module hello_world.cpp) 5 | target_link_libraries(hw_module) 6 | 7 | add_executable(hello_world hello_world_test.cpp) 8 | target_link_libraries(hello_world hw_module) 9 | 10 | -------------------------------------------------------------------------------- /allayarov_t_r/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.23) 2 | project(rational) 3 | 4 | add_library(rational_module rational.cpp) 5 | target_link_libraries(rational_module) 6 | 7 | add_executable(rational rational_test.cpp) 8 | target_link_libraries(rational rational_module) 9 | 10 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-d0094a50bb2071803777.json: -------------------------------------------------------------------------------- 1 | { 2 | "backtraceGraph" : 3 | { 4 | "commands" : [], 5 | "files" : [], 6 | "nodes" : [] 7 | }, 8 | "installers" : [], 9 | "paths" : 10 | { 11 | "build" : ".", 12 | "source" : "." 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/.ninja_log: -------------------------------------------------------------------------------- 1 | # ninja log v5 2 | 8 2098 6757319173393249 CMakeFiles/RationalNumbers.dir/RationalNumber.cpp.obj 447633e45dd14ad0 3 | 2099 4179 6757319193725339 RationalNumbers.exe 720194ad0a2f1694 4 | 7 8942 6757315089323356 CMakeFiles/RationalNumbers.dir/test.cpp.obj eeaecf8d50e923b5 5 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-d0094a50bb2071803777.json: -------------------------------------------------------------------------------- 1 | { 2 | "backtraceGraph" : 3 | { 4 | "commands" : [], 5 | "files" : [], 6 | "nodes" : [] 7 | }, 8 | "installers" : [], 9 | "paths" : 10 | { 11 | "build" : ".", 12 | "source" : "." 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/CMakeFiles/HelloWorld.dir 2 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/CMakeFiles/rebuild_cache.dir 4 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /allayarov_t_r/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.23) 2 | project(lab) 3 | 4 | set(DOCTEST_DIR ${CMAKE_SOURCE_DIR}/doctest) 5 | include_directories(${DOCTEST_DIR}) 6 | 7 | add_subdirectory(doctest) 8 | add_subdirectory(hello_world) 9 | add_subdirectory(rational) 10 | add_subdirectory(dynamic_array) 11 | add_subdirectory(stack) 12 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CMakeRCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_RC_COMPILER "C:/Program Files/JetBrains/CLion 2021.3.3/bin/mingw/bin/windres.exe") 2 | set(CMAKE_RC_COMPILER_ARG1 "") 3 | set(CMAKE_RC_COMPILER_LOADED 1) 4 | set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC) 5 | set(CMAKE_RC_OUTPUT_EXTENSION .obj) 6 | set(CMAKE_RC_COMPILER_ENV_VAR "RC") 7 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CMakeRCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_RC_COMPILER "C:/Program Files/JetBrains/CLion 2021.3.3/bin/mingw/bin/windres.exe") 2 | set(CMAKE_RC_COMPILER_ARG1 "") 3 | set(CMAKE_RC_COMPILER_LOADED 1) 4 | set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC) 5 | set(CMAKE_RC_OUTPUT_EXTENSION .obj) 6 | set(CMAKE_RC_COMPILER_ENV_VAR "RC") 7 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | "C:\Program Files\JetBrains\CLion 2021.3.3\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_MAKE_PROGRAM=C:/Program Files/JetBrains/CLion 2021.3.3/bin/ninja/win/ninja.exe" -G Ninja C:\CLionProjects\oop_misis_2022\HelloWorld 2 | -- Configuring done 3 | -- Generating done 4 | -- Build files have been written to: C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug 5 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/rebuild_cache.dir 2 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/doctest.dir 3 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/RationalNumbers.dir 4 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/edit_cache.dir 5 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/3.21.1/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Windows-10.0.19044") 2 | set(CMAKE_HOST_SYSTEM_NAME "Windows") 3 | set(CMAKE_HOST_SYSTEM_VERSION "10.0.19044") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Windows-10.0.19044") 9 | set(CMAKE_SYSTEM_NAME "Windows") 10 | set(CMAKE_SYSTEM_VERSION "10.0.19044") 11 | set(CMAKE_SYSTEM_PROCESSOR "AMD64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/3.21.1/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Windows-10.0.19044") 2 | set(CMAKE_HOST_SYSTEM_NAME "Windows") 3 | set(CMAKE_HOST_SYSTEM_VERSION "10.0.19044") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Windows-10.0.19044") 9 | set(CMAKE_SYSTEM_NAME "Windows") 10 | set(CMAKE_SYSTEM_VERSION "10.0.19044") 11 | set(CMAKE_SYSTEM_PROCESSOR "AMD64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | "C:\Program Files\JetBrains\CLion 2021.3.3\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_MAKE_PROGRAM=C:/Program Files/JetBrains/CLion 2021.3.3/bin/ninja/win/ninja.exe" -G Ninja C:\CLionProjects\oop_misis_2022\DemidovichSP\RationalNumbers 2 | -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.28.0.windows.1") 3 | -- Configuring done 4 | -- Generating done 5 | -- Build files have been written to: C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug 6 | -------------------------------------------------------------------------------- /skobelev_i_s/stack/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "stack.h" 4 | 5 | TEST_CASE("checking results") { 6 | Stack one {1, 3 ,6}; 7 | Stack two {4, 7, 9, 10}; 8 | CHECK(one.Size() == 3); 9 | CHECK(two.Size() == 4); 10 | two.Pop(); 11 | CHECK(two.Size() == 3); 12 | CHECK(one != two); 13 | two.Clear(); 14 | CHECK(two.Size() == 0); 15 | two.Push(1); 16 | CHECK(two.Size() == 1); 17 | Stack three = one; 18 | CHECK(one == three); 19 | one.Merge(three); 20 | CHECK(one.Size() == 6); 21 | } 22 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/.ninja_log: -------------------------------------------------------------------------------- 1 | # ninja log v5 2 | 71 4510 6747686597713588 build.ninja 6e44dd4cbccee8cd 3 | 39 2881 6747678538170895 CMakeFiles/HelloWorld.dir/helloWorld.cpp.obj 701757a98682fc39 4 | 142 3167 6747687170364537 CMakeFiles/HelloWorld.dir/helloWorld.cpp.obj b2e1b2f3497da47d 5 | 12 2032 6747687668442062 CMakeFiles/HelloWorld.dir/test.cpp.obj c1d4d28182c086a3 6 | 6 14936 6747689514247986 CMakeFiles/HelloWorld.dir/test.cpp.obj c1d4d28182c086a3 7 | 14947 17786 6747689542754051 HelloWorld.exe 30412db64280cb2a 8 | 8 1149 6747689864116098 CMakeFiles/HelloWorld.dir/helloWorld.cpp.obj b2e1b2f3497da47d 9 | 1150 2871 6747689881283766 HelloWorld.exe 30412db64280cb2a 10 | -------------------------------------------------------------------------------- /bychkova_m_v/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | -------------------------------------------------------------------------------- /smirnov_i_v/kr/stringqueue.h: -------------------------------------------------------------------------------- 1 | #include 2 | #pragma_once 3 | 4 | class StringQueue 5 | { 6 | public: 7 | struct Node { 8 | string value; 9 | Node* next; 10 | Node(string _value, Node* _next) { 11 | value = _value; 12 | next = _next; 13 | } 14 | }; 15 | StringQueue() = default; 16 | StringQueue(initializer_list list); 17 | ~StringQueue(); 18 | void Push(string s); 19 | void Pop(); 20 | size_t Size() const; 21 | bool Empty() const; 22 | string Get() const; 23 | bool operator==(const StringQueue& rhs) const; 24 | bool operator!=(const StringQueue& rhs) const; 25 | StringQueue& operator=(const StringQueue& other); 26 | private: 27 | Node* head = nullptr; 28 | Node* tail = nullptr; 29 | size_t size = 0; 30 | }; -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(hello_world) 24 | -------------------------------------------------------------------------------- /ulyanova_hw/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(helloworld) -------------------------------------------------------------------------------- /ulyanova_m_i/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(rational) -------------------------------------------------------------------------------- /ulyanova_stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(stack) -------------------------------------------------------------------------------- /vinnik_y_v/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(rational) -------------------------------------------------------------------------------- /rusakov/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(hello_world) 24 | -------------------------------------------------------------------------------- /strijakov_d_i/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(hello_world) -------------------------------------------------------------------------------- /magomedov_m_m/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(project) 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | ExternalProject_Get_Property(doctest source_dir) 19 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 20 | include_directories(${DOCTEST_INCLUDE_DIR}) 21 | 22 | add_executable( test 23 | test.cpp 24 | rational.cpp 25 | rational.h 26 | ) -------------------------------------------------------------------------------- /zorin_k_a/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | 4 | 5 | include(ExternalProject) 6 | find_package(Git REQUIRED) 7 | 8 | ExternalProject_Add( 9 | doctest 10 | PREFIX ${CMAKE_BINARY_DIR}/doctest 11 | GIT_REPOSITORY https://github.com/doctest/doctest.git 12 | TIMEOUT 10 13 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 14 | CONFIGURE_COMMAND "" 15 | BUILD_COMMAND "" 16 | INSTALL_COMMAND "" 17 | LOG_DOWNLOAD ON 18 | ) 19 | 20 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 21 | ExternalProject_Get_Property(doctest source_dir) 22 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 23 | include_directories(${DOCTEST_INCLUDE_DIR}) 24 | 25 | add_subdirectory(rational) -------------------------------------------------------------------------------- /ulyanova_m_i/dynamicarray/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(dynamicarray) -------------------------------------------------------------------------------- /Vakhrameev_N_O/stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(stackr) 2 | cmake_minimum_required(VERSION 3.0) 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(stack) -------------------------------------------------------------------------------- /Vakhrameev_N_O/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(hello_world) -------------------------------------------------------------------------------- /laptev_a_v/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(hello_world) -------------------------------------------------------------------------------- /martynov_s_i/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | include(ExternalProject) 3 | find_package(Git REQUIRED) 4 | 5 | ExternalProject_Add( 6 | doctest 7 | PREFIX ${CMAKE_BINARY_DIR}/doctest 8 | GIT_REPOSITORY https://github.com/doctest/doctest.git 9 | TIMEOUT 10 10 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 11 | CONFIGURE_COMMAND "" 12 | BUILD_COMMAND "" 13 | INSTALL_COMMAND "" 14 | LOG_DOWNLOAD ON 15 | ) 16 | 17 | ExternalProject_Get_Property(doctest source_dir) 18 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 19 | include_directories(${DOCTEST_INCLUDE_DIR}) 20 | 21 | add_subdirectory(hello_world) 22 | add_subdirectory(rational) 23 | add_subdirectory(dynamic_array) 24 | add_subdirectory(stack) -------------------------------------------------------------------------------- /namestnikov_a_e/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(hello_world) -------------------------------------------------------------------------------- /panin_s_a/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | project(some) 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(Rational) 25 | 26 | -------------------------------------------------------------------------------- /vakrameev_N_O/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(rational_nums) 2 | cmake_minimum_required(VERSION 3.0) 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(rational) 24 | -------------------------------------------------------------------------------- /Kashpar_E_E/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(rational) 24 | add_subdirectory(hello_world) -------------------------------------------------------------------------------- /Ten_d_s/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(hello_world) 24 | add_subdirectory(rational) -------------------------------------------------------------------------------- /strijakov/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(rational) 24 | 25 | add_subdirectory(dynamic) -------------------------------------------------------------------------------- /vakhrameev_N_O/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(dynamic_array) 2 | cmake_minimum_required(VERSION 3.0) 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(dynamic) -------------------------------------------------------------------------------- /koshkin_p_v/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0 FATAL_ERROR) 2 | project(Rational) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | #Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(rational) -------------------------------------------------------------------------------- /fedor_avil/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(rational) 25 | add_subdirectory(dynamic) -------------------------------------------------------------------------------- /koshkin_p_v/Hello_World/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0 FATAL_ERROR) 2 | project(Rational) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | #Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(Hello_World) -------------------------------------------------------------------------------- /Tsykanov_A/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(hello_world) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(hello_world) 25 | add_subdirectory(Rational_numbers) -------------------------------------------------------------------------------- /shinkarenko_r_o/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(hello_world) 25 | add_subdirectory(rational) 26 | -------------------------------------------------------------------------------- /tyavin_v_v/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(hello_world) 25 | 26 | add_subdirectory(rational) 27 | -------------------------------------------------------------------------------- /Bordukova_A_A/Stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(Stack) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | include_directories(doctest) 24 | 25 | add_executable(stack 26 | test.cpp 27 | Stack.h 28 | ) 29 | -------------------------------------------------------------------------------- /rationalnumbers/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | 3 | cmake_minimum_required(VERSION 3.0) 4 | 5 | include(ExternalProject) 6 | find_package(Git REQUIRED) 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_executable( test 25 | test.cpp 26 | rational.cpp 27 | rational.h 28 | ) 29 | -------------------------------------------------------------------------------- /Alexandrov_n_a/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(Hello_World) 24 | add_subdirectory(rational) 25 | add_subdirectory(dinmas) 26 | add_subdirectory(stack) 27 | -------------------------------------------------------------------------------- /Gavryushov/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.23.0-rc2) 2 | project(project) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | 25 | 26 | add_subdirectory(rational) 27 | add_subdirectory(dynamic) 28 | add_subdirectory(stack) -------------------------------------------------------------------------------- /Borodkina/CmakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required (VERSION 3.23.0-rc2) 2 | project(project) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | 25 | 26 | add_subdirectory(rational) 27 | add_subdirectory(dynamic_array) 28 | add_subdirectory(stack) -------------------------------------------------------------------------------- /rusakov/Stack/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(Stack) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | include_directories(doctest) 25 | 26 | add_executable(test 27 | Stack.h 28 | test.cpp 29 | Stack.cpp 30 | ) -------------------------------------------------------------------------------- /skobelev_i_s/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.9) 2 | 3 | project(project) 4 | cmake_minimum_required(VERSION 3.0) 5 | 6 | include(ExternalProject) 7 | find_package(Git REQUIRED) 8 | 9 | ExternalProject_Add( 10 | doctest 11 | PREFIX ${CMAKE_BINARY_DIR}/doctest 12 | GIT_REPOSITORY https://github.com/doctest/doctest.git 13 | TIMEOUT 10 14 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 15 | CONFIGURE_COMMAND "" 16 | BUILD_COMMAND "" 17 | INSTALL_COMMAND "" 18 | LOG_DOWNLOAD ON 19 | ) 20 | 21 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 22 | ExternalProject_Get_Property(doctest source_dir) 23 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 24 | include_directories(${DOCTEST_INCLUDE_DIR}) 25 | 26 | add_subdirectory(fadeev_a_u) 27 | 28 | add_subdirectory(hello_world) -------------------------------------------------------------------------------- /romanenko_y_a/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(ExternalProject) 4 | find_package(Git REQUIRED) 5 | 6 | ExternalProject_Add( 7 | doctest 8 | PREFIX ${CMAKE_BINARY_DIR}/doctest 9 | GIT_REPOSITORY https://github.com/doctest/doctest.git 10 | TIMEOUT 10 11 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 12 | CONFIGURE_COMMAND "" 13 | BUILD_COMMAND "" 14 | INSTALL_COMMAND "" 15 | LOG_DOWNLOAD ON 16 | ) 17 | 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | 23 | add_subdirectory(hello_world) 24 | add_subdirectory(rational) 25 | add_subdirectory(dynamic_array) 26 | add_subdirectory(stack) 27 | 28 | -------------------------------------------------------------------------------- /rusakov/Rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(Rational) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | include_directories(doctest) 25 | 26 | add_executable(test 27 | rational.h 28 | test.cpp 29 | rational.cpp 30 | ) -------------------------------------------------------------------------------- /Bordukova_A_A/Rational_1/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(Rational_1) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | include_directories(doctest) 24 | 25 | add_executable(test 26 | Rational.cpp 27 | Rational.h 28 | test.cpp 29 | ) 30 | -------------------------------------------------------------------------------- /Golovznin_M_A/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(project) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(hello_world) 25 | add_subdirectory(stack) 26 | add_subdirectory(rational_numbers) -------------------------------------------------------------------------------- /bryzgalova_j_a/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.23.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 19 | ExternalProject_Get_Property(doctest source_dir) 20 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 21 | include_directories(${DOCTEST_INCLUDE_DIR}) 22 | include_directories(doctest) 23 | 24 | add_subdirectory(Rational) 25 | 26 | add_subdirectory(dynamic_array) 27 | -------------------------------------------------------------------------------- /anysimova_n_s/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | project(anysimova_n_s) 4 | 5 | include(ExternalProject) 6 | find_package(Git REQUIRED) 7 | 8 | ExternalProject_Add( 9 | doctest 10 | PREFIX ${CMAKE_BINARY_DIR}/doctest 11 | GIT_REPOSITORY https://github.com/doctest/doctest.git 12 | TIMEOUT 10 13 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 14 | CONFIGURE_COMMAND "" 15 | BUILD_COMMAND "" 16 | INSTALL_COMMAND "" 17 | LOG_DOWNLOAD ON 18 | ) 19 | 20 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 21 | ExternalProject_Get_Property(doctest source_dir) 22 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 23 | include_directories(${DOCTEST_INCLUDE_DIR}) 24 | 25 | 26 | add_subdirectory(rational) 27 | add_subdirectory(dynamic_array) 28 | add_subdirectory(stack) 29 | add_subdirectory(matrix) -------------------------------------------------------------------------------- /shabaev_r_a/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(dinamic_array) 25 | add_subdirectory(hello_world) 26 | add_subdirectory(rational) 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /smirnov_i_v/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(hello_world) 25 | 26 | add_subdirectory(rational) 27 | 28 | add_subdirectory(dyn_array) 29 | 30 | add_subdirectory(stack) -------------------------------------------------------------------------------- /Moshchenok_E_A/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(Hello_world) 25 | 26 | add_subdirectory(Rational) 27 | 28 | add_subdirectory(Dyn_array) 29 | -------------------------------------------------------------------------------- /Rusakov_N_A/DynamicArray/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(DynamicArray) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | include_directories(doctest) 25 | 26 | add_executable(test 27 | DynamicArray.h 28 | test.cpp 29 | DynamicArray.cpp 30 | ) -------------------------------------------------------------------------------- /gurov_e_p/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(oop) 3 | 4 | add_compile_options(-std=c++17) 5 | 6 | include(ExternalProject) 7 | find_package(Git REQUIRED) 8 | 9 | ExternalProject_Add( 10 | doctest 11 | PREFIX ${CMAKE_BINARY_DIR}/doctest 12 | GIT_REPOSITORY https://github.com/doctest/doctest.git 13 | TIMEOUT 10 14 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 15 | CONFIGURE_COMMAND "" 16 | BUILD_COMMAND "" 17 | INSTALL_COMMAND "" 18 | LOG_DOWNLOAD ON 19 | ) 20 | 21 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 22 | ExternalProject_Get_Property(doctest source_dir) 23 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 24 | include_directories(${DOCTEST_INCLUDE_DIR}) 25 | 26 | add_subdirectory(rational_numbers) 27 | add_subdirectory(dynamic_array) 28 | add_subdirectory(stack) 29 | -------------------------------------------------------------------------------- /namestnikov_a_e/hello_world/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_executable(main 25 | main.cpp 26 | hello_world.h 27 | ) 28 | 29 | add_executable(test 30 | test.cpp 31 | ) 32 | -------------------------------------------------------------------------------- /larin_a_d/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | project(oop) 3 | 4 | add_compile_options(-std=c++17) 5 | 6 | include(ExternalProject) 7 | find_package(Git REQUIRED) 8 | 9 | ExternalProject_Add( 10 | doctest 11 | PREFIX ${CMAKE_BINARY_DIR}/doctest 12 | GIT_REPOSITORY https://github.com/doctest/doctest.git 13 | TIMEOUT 10 14 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 15 | CONFIGURE_COMMAND "" 16 | BUILD_COMMAND "" 17 | INSTALL_COMMAND "" 18 | LOG_DOWNLOAD ON 19 | ) 20 | 21 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 22 | ExternalProject_Get_Property(doctest source_dir) 23 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 24 | include_directories(${DOCTEST_INCLUDE_DIR}) 25 | 26 | add_subdirectory(rational_numbers) 27 | add_subdirectory(dynamic_array) 28 | add_subdirectory(stack) -------------------------------------------------------------------------------- /Novitskiy_L_R/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | set(CMAKE_CXX_STANDARD 17) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | add_subdirectory(hello_world) 25 | add_subdirectory(rational) 26 | add_subdirectory(dyn_array) 27 | 28 | project(project) 29 | -------------------------------------------------------------------------------- /tarasov_e_v/rational/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(rational_numbers) 2 | cmake_minimum_required(VERSION 3.0) 3 | add_compile_options(-std=c++17) 4 | 5 | include(ExternalProject) 6 | find_package(Git REQUIRED) 7 | 8 | ExternalProject_Add( 9 | doctest 10 | PREFIX ${CMAKE_BINARY_DIR}/doctest 11 | GIT_REPOSITORY https://github.com/doctest/doctest.git 12 | TIMEOUT 10 13 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 14 | CONFIGURE_COMMAND "" 15 | BUILD_COMMAND "" 16 | INSTALL_COMMAND "" 17 | LOG_DOWNLOAD ON 18 | ) 19 | 20 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 21 | ExternalProject_Get_Property(doctest source_dir) 22 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 23 | include_directories(${DOCTEST_INCLUDE_DIR}) 24 | 25 | 26 | add_executable(test 27 | rational.h 28 | rational.cpp 29 | test.cpp 30 | ) 31 | # add_subdirectory(tarasov_e_v) -------------------------------------------------------------------------------- /Alexandrov_n_a/dinmas/dinmas.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | class dinmas { 4 | private: 5 | size_t capacity = 0; 6 | int* data; 7 | size_t size; 8 | public: 9 | dinmas(); 10 | dinmas(size_t lenght, int value = 0); 11 | dinmas(const dinmas& other); 12 | dinmas(const std::initializer_list& list); 13 | ~dinmas(); 14 | size_t Size() const; 15 | size_t Capacity() const; 16 | bool Empty() const; 17 | int& operator[](size_t i) const; 18 | int& at(size_t i) const; 19 | void push_back(int value); 20 | void Clear(); 21 | void Erase(size_t index); 22 | void Resize(size_t newsize); 23 | void assign(size_t new_size, int value); 24 | int* begin() const; 25 | int* end() const; 26 | void swap(dinmas& other); 27 | void pop_back(); 28 | void insert(const int index, const int value); 29 | bool operator== (const dinmas& other) const; 30 | bool operator!= (const dinmas& other) const; 31 | void operator= (const dinmas& other); 32 | }; 33 | -------------------------------------------------------------------------------- /Rusakov_N_A/DynamicArray/DynamicArray.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class DynamicArray { 4 | private: 5 | size_t size = 0; 6 | int* data; 7 | size_t capacity = 0; 8 | public: 9 | ~DynamicArray(); 10 | DynamicArray(size_t length = 0, int value = 0); 11 | DynamicArray(const DynamicArray& other); 12 | DynamicArray(const std::initializer_list& list); 13 | size_t Size() const; 14 | size_t Capacity() const; 15 | bool Empty() const; 16 | int& operator[](size_t i) const; 17 | int& at(size_t i)const; 18 | void push_back(int value); 19 | void pop_back(); 20 | void clear(); 21 | void erase(size_t index); 22 | void resize(size_t new_size); 23 | int* begin() const; 24 | int* end() const; 25 | void swap(DynamicArray& other); 26 | void assign(size_t new_size, int value); 27 | bool operator==(const DynamicArray& other) const; 28 | bool operator!=(const DynamicArray& other) const; 29 | DynamicArray& operator=(const DynamicArray& other); 30 | }; -------------------------------------------------------------------------------- /tarasov_e_v/dynamic_array/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(rational_numbers) 2 | cmake_minimum_required(VERSION 3.0) 3 | add_compile_options(-std=c++17) 4 | 5 | include(ExternalProject) 6 | find_package(Git REQUIRED) 7 | 8 | ExternalProject_Add( 9 | doctest 10 | PREFIX ${CMAKE_BINARY_DIR}/doctest 11 | GIT_REPOSITORY https://github.com/doctest/doctest.git 12 | TIMEOUT 10 13 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 14 | CONFIGURE_COMMAND "" 15 | BUILD_COMMAND "" 16 | INSTALL_COMMAND "" 17 | LOG_DOWNLOAD ON 18 | ) 19 | 20 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 21 | ExternalProject_Get_Property(doctest source_dir) 22 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 23 | include_directories(${DOCTEST_INCLUDE_DIR}) 24 | 25 | 26 | add_executable(test 27 | dynamicarray.cpp 28 | test.cpp 29 | ) 30 | # add_subdirectory(tarasov_e_v) -------------------------------------------------------------------------------- /Golovznin_M_A/stack/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | 3 | #include "doctest.h" 4 | #include "stack.h" 5 | 6 | TEST_CASE("Basic functionality") { 7 | Stack s1; 8 | Stack s2({1, 2, 3, 4}); 9 | Stack s3(s2); 10 | 11 | CHECK_THROWS_WITH(s1.pop(), "Stack is empty"); 12 | 13 | CHECK(s2.pop() == 4); 14 | CHECK(s2.pop() == 3); 15 | CHECK(s2.getSize() == 2); 16 | s2.push(3); 17 | CHECK(s2.getValue() == 3); 18 | CHECK(s2.getSize() == 3); 19 | 20 | CHECK(s3.getValue() == 4); 21 | CHECK(s3.getSize() == 4); 22 | 23 | s2.swap(s3); 24 | CHECK(s2.pop() == 4); 25 | CHECK(s2.getSize() == 3); 26 | 27 | s1.merge(s2); 28 | s1.merge(s3); 29 | CHECK(s1.getValue() == 3); 30 | CHECK(s1.getSize() == 6); 31 | } 32 | 33 | TEST_CASE("Bool operations") { 34 | Stack s1({1, 2, 3}); 35 | Stack s2({1, 2, 3}); 36 | 37 | CHECK(s1 == s2); 38 | s1.pop(); 39 | CHECK(s1 != s2); 40 | } -------------------------------------------------------------------------------- /boriskin_a_a/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(project) 2 | cmake_minimum_required(VERSION 3.0) 3 | 4 | include(ExternalProject) 5 | find_package(Git REQUIRED) 6 | 7 | ExternalProject_Add( 8 | doctest 9 | PREFIX ${CMAKE_BINARY_DIR}/doctest 10 | GIT_REPOSITORY https://github.com/doctest/doctest.git 11 | TIMEOUT 10 12 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 13 | CONFIGURE_COMMAND "" 14 | BUILD_COMMAND "" 15 | INSTALL_COMMAND "" 16 | LOG_DOWNLOAD ON 17 | ) 18 | 19 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 20 | ExternalProject_Get_Property(doctest source_dir) 21 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 22 | include_directories(${DOCTEST_INCLUDE_DIR}) 23 | 24 | if (MSVC) 25 | add_compile_options(/std:c++17) 26 | else() 27 | add_compile_options(-std=c++17) 28 | endif() 29 | 30 | 31 | add_subdirectory(Rational) 32 | add_subdirectory(hello_world) 33 | add_subdirectory(DynamicArray) -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(RationalNumbers) 2 | 3 | cmake_minimum_required(VERSION 3.0) 4 | add_compile_options(-std=c++17) 5 | 6 | include(ExternalProject) 7 | find_package(Git REQUIRED) 8 | 9 | ExternalProject_Add( 10 | doctest 11 | PREFIX ${CMAKE_BINARY_DIR}/doctest 12 | GIT_REPOSITORY https://github.com/doctest/doctest.git 13 | TIMEOUT 10 14 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 15 | CONFIGURE_COMMAND "" 16 | BUILD_COMMAND "" 17 | INSTALL_COMMAND "" 18 | LOG_DOWNLOAD ON 19 | ) 20 | 21 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 22 | ExternalProject_Get_Property(doctest source_dir) 23 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 24 | include_directories(${DOCTEST_INCLUDE_DIR}) 25 | 26 | 27 | add_executable( 28 | RationalNumbers 29 | RationalNumber.h 30 | RationalNumber.cpp 31 | test.cpp 32 | ) -------------------------------------------------------------------------------- /Ten_d_s/dyn_array/dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray 6 | { 7 | public: 8 | DynamicArray(int length = 0, int value = 0); 9 | DynamicArray(const DynamicArray& other); 10 | DynamicArray(const std::initializer_list& list); 11 | ~DynamicArray(); 12 | int Size() const; 13 | int Capacity() const; 14 | bool Empty() const; 15 | bool operator==(const DynamicArray& other) const; 16 | bool operator!=(const DynamicArray& other) const; 17 | int& operator[](int i) const; 18 | int& at(int i) const; 19 | void push_back(int value); 20 | void pop_back(); 21 | void clear(); 22 | void erase(int i); 23 | void resize(int nwsize); 24 | void assign(int nwsize, int value); 25 | void insert(int i, int value); 26 | int* begin() const; 27 | int* end() const; 28 | void swap(DynamicArray& other); 29 | DynamicArray& operator=(const DynamicArray& other); 30 | private: 31 | int capacity = 0; 32 | int size = 0; 33 | int* data; 34 | void ResizeArray(int nwcapacity); 35 | }; 36 | -------------------------------------------------------------------------------- /skobelev_i_s/rational/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "rational.h" 4 | 5 | TEST_CASE("checking results") { 6 | CHECK(Rational(0,5)==Rational(0,3)); 7 | CHECK(Rational(1,6)Rational(1)); 13 | CHECK(Rational(3,2)!=Rational(5,3)); 14 | CHECK(Rational(3,2)-Rational(1,2)==Rational(1)); 15 | CHECK(Rational(2)>=Rational(2,1)); 16 | CHECK((Rational(5, 1) += Rational(4, 1)) == Rational(9, 1)); 17 | CHECK((Rational(5, 1) *= Rational(0, 5)) == Rational(0)); 18 | CHECK((Rational(7, 2) -= Rational(0)) == Rational(7, 2)); 19 | CHECK((Rational(7,2)/=Rational(14,4))==Rational(1)); 20 | } 21 | 22 | TEST_CASE("testing exceptions"){ 23 | CHECK_THROWS_WITH(Rational(1, 0), "denominator must not be equal to zero"); 24 | } -------------------------------------------------------------------------------- /pleshakov_i_n/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | include(ExternalProject) 3 | find_package(Git REQUIRED) 4 | 5 | ExternalProject_Add( 6 | doctest 7 | PREFIX ${CMAKE_BINARY_DIR}/doctest 8 | GIT_REPOSITORY https://github.com/doctest/doctest.git 9 | TIMEOUT 10 10 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 11 | CONFIGURE_COMMAND "" 12 | BUILD_COMMAND "" 13 | INSTALL_COMMAND "" 14 | LOG_DOWNLOAD ON 15 | ) 16 | 17 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 18 | ExternalProject_Get_Property(doctest source_dir) 19 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 20 | include_directories(${DOCTEST_INCLUDE_DIR}) 21 | 22 | <<<<<<< pleshakov/DynamicArray 23 | add_subdirectory(Stack) 24 | 25 | add_subdirectory(Dynamic) 26 | ======= 27 | <<<<<<< origin/pleshakov/Stack 28 | 29 | add_subdirectory(Stack) 30 | 31 | 32 | ======= 33 | add_subdirectory(hello_world) 34 | 35 | add_subdirectory(Rational) 36 | >>>>>>> main 37 | >>>>>>> main 38 | -------------------------------------------------------------------------------- /fedor_avil/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational { 4 | public: 5 | Rational() = default; 6 | Rational(int _num); 7 | Rational(int _num, int _den); 8 | Rational(const Rational& other); 9 | Rational& operator=(const Rational& rhs); 10 | Rational operator+(const Rational& rhs) const; 11 | Rational& operator+=(const Rational& rhs); 12 | Rational operator-(const Rational& rhs) const; 13 | Rational& operator-=(const Rational& rhs); 14 | Rational operator*(const Rational& rhs) const; 15 | Rational& operator*=(const Rational& rhs); 16 | Rational operator/(const Rational& rhs) const; 17 | Rational& operator/=(const Rational& rhs); 18 | bool operator<(const Rational& rhs) const; 19 | bool operator<=(const Rational& rhs) const; 20 | bool operator>(const Rational& rhs) const; 21 | bool operator>=(const Rational& rhs) const; 22 | bool operator==(const Rational& rhs) const; 23 | bool operator!=(const Rational& rhs) const; 24 | ~Rational() = default; 25 | int GetNum() const; 26 | int GetDen() const; 27 | private: 28 | int num, den; 29 | void Normal(); 30 | }; 31 | -------------------------------------------------------------------------------- /smirnov_i_v/dyn_array/dyn_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynArray 6 | { 7 | public: 8 | DynArray(int64_t length = 0, int value = 0); 9 | DynArray(const DynArray& other); 10 | DynArray(const std::initializer_list& list); 11 | ~DynArray(); 12 | 13 | int64_t Size() const; 14 | int64_t Capacity() const; 15 | bool Empty() const; 16 | int& operator[](int64_t i) const; 17 | int& at(int64_t i) const; 18 | 19 | void push_back(int value); 20 | void pop_back(); 21 | void clear(); 22 | void erase(int64_t i); 23 | void resize(int64_t new_size); 24 | void assign(int64_t new_size, int value); 25 | void insert(int64_t i, int value); 26 | inline int* begin() const; 27 | inline int* end() const; 28 | void swap(DynArray& other); 29 | 30 | bool operator==(const DynArray& other) const; 31 | bool operator!=(const DynArray& other) const; 32 | DynArray& operator=(const DynArray& other); 33 | private: 34 | int64_t capacity = 0; 35 | int64_t size = 0; 36 | int* data; 37 | void reallocate(int64_t new_capacity); 38 | }; 39 | 40 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(HelloWorld) 2 | cmake_minimum_required(VERSION 3.21) 3 | set(CMAKE_CXX_STANDARD 14) 4 | add_compile_options(-std=c++17) 5 | 6 | cmake_minimum_required(VERSION 3.0) 7 | add_compile_options(-std=c++17) 8 | 9 | include(ExternalProject) 10 | find_package(Git REQUIRED) 11 | 12 | ExternalProject_Add( 13 | doctest 14 | PREFIX ${CMAKE_BINARY_DIR}/doctest 15 | GIT_REPOSITORY https://github.com/doctest/doctest.git 16 | TIMEOUT 10 17 | UPDATE_COMMAND ${GIT_EXECUTABLE} pull 18 | CONFIGURE_COMMAND "" 19 | BUILD_COMMAND "" 20 | INSTALL_COMMAND "" 21 | LOG_DOWNLOAD ON 22 | ) 23 | 24 | # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope 25 | ExternalProject_Get_Property(doctest source_dir) 26 | set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest") 27 | include_directories(${DOCTEST_INCLUDE_DIR}) 28 | 29 | 30 | add_executable(HelloWorld 31 | doctest.h 32 | test.cpp 33 | helloWorld.cpp 34 | helloWorld.h) 35 | -------------------------------------------------------------------------------- /romanenko_y_a/dynamic_array/dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray 6 | { 7 | 8 | 9 | public: 10 | DynamicArray(size_t length = 0, int value = 0); 11 | DynamicArray(const DynamicArray& other); 12 | DynamicArray(const std::initializer_list& list); 13 | ~DynamicArray(); 14 | 15 | size_t Size() const; 16 | size_t Capacity() const; 17 | bool Empty() const; 18 | int& operator[](size_t i) const; 19 | int& at(size_t i) const; 20 | 21 | void push_back(int value); 22 | void pop_back(); 23 | void clear(); 24 | void erase(size_t i); 25 | void resize(size_t new_size); 26 | void assign(size_t new_size, int value); 27 | int* begin() const; 28 | int* end() const; 29 | void swap(DynamicArray& other); 30 | 31 | DynamicArray& operator=(const DynamicArray& other); 32 | bool operator==(const DynamicArray& other) const; 33 | bool operator!=(const DynamicArray& other) const; 34 | 35 | 36 | private: 37 | size_t capacity = 0; 38 | size_t size = 0; 39 | int* data; 40 | void change_capacity(size_t new_capacity); 41 | }; -------------------------------------------------------------------------------- /martynov_s_i/dynamic_array/dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | class DynamicArray { 5 | private: 6 | size_t capacity = 0; 7 | size_t size = 0; 8 | int* data = nullptr; 9 | void Create(size_t size, size_t capacity, int* oth_data); 10 | public: 11 | DynamicArray(size_t lenght = 0, int value = 0); 12 | DynamicArray(const DynamicArray& other); 13 | DynamicArray(const std::initializer_list& list); 14 | ~DynamicArray(); 15 | 16 | size_t Size() const; 17 | size_t Capacity() const; 18 | 19 | void push_back(int value); 20 | void pop_back(); 21 | void clear(); 22 | void erase(size_t index); 23 | void insert(size_t index, int value); 24 | void resize(size_t new_size); 25 | void assign(size_t new_size, int value); 26 | void swap(DynamicArray& other); 27 | 28 | int* begin() const; 29 | int* end() const; 30 | 31 | int& operator[] (size_t i) const; 32 | int& at(size_t i) const; 33 | 34 | bool empty() const; 35 | bool operator== (const DynamicArray& other) const; 36 | bool operator!= (const DynamicArray& other) const; 37 | DynamicArray& operator= (const DynamicArray& other); 38 | }; 39 | -------------------------------------------------------------------------------- /efimenko_m_y/Dynamic/dynamic.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray { 6 | public: 7 | DynamicArray(int64_t size = 0, int value = 0); 8 | DynamicArray(const DynamicArray& other); 9 | DynamicArray(const std::initializer_list& list); 10 | ~DynamicArray(); 11 | 12 | int64_t Size() const; 13 | int64_t Capacity() const; 14 | bool Empty() const; 15 | int* GetData() const; 16 | 17 | int& operator[] (int64_t i) const; 18 | int& at(int64_t i) const; 19 | 20 | void push_back(int value); 21 | void pop_back(); 22 | void clear(); 23 | void erase(int64_t index); 24 | void insert(int64_t index, int value); 25 | void resize(int64_t new_size); 26 | void assign(int64_t new_size, int value); 27 | int* begin() const; 28 | int* end() const; 29 | void swap(DynamicArray& other); 30 | bool operator ==(const DynamicArray& other) const; 31 | bool operator !=(const DynamicArray& other) const; 32 | DynamicArray& operator = (const DynamicArray& other); 33 | private: 34 | int64_t size = 0; 35 | int64_t capacity = 0; 36 | int* data; 37 | void reallocate(int64_t new_capacity); 38 | }; 39 | -------------------------------------------------------------------------------- /Gavryushov/dynamic/dynamic.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | class DynamicArray { 5 | public: 6 | DynamicArray() = default; 7 | DynamicArray(int64_t length, int value=0); 8 | DynamicArray(const DynamicArray &other); 9 | DynamicArray(const std::initializer_list &list); 10 | ~DynamicArray(); 11 | 12 | int64_t Size() const; 13 | int64_t Capacity() const; 14 | void Reallocate(int64_t new_capacity); 15 | bool Empty() const; 16 | int& operator[](int64_t i); 17 | int& at(int64_t i) const; 18 | void push_back(int value); 19 | void pop_back(); // кинуть Exception когда пустой 20 | void clear(); 21 | void erase(int64_t index); 22 | void resize(int64_t newsize); 23 | int* begin() const; 24 | int* end() const; 25 | void swap(DynamicArray& other); 26 | void assign(int64_t new_size, int value); 27 | bool operator==(const DynamicArray& other) const; 28 | bool operator!=(const DynamicArray& other) const; 29 | DynamicArray& operator=(const DynamicArray& other); 30 | void insert(int64_t index, int value); 31 | 32 | 33 | private: 34 | int64_t capacity=0; 35 | int64_t size=0; 36 | int* data = 0; 37 | }; 38 | -------------------------------------------------------------------------------- /bychkova_m_v/stack/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "stack.h" 3 | #include "doctest.h" 4 | 5 | TEST_CASE("Constructors and bool operators"){ 6 | Stack st1; 7 | CHECK(st1.Size() == 0); 8 | CHECK(st1.Empty()); 9 | 10 | Stack st2{1, 2, 3}; 11 | CHECK(st2.Size() == 3); 12 | 13 | Stack st3(st2); 14 | CHECK(st3.Size() == 3); 15 | CHECK(st3.Get() == 3); 16 | CHECK(st2 == st3); 17 | CHECK(st2 == st2); 18 | CHECK(st3 != st1); 19 | CHECK(not(st3.Empty())); 20 | } 21 | 22 | TEST_CASE("other functions") { 23 | Stack st1{1, 2, 3, 4, 5}; 24 | st1.Push(6); 25 | CHECK(st1.Size() == 6); 26 | CHECK(st1.Get() == 6); 27 | 28 | Stack st2; 29 | st2 = st1; 30 | 31 | st1.Pop(); 32 | CHECK(st1.Size() == 5); 33 | CHECK(st1.Get() == 5); 34 | CHECK(st2.Get() == 6); 35 | 36 | st1.Clear(); 37 | CHECK(st1.Size() == 0); 38 | CHECK_THROWS_WITH(st1.Pop(), "Stack is empty!"); 39 | CHECK_THROWS_WITH(st1.Get(), "Stack is empty!"); 40 | 41 | st1.Swap(st2); 42 | CHECK(st1.Get() == 6); 43 | 44 | Stack st3 {7, 8}; 45 | st1.Merge(st3); 46 | CHECK(st3.Size() == 0); 47 | CHECK(st1.Size() == 8); 48 | } 49 | 50 | -------------------------------------------------------------------------------- /skobelev_i_s/dynamicArray/dynamic.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray { 6 | public: 7 | ~DynamicArray(); 8 | 9 | DynamicArray(size_t length = 0, int value = 0); 10 | DynamicArray(DynamicArray& other); 11 | 12 | DynamicArray(const std::initializer_list& list); 13 | 14 | size_t Size() const; 15 | size_t Capacity() const; 16 | bool Empty() const; 17 | 18 | int& operator[](size_t i) const; 19 | int& at(size_t i) const; 20 | 21 | void Push_back(int value); 22 | void Pop_back(); 23 | void Clear(); 24 | void Erase(size_t index); 25 | void Resize(size_t newSize); 26 | void Assign(size_t newSize, int value); 27 | void Insert(size_t index, int value); 28 | 29 | int* begin() const; 30 | int* end() const; 31 | 32 | void Swap(DynamicArray& other); 33 | 34 | bool operator==(const DynamicArray& other) const; 35 | bool operator!=(const DynamicArray& other) const; 36 | 37 | DynamicArray& operator=(const DynamicArray& other); 38 | 39 | private: 40 | size_t capacity = 0; 41 | size_t size = 0; 42 | int* data; 43 | }; -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/CMakeFiles/doctest.dir/Labels.txt: -------------------------------------------------------------------------------- 1 | # Target labels 2 | doctest 3 | # Source files and their labels 4 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/CMakeFiles/doctest 5 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/CMakeFiles/doctest.rule 6 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/CMakeFiles/doctest-complete.rule 7 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/doctest/src/doctest-stamp/doctest-build.rule 8 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/doctest/src/doctest-stamp/doctest-configure.rule 9 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/doctest/src/doctest-stamp/doctest-download.rule 10 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/doctest/src/doctest-stamp/doctest-install.rule 11 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/doctest/src/doctest-stamp/doctest-mkdir.rule 12 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/doctest/src/doctest-stamp/doctest-patch.rule 13 | C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug/doctest/src/doctest-stamp/doctest-update.rule 14 | -------------------------------------------------------------------------------- /pleshakov_i_n/Rational/Rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational { 4 | public: 5 | Rational(); 6 | Rational(int _num); 7 | Rational(int _num, int _den); 8 | ~Rational() = default; 9 | 10 | den_zero(); 11 | 12 | bool operator==(const Rational& rhs) const; 13 | bool operator!=(const Rational& rhs) const; 14 | bool operator<(const Rational& rhs) const; 15 | bool operator>(const Rational& rhs) const; 16 | bool operator>=(const Rational& rhs) const; 17 | bool operator<=(const Rational& rhs) const; 18 | 19 | Rational operator+(const Rational& rhs) const; 20 | Rational operator-(const Rational& rhs) const; 21 | Rational operator*(const Rational& rhs) const; 22 | Rational operator/(const Rational& rhs) const; 23 | 24 | Rational& operator+=(const Rational& rhs); 25 | Rational& operator-=(const Rational& rhs); 26 | Rational& operator*=(const Rational& rhs); 27 | Rational& operator/=(const Rational& rhs); 28 | 29 | Rational& operator++(); 30 | Rational operator++(int); 31 | Rational& operator--(); 32 | Rational operator--(int); 33 | 34 | private: 35 | void Normalize(); 36 | int num, den; 37 | }; 38 | -------------------------------------------------------------------------------- /vakrameev_N_O/rational/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "rational.cpp" 4 | 5 | TEST_CASE("checking different situations") { 6 | CHECK(Rational(0,5)==Rational(0)); 7 | CHECK(Rational(1,2)==Rational(2,4)); 8 | CHECK(Rational(1,2)Rational(1)); 14 | CHECK(Rational(3,2)!=Rational(2,3)); 15 | CHECK(Rational(3,2)-Rational(1,2)==Rational(1)); 16 | CHECK(Rational(2)>=Rational(2,1)); 17 | CHECK((Rational(5, 1) += Rational(3, 1)) == Rational(8, 1)); 18 | CHECK((Rational(5, 1) *= Rational(0, 5)) == Rational(0)); 19 | CHECK((Rational(7, 2) -= Rational(0)) == Rational(7, 2)); 20 | CHECK((Rational(7,2)/=Rational(2,7))==Rational(1)); 21 | } 22 | 23 | TEST_CASE("testing exceptions"){ 24 | CHECK_THROWS_WITH(Rational(1, 0), "Denominator must not be equal to 0!"); 25 | CHECK_THROWS_WITH((Rational(5, 2) /= Rational(0, 3)), "Division by 0!"); 26 | } 27 | 28 | -------------------------------------------------------------------------------- /rusakov/Rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | int gcd(int a, int b); 4 | 5 | class Rational { 6 | 7 | public: 8 | Rational() = default; 9 | ~Rational() = default; 10 | Rational(int _num); 11 | Rational(const int _num,const int _den); 12 | Rational (const Rational& other); 13 | 14 | bool operator==(const Rational& rhs) const; 15 | bool operator!=(const Rational& rhs) const; 16 | bool operator>(const Rational& rhs) const; 17 | bool operator<(const Rational& rhs) const; 18 | bool operator>=(const Rational& rhs) const; 19 | bool operator<= (const Rational & rhs) const; 20 | 21 | Rational& operator+=(const Rational& rhs); 22 | Rational& operator-=(const Rational& rhs); 23 | Rational& operator*=(const Rational& rhs); 24 | Rational& operator/=(const Rational & rhs); 25 | 26 | Rational operator+(const Rational& rhs) const; 27 | Rational operator-(const Rational& rhs) const; 28 | Rational operator*(const Rational& rhs) const; 29 | Rational operator/(const Rational& rhs) const; 30 | 31 | Rational& operator++(); 32 | Rational& operator--(); 33 | Rational operator++(int a); 34 | Rational operator--(int a); 35 | 36 | private: 37 | int num, den; 38 | Rational& Normalize(); 39 | }; -------------------------------------------------------------------------------- /Kashpar_E_E/dynamic_array/dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray { 6 | public: 7 | DynamicArray() = default; 8 | DynamicArray(size_t _size, int value=0); 9 | DynamicArray(const DynamicArray& other); 10 | DynamicArray(const std::initializer_list& list); 11 | ~DynamicArray(); 12 | 13 | size_t Size() const; 14 | size_t Capacity() const; 15 | bool Empty() const; 16 | 17 | int& operator[](const size_t i); 18 | int& at(size_t i) const; 19 | 20 | void push_back(int _value); 21 | void pop_back(); 22 | void clear(); 23 | void erase(size_t index); 24 | void insert(size_t index, int value); 25 | void resize(size_t new_size); 26 | void assign(size_t new_size, int value); 27 | 28 | int* begin() const; 29 | int* end() const; 30 | 31 | void swap(DynamicArray& other); 32 | 33 | bool operator==(const DynamicArray& other) const; 34 | bool operator!=(const DynamicArray& other) const; 35 | DynamicArray& operator=(const DynamicArray& other); 36 | private: 37 | size_t capacity = 0; 38 | size_t size = 0; 39 | int* data = new int[0]; 40 | }; 41 | -------------------------------------------------------------------------------- /panin_s_a/DynamicArray/DynamicArray.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | class DynamicArray { 5 | public: 6 | DynamicArray(); 7 | DynamicArray(std::size_t length, int value); 8 | DynamicArray(const DynamicArray& other); 9 | DynamicArray(const std::initializer_list& list); 10 | ~DynamicArray(); 11 | 12 | std::size_t Size() const; 13 | std::size_t Capacity() const; 14 | bool Empty() const; 15 | int& operator[](int i) const; 16 | int& At(int i) const; 17 | void Push_back(int value); 18 | void Pop_back(); 19 | void Clear(); 20 | void Erase(std::size_t index); 21 | void Insert(std::size_t index, int val); 22 | void Assign(std::size_t new_size, int val = 0); 23 | void Resize(std::size_t new_size, int val = 0); 24 | int* Begin() const; 25 | int* End() const; 26 | void Swap(DynamicArray& other); 27 | bool operator==(const DynamicArray& other) const; 28 | bool operator!=(const DynamicArray& other) const; 29 | DynamicArray& operator=(const DynamicArray& other); 30 | int* Get_data() const; 31 | private: 32 | std::size_t capacity = 0; 33 | std::size_t size = 0; 34 | int* data; 35 | }; 36 | -------------------------------------------------------------------------------- /vakhrameev_N_O/dynamic_array/dynamic/class_dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | class Dynamic_array 6 | { 7 | public: 8 | Dynamic_array() = default; 9 | Dynamic_array(size_t n, int value=0); 10 | Dynamic_array(const Dynamic_array& other); 11 | Dynamic_array(const std::initializer_list& other); 12 | ~Dynamic_array(); 13 | 14 | Dynamic_array operator=(const Dynamic_array& other); 15 | size_t Capacity() const; 16 | size_t Size() const; 17 | bool Empty() const; 18 | int& operator[](size_t i); 19 | void push_back(int value); 20 | void pop_back(); 21 | void clear(); 22 | void assign(size_t n, int value=0); 23 | void erase(size_t index); 24 | int* begin(); 25 | int* end(); 26 | void swap(Dynamic_array& other); 27 | bool operator==(const Dynamic_array& other)const; 28 | bool operator!=(const Dynamic_array& other)const; 29 | bool operator>=(const Dynamic_array& other)const; 30 | bool operator<=(const Dynamic_array& other)const; 31 | bool operator>(const Dynamic_array& other)const; 32 | bool operator<(const Dynamic_array& other)const; 33 | 34 | private: 35 | size_t size = 0; 36 | size_t capacity = 0; 37 | int* data; 38 | }; -------------------------------------------------------------------------------- /bryzgalova_j_a/Rational/Rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | class Rational{ 3 | public: 4 | Rational(); 5 | Rational(int _n); 6 | Rational(int _n, int _d); 7 | ~Rational() = default; 8 | 9 | d_zero(); 10 | 11 | bool operator==(const Rational& rhs) const; 12 | bool operator!=(const Rational& rhs) const; 13 | bool operator<(const Rational& rhs) const; 14 | bool operator>(const Rational& rhs) const; 15 | bool operator>=(const Rational& rhs) const; 16 | bool operator<=(const Rational& rhs) const; 17 | 18 | Rational operator+(const Rational& rhs) const; 19 | Rational operator-(const Rational& rhs) const; 20 | Rational operator*(const Rational& rhs) const; 21 | Rational operator/(const Rational& rhs) const; 22 | 23 | Rational& operator+=(const Rational& rhs); 24 | Rational& operator-=(const Rational& rhs); 25 | Rational& operator*=(const Rational& rhs); 26 | Rational& operator/=(const Rational& rhs); 27 | 28 | Rational& operator++(); 29 | Rational operator++(int); 30 | Rational& operator--(); 31 | Rational operator--(int); 32 | 33 | private: 34 | void Norm(); 35 | int n, d; 36 | }; -------------------------------------------------------------------------------- /Ten_d_s/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | class Rational { 5 | public: 6 | Rational() = default; 7 | Rational(int numm, int denn); 8 | Rational(int numm); 9 | ~Rational() = default; 10 | Rational(const Rational& other); 11 | 12 | Rational operator*(const Rational& rhs) const; 13 | Rational operator/(const Rational& rhs) const; 14 | Rational operator+(const Rational& rhs) const; 15 | Rational operator-(const Rational& rhs) const; 16 | 17 | Rational& operator=(const Rational& rhs); 18 | Rational& operator+=(const Rational& rhs); 19 | Rational& operator-=(const Rational& rhs); 20 | Rational& operator/=(const Rational& rhs); 21 | Rational& operator*=(const Rational& rhs); 22 | 23 | bool operator<(const Rational& rhs) const; 24 | bool operator<=(const Rational& rhs) const; 25 | bool operator>=(const Rational& rhs) const; 26 | bool operator>(const Rational& rhs) const; 27 | 28 | bool operator==(const Rational& rhs) const; 29 | bool operator!=(const Rational& rhs) const; 30 | 31 | int GetNumerator() const; 32 | int GetDenominator() const; 33 | private: 34 | void Normalize(); 35 | int num, den; 36 | }; 37 | 38 | std::ostream& operator<<(std::ostream& os, const Rational& r); 39 | -------------------------------------------------------------------------------- /bychkova_m_v/dynamic_array/dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray { 6 | private: 7 | int64_t capacity = 0; 8 | int64_t size = 0; 9 | int* data = new int[0]; 10 | void reallocate(int64_t new_capacity); 11 | 12 | public: 13 | 14 | DynamicArray() = default; 15 | DynamicArray(int64_t _size); 16 | DynamicArray(int64_t _size, int value); 17 | DynamicArray(const DynamicArray& other); 18 | DynamicArray(const std::initializer_list& list); 19 | ~DynamicArray(); 20 | 21 | int64_t Size() const; 22 | int64_t Capacity() const; 23 | int* begin() const; 24 | int* end() const; 25 | 26 | int& operator[](int64_t i) const; 27 | int& at(int64_t i) const; 28 | 29 | bool empty() const; 30 | void clear(); 31 | 32 | void erase(int64_t i); 33 | void pop_back(); 34 | void insert(int64_t i, int value); 35 | void push_back(int value); 36 | void resize(int64_t new_size); 37 | void assign(int64_t new_size, int value); 38 | 39 | DynamicArray& operator=(const DynamicArray& other); 40 | 41 | void swap(DynamicArray& other); 42 | 43 | bool operator==(const DynamicArray& other) const; 44 | bool operator!=(const DynamicArray& other) const; 45 | 46 | 47 | 48 | }; 49 | -------------------------------------------------------------------------------- /strijakov/dynamic/dynamic.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray 6 | { 7 | public: 8 | DynamicArray(size_t length = 0, int value = 0); 9 | DynamicArray(const DynamicArray& other); 10 | DynamicArray(const std::initializer_list& lists); 11 | ~DynamicArray(); 12 | 13 | size_t Size() const; 14 | size_t Capacity() const; 15 | bool Empty() const; 16 | int* GetData() const; 17 | 18 | int& operator[](size_t i) const; 19 | int& at(size_t i) const; 20 | 21 | void push_back(int value); 22 | void pop_back(); 23 | void clear(); 24 | void erase (size_t index); 25 | void resize (size_t new_size); 26 | void insert(size_t index, int value); 27 | void assign(size_t new_size, int value); 28 | void swap(DynamicArray& other); 29 | void Reallocate(size_t new_capacity); 30 | 31 | int* begin() const; 32 | int* end() const; 33 | DynamicArray& operator = (const DynamicArray& other); 34 | 35 | bool operator == (const DynamicArray& other) const; 36 | bool operator != (const DynamicArray& other) const; 37 | 38 | 39 | 40 | private: 41 | size_t capacity = 0; 42 | size_t size = 0; 43 | int* data; 44 | 45 | }; 46 | -------------------------------------------------------------------------------- /bychkova_m_v/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational { 4 | 5 | public: 6 | 7 | int GetNumerator() const; 8 | int GetDenominator() const; 9 | 10 | Rational() = default; 11 | Rational(int _num); 12 | Rational(int _num, int _den); 13 | Rational(const Rational& r); 14 | 15 | ~Rational() = default; 16 | 17 | Rational operator+(const Rational& rhs) const; 18 | Rational operator-(const Rational& rhs) const; 19 | Rational operator*(const Rational& rhs) const; 20 | Rational operator/(const Rational& rhs) const; 21 | 22 | Rational& operator=(const Rational& rhs); 23 | 24 | Rational& operator+=(const Rational& rhs); 25 | Rational& operator-=(const Rational& rhs); 26 | Rational& operator*=(const Rational& rhs); 27 | Rational& operator/=(const Rational& rhs); 28 | 29 | Rational operator-() const; 30 | 31 | Rational& operator++(); 32 | Rational operator++(int a); 33 | 34 | bool operator==(const Rational& rhs) const; 35 | bool operator!=(const Rational& rhs) const; 36 | bool operator>=(const Rational& rhs) const; 37 | bool operator<=(const Rational& rhs) const; 38 | bool operator>(const Rational& rhs) const; 39 | bool operator<(const Rational& rhs) const; 40 | 41 | private: 42 | int num, den; 43 | void Normalize(); 44 | }; 45 | -------------------------------------------------------------------------------- /zorin_k_a/dynamic/dynamic.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray 6 | { 7 | private: 8 | int64_t capacity=0; 9 | int64_t size=0; 10 | int* data; 11 | public: 12 | DynamicArray()=default; 13 | DynamicArray(int64_t length,int value=0); 14 | DynamicArray(const DynamicArray& other); 15 | DynamicArray(const std::initializer_list list); 16 | ~DynamicArray(); 17 | 18 | int64_t Size(); 19 | int64_t Capacity(); 20 | bool Empty() const; 21 | int& operator[] (int64_t i) const; 22 | int& at(int64_t i) const; 23 | void push_back(int value); 24 | void pop_back (); 25 | void clear(); 26 | void erase(int64_t index); 27 | void insert(int64_t index, int value); 28 | void resize(int64_t new_size); 29 | void reallocate(int64_t _capacity); 30 | void resize(int64_t new_size,int value); 31 | void assign(int64_t _size, int value); 32 | void swap(DynamicArray& other); 33 | int* begin(); 34 | int* end(); 35 | bool operator==(const DynamicArray& other) const; 36 | bool operator!=(const DynamicArray& other) const; 37 | DynamicArray& operator=(const DynamicArray& other); 38 | }; 39 | -------------------------------------------------------------------------------- /voskovshchuk_d_m/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class rational { 4 | private: 5 | void normal(); 6 | 7 | _int64 num, denum; 8 | 9 | public: 10 | rational() = default; 11 | rational(const _int64 num); 12 | rational(const _int64 num, const _int64 denum); 13 | rational(const rational& num); 14 | ~rational() = default; 15 | 16 | rational operator+ (const rational& rhs) const; 17 | rational operator- (const rational& rhs) const; 18 | rational operator* (const rational& rhs) const; 19 | rational operator/ (const rational& rhs) const; 20 | 21 | rational& operator+= (const rational& rhs); 22 | rational& operator-= (const rational& rhs); 23 | rational& operator*= (const rational& rhs); 24 | rational& operator/= (const rational& rhs); 25 | 26 | rational& operator++ (); 27 | rational& operator-- (); 28 | rational operator++ (int); 29 | rational operator-- (int); 30 | 31 | bool operator== (const rational& rhs) const; 32 | bool operator> (const rational& rhs) const; 33 | bool operator< (const rational& rhs) const; 34 | bool operator>= (const rational& rhs) const; 35 | bool operator<= (const rational& rhs) const; 36 | bool operator!= (const rational& rhs) const; 37 | }; -------------------------------------------------------------------------------- /anysimova_n_s/dynamic_array/dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray { 6 | public: 7 | DynamicArray(int64_t size = 0, int value = 0); 8 | DynamicArray(const std::initializer_list& list); 9 | DynamicArray(const DynamicArray& other); 10 | ~DynamicArray(); 11 | 12 | int64_t Size() const; 13 | int64_t Capacity() const; 14 | bool empty() const; 15 | 16 | void push_back(int value); 17 | void pop_back(); 18 | void clear(); 19 | void erase(int64_t index); 20 | void resize(int64_t new_size); 21 | void assign(int64_t new_size, int value); 22 | void insert(int64_t index, const int value); 23 | void swap(DynamicArray& other); 24 | 25 | int* begin(); 26 | int* end(); 27 | 28 | int& at(int64_t i) const; 29 | int& operator[](int64_t i) const; 30 | 31 | DynamicArray& operator=(const DynamicArray& rhs); 32 | 33 | bool operator==(const DynamicArray& rhs) const; 34 | bool operator!=(const DynamicArray& rhs) const; 35 | private: 36 | int64_t size = 0; 37 | int64_t capacity = 0; 38 | int* data; 39 | }; -------------------------------------------------------------------------------- /Alexandrov_n_a/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | class rational { 4 | int num; 5 | int denom; 6 | void normalize(); 7 | public: 8 | rational() = default; 9 | ~rational() = default; 10 | rational(int n, int d); 11 | int numerator() const { return num; } 12 | int denominator() const { return denom; } 13 | rational& reduce(); 14 | bool operator< (const rational& r) const; 15 | bool operator<= (const rational& r) const; 16 | bool operator> (const rational& r) const; 17 | bool operator>= (const rational& r) const; 18 | bool operator== (const rational& r) const; 19 | bool operator!= (const rational& r) const; 20 | 21 | rational operator+ (const rational& r) const; 22 | rational operator- (const rational& r) const; 23 | rational operator/ (const rational& r) const; 24 | rational operator* (const rational& r) const; 25 | 26 | rational& operator+= (const rational& r); 27 | rational& operator-= (const rational& r); 28 | rational& operator*= (const rational& r); 29 | rational& operator/= (const rational& r); 30 | 31 | rational& operator++ (); 32 | rational& operator-- (); 33 | rational operator++ (int r); 34 | rational operator-- (int r); 35 | 36 | rational& operator= (const rational& rhs); 37 | }; 38 | -------------------------------------------------------------------------------- /ulyanova_m_i/dynamicarray/dynamicarray/dynamicarray.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | #include 5 | 6 | class DynamicArray { 7 | 8 | public: 9 | 10 | DynamicArray(); 11 | DynamicArray(int64_t Length, int value = 0); 12 | DynamicArray(const DynamicArray& other); 13 | DynamicArray(const std::initializer_list& list); 14 | ~DynamicArray(); 15 | 16 | int64_t Size() const; 17 | int64_t Capacity() const; 18 | int* GetData(); 19 | bool Empty() const; 20 | 21 | void Push_back(int value); 22 | void Pop_back(); 23 | void Clear(); 24 | void Erase(int64_t index); 25 | void Resize(int64_t new_size); 26 | void Swap(DynamicArray& other); 27 | void Assign(int64_t new_size, int value); 28 | void Insert(int64_t index, int value); 29 | 30 | int* begin(); 31 | int* end(); 32 | 33 | bool operator==(const DynamicArray& other); 34 | bool operator!=(const DynamicArray& other); 35 | DynamicArray& operator=(const DynamicArray& other); 36 | 37 | int& At(int64_t i) const; 38 | int& operator[](int64_t i) const; 39 | 40 | void Realocate(int64_t new_size); 41 | 42 | private: 43 | int64_t size = 0; 44 | int64_t capacity = 0; 45 | int* data; 46 | }; -------------------------------------------------------------------------------- /romanenko_y_a/stack/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include 3 | #include "doctest.h" 4 | #include "stack.h" 5 | 6 | 7 | TEST_CASE("TEST STACK") { 8 | 9 | std::initializer_list data = { 1, 2, 3, 4, 5 }; 10 | 11 | Stack st; 12 | CHECK(st.Size() == 0); 13 | CHECK(st.Empty()); 14 | 15 | Stack st1(data); 16 | Stack st2; 17 | for (int i : data) { 18 | st2.Push(i); 19 | } 20 | CHECK(st1 == st2); 21 | CHECK(st1.Size() == data.size()); 22 | 23 | Stack st3(st1); 24 | CHECK(st1 == st3); 25 | st3 = st; 26 | CHECK(st3 == st); 27 | 28 | Stack st4 = Stack{ 1, 2, 3, 4, 5 }; 29 | CHECK(st4.Size() == 5); 30 | 31 | st1.Push(4); 32 | CHECK(st1.Get() == 4); 33 | CHECK(st1.Size() == 6); 34 | st1.Pop(); 35 | CHECK(st1.Get() == 5); 36 | CHECK(st1.Size() == 5); 37 | 38 | st1.Merge(st2); 39 | CHECK(st1 == Stack{ 1, 2, 3, 4, 5, 1, 2, 3, 4, 5 }); 40 | CHECK(st1.Size()==10); 41 | CHECK(st2.Size()==0); 42 | 43 | st4.Swap(st1); 44 | CHECK(st4.Size()==10); 45 | CHECK(st1.Size()==5); 46 | CHECK(st1 == Stack{ 1, 2, 3, 4, 5 }); 47 | 48 | st1.Clear(); 49 | CHECK(st1.Size() == 0); 50 | 51 | Stack st5; 52 | CHECK_THROWS_WITH(st.Pop(), "stack is empty"); 53 | CHECK_THROWS_WITH(st.Get(), "stack is empty"); 54 | } -------------------------------------------------------------------------------- /Alexandrov_n_a/dinmas/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "dinmas.h" 4 | 5 | 6 | TEST_CASE("array") { 7 | dinmas A{ 1,2,3,4,5 }; 8 | dinmas B{ 10,9,8,7,6,5,4,3 }; 9 | dinmas C{ 0,1 }; 10 | dinmas D{ 0,1 }; 11 | dinmas E{ 1,2,3,4,5,6 }; 12 | CHECK(C.Size() == 2); 13 | CHECK(B.Size() == 8); 14 | CHECK(C == D); 15 | CHECK(C != A); 16 | CHECK(A.Empty() == false); 17 | A.push_back(6); 18 | CHECK(A == E); 19 | A.assign(2, 111); 20 | CHECK(A == dinmas({ 111,111 })); 21 | CHECK(A.Size() == 2); 22 | dinmas G; 23 | CHECK(G.Size() == 0); 24 | CHECK(G.Capacity() == 0); 25 | G.push_back(100); 26 | CHECK(G.Size() == 1); 27 | CHECK(G == dinmas({ 100 })); 28 | B.Erase(4); 29 | CHECK(B == dinmas({ 10,9,8,7,5,4,3 })); 30 | CHECK(B.Size() == 7); 31 | dinmas H{ 1,2,3,4 }; 32 | H.insert(2, 2022); 33 | CHECK(H == dinmas({ 1,2,2022,3,4 })); 34 | CHECK(H.at(2) == 2022); 35 | dinmas I{1, 1, 1, 1, 1, 1, 1}; 36 | H.swap(I); 37 | CHECK(H.Size() == 7); 38 | CHECK(H.at(2) == 1); 39 | dinmas J; 40 | CHECK(J.Size() == 0); 41 | CHECK_THROWS_WITH(J.pop_back(), "Array size 0"); 42 | CHECK_THROWS_WITH(J.insert(999, 7), "Out of range"); 43 | CHECK_THROWS_WITH(J.Erase(999), "Array size 0"); 44 | CHECK_THROWS_WITH(J.at(1), "Going beyond the borders!"); 45 | } -------------------------------------------------------------------------------- /tyavin_v_v/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational { 4 | public: 5 | Rational() = default; 6 | Rational(int _num, int _den = 1); 7 | Rational(const Rational& other) = default; 8 | Rational& operator=(const Rational& rhs) = default; 9 | ~Rational() = default; 10 | 11 | Rational operator+(const Rational& rhs) const; 12 | Rational operator-(const Rational& rhs) const; 13 | Rational operator*(const Rational& rhs) const; 14 | Rational operator/(const Rational& rhs) const; 15 | 16 | Rational& operator+=(const Rational& rhs); 17 | Rational& operator-=(const Rational& rhs); 18 | Rational& operator*=(const Rational& rhs); 19 | Rational& operator/=(const Rational& rhs); 20 | 21 | Rational operator-() const; 22 | 23 | bool operator<(const Rational& rhs) const; 24 | bool operator<=(const Rational& rhs) const; 25 | bool operator>(const Rational& rhs) const; 26 | bool operator>=(const Rational& rhs) const; 27 | bool operator==(const Rational& rhs) const; 28 | bool operator!=(const Rational& rhs) const; 29 | 30 | Rational& operator++(); 31 | Rational operator++(int a); 32 | Rational& operator--(); 33 | Rational operator--(int a); 34 | 35 | int getnumerator() const; 36 | int getdenumerator() const; 37 | 38 | private: 39 | int num, den; 40 | void Normalize(); 41 | }; 42 | 43 | -------------------------------------------------------------------------------- /magomedov_m_m/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | class Rational { 4 | public: 5 | Rational(); 6 | ~Rational() = default; 7 | Rational(const int _num); 8 | Rational(const int _num, const int _den); 9 | Rational(const Rational& other); 10 | Rational operator+(const Rational& rhs) const; 11 | Rational operator*(const Rational& rhs) const; 12 | Rational operator-(const Rational& rhs) const; 13 | Rational operator/(const Rational& rhs) const; 14 | 15 | Rational& operator+=(const Rational& rhs); 16 | Rational& operator-=(const Rational& rhs); 17 | Rational& operator*=(const Rational& rhs); 18 | Rational& operator/=(const Rational& rhs); 19 | 20 | Rational operator++(int); 21 | Rational operator--(int); 22 | Rational& operator++(); 23 | Rational& operator--(); 24 | 25 | 26 | bool operator<(const Rational& rhs) const; 27 | bool operator>(const Rational& rhs) const; 28 | bool operator<=(const Rational& rhs) const; 29 | bool operator>=(const Rational& rhs) const; 30 | bool operator==(const Rational& rhs) const; 31 | bool operator!=(const Rational& rhs) const; 32 | 33 | public: 34 | int num, den; 35 | void Check(); 36 | void Normal(); 37 | 38 | }; 39 | std::istream& operator>>(std::istream& input, Rational& rhs); 40 | std::ostream& operator<<(std::ostream& output, const Rational& rhs); -------------------------------------------------------------------------------- /smirnov_i_v/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational { 4 | public: 5 | Rational() = default; 6 | Rational(int _num); 7 | Rational(int _num, int _den); 8 | Rational(const Rational& other); 9 | ~Rational() = default; 10 | 11 | Rational& operator=(const Rational& rhs); 12 | 13 | Rational operator+ (const Rational& rhs) const; 14 | Rational operator- (const Rational& rhs) const; 15 | Rational operator*(const Rational& rhs) const; 16 | Rational operator/(const Rational& rhs) const; 17 | 18 | Rational& operator+=(const Rational& rhs); 19 | Rational& operator-=(const Rational& rhs); 20 | Rational& operator*=(const Rational& rhs); 21 | Rational& operator/=(const Rational& rhs); 22 | 23 | Rational operator-() const; 24 | 25 | bool operator<(const Rational& rhs) const; //true if *this < rhs 26 | bool operator<=(const Rational& rhs) const; 27 | bool operator>(const Rational& rhs) const; 28 | bool operator>=(const Rational& rhs) const; 29 | bool operator==(const Rational& rhs) const; 30 | bool operator!=(const Rational& rhs) const; 31 | 32 | Rational& operator++(); 33 | Rational operator++(int a); 34 | Rational& operator--(); 35 | Rational operator--(int a); 36 | 37 | int getnumerator() const; 38 | int getdenumerator() const; 39 | 40 | private: 41 | int num, den; 42 | void Normalize(); 43 | }; -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-58fcadd6fae72cb01c10.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations" : 3 | [ 4 | { 5 | "directories" : 6 | [ 7 | { 8 | "build" : ".", 9 | "jsonFile" : "directory-.-Debug-d0094a50bb2071803777.json", 10 | "minimumCMakeVersion" : 11 | { 12 | "string" : "3.21" 13 | }, 14 | "projectIndex" : 0, 15 | "source" : ".", 16 | "targetIndexes" : 17 | [ 18 | 0 19 | ] 20 | } 21 | ], 22 | "name" : "Debug", 23 | "projects" : 24 | [ 25 | { 26 | "directoryIndexes" : 27 | [ 28 | 0 29 | ], 30 | "name" : "HelloWorld", 31 | "targetIndexes" : 32 | [ 33 | 0 34 | ] 35 | } 36 | ], 37 | "targets" : 38 | [ 39 | { 40 | "directoryIndex" : 0, 41 | "id" : "HelloWorld::@6890427a1f51a3e7e1df", 42 | "jsonFile" : "target-HelloWorld-Debug-52d1c4b55f7f3e5c5b63.json", 43 | "name" : "HelloWorld", 44 | "projectIndex" : 0 45 | } 46 | ] 47 | } 48 | ], 49 | "kind" : "codemodel", 50 | "paths" : 51 | { 52 | "build" : "C:/CLionProjects/DemidovichSP/HelloWorld/cmake-build-debug", 53 | "source" : "C:/CLionProjects/DemidovichSP/HelloWorld" 54 | }, 55 | "version" : 56 | { 57 | "major" : 2, 58 | "minor" : 3 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /DemidovichSP/HelloWorld/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-0a5de5ba5b0179fa131b.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations" : 3 | [ 4 | { 5 | "directories" : 6 | [ 7 | { 8 | "build" : ".", 9 | "jsonFile" : "directory-.-Debug-d0094a50bb2071803777.json", 10 | "minimumCMakeVersion" : 11 | { 12 | "string" : "3.21" 13 | }, 14 | "projectIndex" : 0, 15 | "source" : ".", 16 | "targetIndexes" : 17 | [ 18 | 0 19 | ] 20 | } 21 | ], 22 | "name" : "Debug", 23 | "projects" : 24 | [ 25 | { 26 | "directoryIndexes" : 27 | [ 28 | 0 29 | ], 30 | "name" : "HelloWorld", 31 | "targetIndexes" : 32 | [ 33 | 0 34 | ] 35 | } 36 | ], 37 | "targets" : 38 | [ 39 | { 40 | "directoryIndex" : 0, 41 | "id" : "HelloWorld::@6890427a1f51a3e7e1df", 42 | "jsonFile" : "target-HelloWorld-Debug-98f3fcf09a326e98c971.json", 43 | "name" : "HelloWorld", 44 | "projectIndex" : 0 45 | } 46 | ] 47 | } 48 | ], 49 | "kind" : "codemodel", 50 | "paths" : 51 | { 52 | "build" : "C:/CLionProjects/oop_misis_2022/HelloWorld/cmake-build-debug", 53 | "source" : "C:/CLionProjects/oop_misis_2022/HelloWorld" 54 | }, 55 | "version" : 56 | { 57 | "major" : 2, 58 | "minor" : 3 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /boriskin_a_a/DynamicArray/dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray { 6 | public: 7 | DynamicArray(); 8 | DynamicArray(size_t size, int value = 0); 9 | DynamicArray(const DynamicArray& other); 10 | DynamicArray(const std::initializer_list& list); 11 | ~DynamicArray(); 12 | 13 | size_t Size() const; 14 | size_t Capacity() const; 15 | bool Empty() const; 16 | 17 | void push_back(int value); 18 | void pop_back(); 19 | void clear(); 20 | void erase(size_t index); 21 | void resize(size_t new_size, int value = 0 ); 22 | void insert(size_t index, int value); 23 | void swap(DynamicArray& other); 24 | 25 | int* begin(); 26 | int* end(); 27 | 28 | int& At(size_t i) const; 29 | 30 | int& operator[](size_t i) const; 31 | 32 | DynamicArray& operator=(const DynamicArray& rhs); 33 | bool operator==(const DynamicArray& rhs) const; 34 | bool operator!=(const DynamicArray& rhs) const; 35 | private: 36 | 37 | //Force resize capacity using new memory allocation 38 | void remapmemory(size_t new_size); 39 | size_t _size = 0; 40 | size_t _capacity = 0; 41 | int* _data = 0; 42 | }; -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/doctest.dir/Labels.txt: -------------------------------------------------------------------------------- 1 | # Target labels 2 | doctest 3 | # Source files and their labels 4 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/doctest 5 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/doctest.rule 6 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/CMakeFiles/doctest-complete.rule 7 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/doctest/src/doctest-stamp/doctest-build.rule 8 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/doctest/src/doctest-stamp/doctest-configure.rule 9 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/doctest/src/doctest-stamp/doctest-download.rule 10 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/doctest/src/doctest-stamp/doctest-install.rule 11 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/doctest/src/doctest-stamp/doctest-mkdir.rule 12 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/doctest/src/doctest-stamp/doctest-patch.rule 13 | C:/CLionProjects/oop_misis_2022/DemidovichSP/RationalNumbers/cmake-build-debug/doctest/src/doctest-stamp/doctest-update.rule 14 | -------------------------------------------------------------------------------- /skobelev_i_s/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational { 4 | public: 5 | Rational() = default; 6 | ~Rational() = default; 7 | 8 | Rational(int _num); 9 | Rational(int _num, int _den); 10 | Rational(const Rational& other); 11 | 12 | int GetNumerator() const; 13 | int GetDenominator() const; 14 | 15 | Rational& operator=(const Rational& rhs); 16 | 17 | Rational operator+(const Rational& rhs) const; 18 | Rational operator-(const Rational& rhs) const; 19 | Rational operator*(const Rational& rhs) const; 20 | Rational operator/(const Rational& rhs) const; 21 | 22 | Rational& operator+=(const Rational& rhs); 23 | Rational& operator-=(const Rational& rhs); 24 | Rational& operator*=(const Rational& rhs); 25 | Rational& operator/=(const Rational& rhs); 26 | 27 | bool operator<(const Rational& rhs) const; 28 | bool operator<=(const Rational& rhs) const; 29 | bool operator>(const Rational& rhs) const; 30 | bool operator>=(const Rational& rhs) const; 31 | 32 | bool operator==(const Rational& rhs) const; 33 | bool operator!=(const Rational& rhs) const; 34 | 35 | Rational operator+() const; 36 | Rational operator-() const; 37 | Rational& operator++(); 38 | Rational operator++(int); 39 | 40 | private: 41 | int num, den; 42 | void Normalize(); 43 | }; 44 | -------------------------------------------------------------------------------- /Novitskiy_L_R/dyn_array/dyn_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | class DynamicArray { 8 | public: 9 | DynamicArray() = default; 10 | 11 | DynamicArray(size_t _size, int fill_value = 0); 12 | 13 | DynamicArray(const DynamicArray &dyn_array); 14 | 15 | DynamicArray(const std::initializer_list &init_list); 16 | 17 | ~DynamicArray(); 18 | 19 | size_t Size() const; 20 | 21 | size_t Capacity() const; 22 | 23 | bool Empty() const; 24 | 25 | int &operator[](const size_t index); 26 | 27 | int &at(size_t i) const; 28 | 29 | void push_back(int push_value); 30 | 31 | void pop_back(); 32 | 33 | void clear(); 34 | 35 | void erase(size_t index); 36 | 37 | void insert(size_t index, int insert_value); 38 | 39 | void resize(size_t new_size); 40 | 41 | void assign(size_t new_size, int value); 42 | 43 | int *begin() const; 44 | 45 | int *end() const; 46 | 47 | void swap(DynamicArray &swap_value); 48 | 49 | bool operator==(const DynamicArray &other_dyn_array) const; 50 | 51 | bool operator!=(const DynamicArray &other_dyn_array) const; 52 | 53 | DynamicArray &operator=(const DynamicArray &other_dyn_array); 54 | 55 | private: 56 | size_t capacity = 0; 57 | size_t size = 0; 58 | int *data = new int[0]; 59 | }; -------------------------------------------------------------------------------- /shabaev_r_a/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational { 4 | public: 5 | Rational() = default; 6 | Rational(int _num, int _den=1); 7 | Rational(const Rational& other); 8 | ~Rational() = default; 9 | 10 | Rational& operator=(const Rational& rhs); 11 | 12 | Rational operator+ (const Rational& rhs) const; 13 | Rational operator- (const Rational& rhs) const; 14 | Rational operator*(const Rational& rhs) const; 15 | Rational operator/(const Rational& rhs) const; 16 | 17 | Rational& operator+=(const Rational& rhs); 18 | Rational& operator-=(const Rational& rhs); 19 | Rational& operator*=(const Rational& rhs); 20 | Rational& operator/=(const Rational& rhs); 21 | 22 | Rational operator-() const; 23 | 24 | bool operator<(const Rational& rhs) const; //true if *this < rhs 25 | bool operator<=(const Rational& rhs) const; 26 | bool operator>(const Rational& rhs) const; 27 | bool operator>=(const Rational& rhs) const; 28 | bool operator==(const Rational& rhs) const; 29 | bool operator!=(const Rational& rhs) const; 30 | 31 | Rational& operator++(); 32 | Rational operator++(int a); 33 | Rational& operator--(); 34 | Rational operator--(int a); 35 | 36 | int getnumerator() const; 37 | int getdenumerator() const; 38 | 39 | private: 40 | int num, den; 41 | void Normalize(); 42 | }; -------------------------------------------------------------------------------- /bryzgalova_j_a/Rational/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include 3 | #include "doctest.h" 4 | #include "Rational.h" 5 | 6 | TEST_CASE("Arithmetic operators") { 7 | Rational a(10, 17), b(11, 13), c(5, 7), d(51, 3), e(-7, -17), f(13, -13), h(17, 5); 8 | 9 | CHECK((a+b) == Rational(317, 221)); 10 | CHECK((a+c) == Rational(155, 119)); 11 | CHECK((a+d) == Rational(299, 17)); 12 | CHECK((a+e) == Rational(1)); 13 | CHECK((a+f) == Rational(-7, 17)); 14 | CHECK((a-h) == Rational(239, 85)); 15 | CHECK((a/e) == Rational(10, 7)); 16 | 17 | CHECK((a+=b) == Rational(317, 221)); 18 | CHECK((a*=h) == Rational(2)); 19 | } 20 | TEST_CASE("Boolean operators") { 21 | Rational a(1, 2), b(-111, -222), c(13, 15), d(17, -3); 22 | CHECK((a == b) == true); 23 | CHECK((a < d) == false); 24 | CHECK((c > a) == true); 25 | CHECK((d <= c) == true); 26 | CHECK((a >= d) == true); 27 | CHECK((b != c) == true); 28 | } 29 | TEST_CASE("Unary operators") { 30 | Rational a(15); 31 | CHECK((++a) == Rational(16)); 32 | CHECK((a++) == Rational(16)); 33 | CHECK((--a) == Rational(16)); 34 | CHECK((a--) == Rational(16)); 35 | } 36 | 37 | TEST_CASE("Denominator") { 38 | Rational b(1, 2); 39 | CHECK_THROWS_WITH(Rational(5, 0), "The denominator is just not 0"); 40 | CHECK_THROWS_WITH((b /= Rational(0, 5)), "The denominator is just not 0"); 41 | } -------------------------------------------------------------------------------- /Borodkina/dynamic_array/dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | #include 4 | 5 | class DynamicArray { 6 | public: 7 | DynamicArray(int64_t size = 0, int value = 0); 8 | DynamicArray(const DynamicArray& other); 9 | DynamicArray(const std::initializer_list& list); 10 | ~DynamicArray(); 11 | 12 | int64_t Size() const; 13 | int64_t Capacity() const; 14 | int* GetData() const; 15 | void Reallocate(int64_t new_capacity); 16 | 17 | bool Empty() const; 18 | 19 | int& operator[](int64_t i) const; 20 | int& at(int64_t i) const; 21 | 22 | void push_back(int value); 23 | void pop_back(); 24 | void clear(); 25 | void erase(int64_t index); 26 | void resize(int64_t new_size); 27 | void reallocate(int64_t new_capacity); 28 | void assign(int64_t new_size, int value); 29 | void insert(int64_t index, int value); 30 | void swap(DynamicArray& other); 31 | 32 | int* begin(); 33 | int* end(); 34 | 35 | DynamicArray& operator=(const DynamicArray& other); 36 | bool operator==(const DynamicArray& other) const; 37 | bool operator!=(const DynamicArray& other) const; 38 | private: 39 | int64_t size = 0; 40 | int64_t capacity = 0; 41 | int* data = 0; 42 | }; 43 | 44 | -------------------------------------------------------------------------------- /magomedov_m_m/rational/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "rational.h" 4 | 5 | TEST_CASE("Booleans") { 6 | Rational a(1, 2), b(-3, 4), c, d(1), f(5, 10); 7 | CHECK((a != b)); 8 | CHECK((a == f)); 9 | CHECK((a >= b)); 10 | CHECK((c <= d)); 11 | CHECK(!(a > f)); 12 | CHECK((b < d)); 13 | } 14 | 15 | TEST_CASE("+ - * / += *= -= /=") { 16 | Rational a(1, 2), b(-3, 4), c, d(1), f(5, 10); 17 | CHECK((a+b == Rational(-1,4))); 18 | CHECK((a-b == Rational(5,4))); 19 | CHECK((a * d==a)); 20 | CHECK((f / a==Rational(1))); 21 | a += b; 22 | c -= d; 23 | f *= a; 24 | b /= d; 25 | CHECK((a == Rational(-1, 4))); 26 | CHECK((c == Rational(-1))); 27 | CHECK((f == Rational(-1,8))); 28 | CHECK((b == Rational(-3,4))); 29 | } 30 | 31 | TEST_CASE("++ --") { 32 | Rational a(1, 2), b(-3, 4), c, d(1), f(5, 10); 33 | CHECK(!(Rational (1,2)== ++a)); 34 | CHECK((Rational (3,2)== a)); 35 | CHECK((Rational (-3,4) == b++)); 36 | CHECK((Rational (1,4) == b)); 37 | CHECK((Rational () == --d)); 38 | CHECK((Rational (5,10)== f--)); 39 | CHECK((Rational (-5,10)== f)); 40 | } 41 | 42 | TEST_CASE("Errors") { 43 | Rational a(0,1); 44 | CHECK_THROWS_WITH(Rational(1, 0), "You cannot divide by zero"); 45 | CHECK_THROWS_WITH(Rational(1) /= a, "You cannot divide by zero"); 46 | } 47 | 48 | -------------------------------------------------------------------------------- /Borodkina/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational{ 4 | public: 5 | Rational()=default; 6 | Rational(int _num); 7 | Rational(int _num, int _den); 8 | Rational(const Rational& other); 9 | ~Rational()=default; 10 | 11 | Rational operator+(const Rational& rhs) const; 12 | Rational operator-(const Rational& rhs) const; 13 | Rational operator*(const Rational& rhs) const; 14 | Rational operator/(const Rational& rhs) const; 15 | 16 | Rational& operator+=(const Rational& rhs); 17 | Rational& operator-=(const Rational& rhs); 18 | Rational& operator*=(const Rational& rhs); 19 | Rational& operator/=(const Rational& rhs); 20 | 21 | Rational operator -(); 22 | Rational operator +(); 23 | 24 | Rational& operator=(const Rational& rhs); 25 | bool operator<(const Rational& rhs ) const; 26 | bool operator>(const Rational& rhs ) const; 27 | bool operator<=(const Rational& rhs ) const; 28 | bool operator>=(const Rational& rhs ) const; 29 | bool operator==(const Rational& rhs) const; 30 | bool operator!=(const Rational& rhs) const; 31 | 32 | Rational& operator++(); 33 | Rational operator++(int); 34 | Rational& operator--(); 35 | Rational operator--(int); 36 | 37 | int GetDenominator() const; 38 | int GetNumerator() const; 39 | 40 | private: 41 | int num; 42 | int den; 43 | void Normalize(); 44 | }; 45 | std::ostream& operator<<(std::ostream& os, const Rational& r); -------------------------------------------------------------------------------- /Kashpar_E_E/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational { 4 | public: 5 | Rational() = default; 6 | Rational(int _num); 7 | Rational(int _num, int _den); 8 | Rational(const Rational& other); 9 | ~Rational() = default; 10 | 11 | Rational& operator=(const Rational& rhs); 12 | 13 | Rational& operator+=(const Rational& rhs); 14 | Rational& operator-=(const Rational& rhs); 15 | Rational& operator*=(const Rational& rhs); 16 | Rational& operator/=(const Rational& rhs); 17 | 18 | Rational operator+(const Rational& rhs) const; 19 | Rational operator-(const Rational& rhs) const; 20 | Rational operator*(const Rational& rhs) const; 21 | Rational operator/(const Rational& rhs) const; 22 | 23 | Rational operator+() const; 24 | Rational operator-() const; 25 | 26 | bool operator<(const Rational& rhs) const; 27 | bool operator<=(const Rational& rhs) const; 28 | bool operator>(const Rational& rhs) const; 29 | bool operator>=(const Rational& rhs) const; 30 | bool operator==(const Rational& rhs) const; 31 | bool operator!=(const Rational& rhs) const; 32 | 33 | Rational& operator++(); 34 | Rational operator++(int); 35 | Rational& operator--(); 36 | Rational operator--(int); 37 | 38 | int getNominator() const; 39 | int getDenominator() const; 40 | 41 | private: 42 | void Normalize(); 43 | int num, den; 44 | }; 45 | -------------------------------------------------------------------------------- /shinkarenko_r_o/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational 4 | { 5 | public: 6 | Rational() = default; 7 | Rational(int _num); 8 | Rational(int _num, int _den); 9 | Rational(const Rational& other); 10 | ~Rational() = default; 11 | 12 | Rational& operator=(const Rational& rhs); 13 | 14 | Rational operator+(const Rational& rhs) const; 15 | Rational operator-(const Rational& rhs) const; 16 | Rational operator/(const Rational& rhs) const; 17 | Rational operator*(const Rational& rhs) const; 18 | 19 | Rational& operator+=(const Rational& rhs); 20 | Rational& operator*=(const Rational& rhs); 21 | Rational& operator-=(const Rational& rhs); 22 | Rational& operator/=(const Rational& rhs); 23 | 24 | Rational operator-() const; 25 | Rational operator+() const; 26 | 27 | bool operator==(const Rational& rhs) const; 28 | bool operator!=(const Rational& rhs) const; 29 | bool operator<(const Rational& rhs) const; 30 | bool operator>(const Rational& rhs) const; 31 | bool operator<=(const Rational& rhs) const; 32 | bool operator>=(const Rational& rhs) const; 33 | 34 | Rational operator++(int t); 35 | Rational& operator++(); 36 | Rational operator--(int t); 37 | Rational& operator--(); 38 | 39 | int GetNumerator(); 40 | int GetDenominator(); 41 | 42 | private: 43 | void Normalize(); 44 | int num, den; 45 | 46 | }; -------------------------------------------------------------------------------- /tarasov_e_v/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | class Rational{ 5 | public: 6 | Rational() = default; 7 | Rational(int _numenator); 8 | Rational(int _numenator, int _denominator); 9 | Rational(const Rational& rhs); 10 | ~Rational() = default; 11 | 12 | Rational& operator=(const Rational& rhs); 13 | Rational operator+(const Rational& rhs) const; 14 | Rational operator-(const Rational& rhs) const; 15 | Rational operator*(const Rational& rhs) const; 16 | Rational operator/(const Rational& rhs) const; 17 | 18 | 19 | Rational& operator+=(const Rational& rhs); 20 | Rational& operator-=(const Rational& rhs); 21 | Rational& operator*=(const Rational& rhs); 22 | Rational& operator/=(const Rational& rhs); 23 | 24 | Rational operator-(); 25 | Rational operator+(); 26 | 27 | bool operator==(const Rational& rhs) const; 28 | bool operator!=(const Rational& rhs) const; 29 | bool operator<(const Rational& rhs) const; 30 | bool operator>(const Rational& rhs) const; 31 | bool operator<=(const Rational& rhs) const; 32 | bool operator>=(const Rational& rhs) const; 33 | 34 | int GetNumerator() const; 35 | int GetDenominator() const; 36 | 37 | 38 | private: 39 | int numerator, denominator; 40 | void Normalize(); 41 | }; 42 | 43 | std::ostream& operator<<(std::ostream& os, const Rational& r); -------------------------------------------------------------------------------- /allayarov_t_r/dynamic_array/dynamic_array.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #ifndef DYNAMIC_ARRAY_H 3 | #define DYNAMIC_ARRAY_H 4 | 5 | #include 6 | #include 7 | 8 | class DynamicArray 9 | { 10 | public: 11 | DynamicArray(); 12 | DynamicArray(const size_t size, const int value = 0); 13 | DynamicArray(const DynamicArray &array); 14 | DynamicArray(const std::initializer_list &init_list); 15 | ~DynamicArray(); 16 | 17 | int &operator[](const size_t idx) const; 18 | bool operator==(const DynamicArray &rhs) const; 19 | bool operator!=(const DynamicArray &rhs) const; 20 | DynamicArray &operator=(const DynamicArray &rhs); 21 | 22 | size_t size() const; 23 | size_t capacity() const; 24 | bool empty() const; 25 | void resize(const size_t new_size, const int value = 0); 26 | void reserve(const size_t new_capacity); 27 | void shrink_to_fit(); 28 | 29 | void push_back(const int value); 30 | void pop_back(); 31 | void clear(); 32 | void swap(DynamicArray &array); 33 | void erase(const size_t idx); 34 | void insert(const size_t idx, const int value); 35 | void assign(const size_t size, const int value); 36 | void assign(const std::initializer_list &init_list); 37 | 38 | int &at(const size_t idx) const; 39 | int *begin() const; 40 | int *end() const; 41 | 42 | private: 43 | size_t capacity_{0}; 44 | size_t size_{0}; 45 | int *data_; 46 | }; 47 | 48 | #endif /* DYNAMIC_ARRAY_H */ -------------------------------------------------------------------------------- /zorin_k_a/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | 5 | class Rational 6 | { 7 | public: 8 | Rational()=default; 9 | Rational (int _num); 10 | Rational(int _num, int _den); 11 | Rational (const Rational&other); 12 | ~Rational()=default; 13 | 14 | 15 | Rational operator=(const Rational&rhs); 16 | 17 | 18 | Rational operator+(const Rational&rhs); 19 | Rational operator-(const Rational&rhs); 20 | Rational operator*(const Rational&rhs) const; 21 | Rational operator/(const Rational&rhs) const; 22 | //-,*,/ 23 | Rational& operator+=(const Rational&rhs); 24 | Rational& operator-=(const Rational&rhs); 25 | Rational& operator*=(const Rational& rhs); 26 | Rational& operator/=(const Rational& rhs); 27 | 28 | Rational& operator--(); 29 | Rational operator--(int a); 30 | Rational operator++(int a); 31 | Rational& operator++(); 32 | bool operator<(const Rational&rhs) const; 33 | bool operator==(const Rational&rhs) const; 34 | bool operator>(const Rational&rhs) const; 35 | bool operator<=(const Rational&rhs) const; 36 | bool operator>=(const Rational&rhs) const; 37 | bool operator!=(const Rational& rhs) const; 38 | 39 | 40 | 41 | int GetNumerator() const; 42 | int GetDenumerator() const; 43 | private: 44 | void Normalize(); 45 | int num,den; 46 | }; 47 | std::ostream& operator<<(std::ostream& os, const Rational& r); 48 | -------------------------------------------------------------------------------- /Gavryushov/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | class Rational { 4 | public: 5 | Rational() = default; 6 | Rational(int _num); 7 | Rational(int _num, int _den); 8 | Rational(const Rational& other); 9 | ~Rational() = default; 10 | 11 | Rational& operator=(const Rational& rhs); 12 | 13 | Rational operator+(const Rational& rhs) const; 14 | Rational operator-(const Rational& rhs) const; 15 | Rational operator*(const Rational& rhs) const; 16 | Rational operator/(const Rational& rhs) const; 17 | //-,*,/ 18 | 19 | Rational& operator+=(const Rational& rhs); 20 | Rational& operator-=(const Rational& rhs); 21 | Rational& operator*=(const Rational& rhs); 22 | Rational& operator/=(const Rational& rhs); 23 | //-=,*=,/= 24 | 25 | Rational operator-(); 26 | Rational operator+(); 27 | 28 | bool operator<(const Rational& rhs) const; 29 | bool operator>(const Rational& rhs) const; 30 | bool operator<=(const Rational& rhs) const; 31 | bool operator>=(const Rational& rhs) const; 32 | bool operator!=(const Rational& rhs) const; 33 | bool operator==(const Rational& rhs) const; 34 | 35 | Rational& operator++(); 36 | Rational operator++(int a); 37 | Rational& operator--(); 38 | Rational operator--(int a); 39 | 40 | 41 | 42 | 43 | int GetNumerator() const; 44 | int GetDenominator() const; 45 | 46 | private: 47 | int num, den; 48 | void Normalize(); 49 | }; 50 | std::ostream& operator<<(std::ostream& os, const Rational& r); -------------------------------------------------------------------------------- /boriskin_a_a/Rational/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "rational.h" 4 | 5 | TEST_CASE("boolean operators") 6 | { 7 | Rational a(1, 2), b(2, 4), c(5, 3),d(3, 4); 8 | CHECK(a == b); 9 | CHECK(!(a > c)); 10 | CHECK(d > a); 11 | CHECK(b <= c); 12 | CHECK(!(a >= d)); 13 | CHECK(a != d); 14 | } 15 | TEST_CASE("arithmetic operators") { 16 | Rational a(1, 2), b(2, 4), c(5, 3),d(3, 4); 17 | CHECK(a + b == Rational(1, 1)); 18 | CHECK(a - b == Rational(0, 1)); 19 | CHECK(a * c == Rational(5,6)); 20 | CHECK(a / b == Rational(1, 1)); 21 | CHECK(a - d == Rational(-1, 4)); 22 | Rational x(-5, 6), y(-1,6); 23 | x+=y; 24 | CHECK(x == Rational(-1,1)); 25 | Rational q(-5, 6); 26 | q-=y; 27 | CHECK(q == Rational(-2,3)); 28 | Rational w(-5, 6); 29 | w*=y; 30 | CHECK(w == Rational(5,36)); 31 | Rational e(-5, 6); 32 | e/=y; 33 | CHECK(e == Rational(5,1)); 34 | } 35 | TEST_CASE("Testing other operators") 36 | { 37 | Rational a(1, 2), b(2, 4), c(5, 3),d(3, 4); 38 | a++; 39 | d--; 40 | CHECK(++c == Rational(8, 3)); 41 | CHECK(a == Rational(3, 2)); 42 | CHECK(d == Rational(-1, 4)); 43 | CHECK(--b == Rational(-1, 2)); 44 | } 45 | TEST_CASE("exceptions") { 46 | CHECK_THROWS_WITH(Rational(1, 0), "invalid denum - 0!"); 47 | CHECK_THROWS_WITH((Rational(1, 2) /= Rational(0, 3)), "invalid denum - 0!"); 48 | } 49 | -------------------------------------------------------------------------------- /strijakov/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | class Rational { 5 | public: 6 | Rational() = default; 7 | Rational(int _num, int _den); 8 | Rational(const Rational& other); 9 | Rational(int _num); 10 | ~Rational() = default; 11 | 12 | Rational operator+(const Rational& rhs) const; 13 | Rational operator-(const Rational& rhs) const; 14 | Rational operator*(const Rational& rhs) const; 15 | Rational operator/(const Rational& rhs) const; 16 | 17 | Rational& operator+=(const Rational& rhs); 18 | Rational& operator-=(const Rational& rhs); 19 | Rational& operator*=(const Rational& rhs); 20 | Rational& operator/=(const Rational& rhs); 21 | Rational& operator=(const Rational& rhs); 22 | Rational operator-() const; 23 | 24 | Rational& operator++(); 25 | Rational operator++(int a); 26 | Rational& operator--(); 27 | Rational operator--(int a); 28 | 29 | bool operator==(const Rational& rhs) const; 30 | bool operator!=(const Rational& rhs) const; 31 | bool operator>(const Rational& rhs) const; 32 | bool operator>=(const Rational& rhs) const; 33 | bool operator<(const Rational& rhs) const; 34 | bool operator<=(const Rational& rhs) const; 35 | 36 | int GetNum() const; 37 | int GetDenom() const; 38 | 39 | private: 40 | int num, den; 41 | void Normalize(); 42 | }; 43 | 44 | std::ostream& operator<<(std::ostream& os, const Rational& r); 45 | -------------------------------------------------------------------------------- /DemidovichSP/RationalNumbers/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "RationalNumber.h" 4 | 5 | 6 | TEST_CASE("Exceptions"){ 7 | CHECK_THROWS_WITH(RationalNumber(1, 0), "Denominator is equal to 0"); 8 | CHECK_THROWS_WITH((RationalNumber(1, 1) /= RationalNumber(0, 1)), "division by 0"); 9 | } 10 | TEST_CASE("Output"){ 11 | std::stringstream teststream; 12 | teststream << RationalNumber(1, 2); 13 | CHECK(teststream.str() == "1/2"); 14 | } 15 | 16 | TEST_CASE("Arithmetic"){ 17 | CHECK(RationalNumber(100, 1000) == RationalNumber(1, 10)); 18 | CHECK(RationalNumber(1, 2) + RationalNumber(1, 2) == RationalNumber(1, 1)); 19 | CHECK(RationalNumber(3, 3) - RationalNumber(1, 2) == RationalNumber(2, 4)); 20 | CHECK(RationalNumber(2, 5) * RationalNumber(1, 2) == RationalNumber(2, 10)); 21 | CHECK(RationalNumber(5, 1) / RationalNumber(1, 2) == RationalNumber(10, 1)); 22 | 23 | CHECK((RationalNumber(5, 1) += RationalNumber(3, 1)) == RationalNumber(8, 1)); 24 | CHECK((RationalNumber(5, 1) *= RationalNumber(0, 5)) == RationalNumber(0)); 25 | CHECK((RationalNumber(7, 2) -= RationalNumber(0, 5723)) == RationalNumber(7, 2)); 26 | CHECK((RationalNumber(8, 2) /= RationalNumber(1, 2)) == RationalNumber(8, 1)); 27 | } 28 | 29 | TEST_CASE("boolean"){ 30 | CHECK(!(RationalNumber(10, 1) == RationalNumber(9, 1))); 31 | CHECK(!(RationalNumber(10, 5) == RationalNumber(12, 4))); 32 | 33 | } -------------------------------------------------------------------------------- /Ten_d_s/rational/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "rational.h" 4 | 5 | TEST_CASE("Test1") { 6 | CHECK(Rational(4, 7) + Rational(3, 7) == Rational(1, 1)); 7 | CHECK(Rational(3, 3) - Rational(1, 2) == Rational(2, 4)); 8 | CHECK(Rational(1, 3) - Rational(5, 3) == Rational(-4, 3)); 9 | CHECK(Rational(2, 3) * Rational(1, 2) == Rational(1, 3)); 10 | CHECK(Rational(5, 1) / Rational(1, 2) == Rational(10, 1)); 11 | CHECK(Rational(4, 3) / Rational(-3, 4) == Rational(-16, 9)); 12 | CHECK((Rational(5, 1) += Rational(3, 1)) == Rational(8, 1)); 13 | CHECK((Rational(1, 2) -= Rational(0, 43)) == Rational(1, 2)); 14 | CHECK((Rational(5, 1) *= Rational(0, 5)) == Rational(0)); 15 | CHECK((Rational(8, 2) /= Rational(1, 2)) == Rational(8, 1)); 16 | } 17 | 18 | TEST_CASE("Test2") { 19 | CHECK(Rational(1, -1) == Rational(-1, 1)); 20 | CHECK(Rational(-1, 1) != Rational(1, 1)); 21 | CHECK(Rational(10, 1) > Rational(1, 10)); 22 | CHECK(Rational(-17, 9) < (Rational(5, -9))); 23 | CHECK(Rational(7, 8) >= (Rational(2, 3))); 24 | CHECK(Rational(2, 3) >= (Rational(2, 3))); 25 | CHECK(Rational(3, 12) <= (Rational(4, 5))); 26 | CHECK(Rational(1, 7) <= (Rational(2, 14))); 27 | } 28 | 29 | TEST_CASE("Test3") { 30 | CHECK_THROWS_WITH(Rational(4, 0), "demonitation must not be equal to 0"); 31 | CHECK_THROWS_WITH((Rational(4, 9) /= Rational(0, 9)), "Division by 0!"); 32 | } 33 | -------------------------------------------------------------------------------- /panin_s_a/Rational/Rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Rational { 4 | public: 5 | Rational(); 6 | Rational(int _num); 7 | Rational(int _num, int _den); 8 | Rational(const Rational& other); 9 | ~Rational() = default; 10 | Rational& operator=(const Rational& other); 11 | 12 | bool operator<(const Rational& rhs) const; 13 | bool operator<=(const Rational& rhs) const; 14 | bool operator>(const Rational& rhs) const; 15 | bool operator>=(const Rational& rhs) const; 16 | bool operator==(const Rational& rhs) const; 17 | bool operator!=(const Rational& rhs) const; 18 | 19 | Rational operator+(const Rational& rhs) const; 20 | Rational operator-(const Rational& rhs) const; 21 | Rational operator/(const Rational& rhs) const; 22 | Rational operator*(const Rational& rhs) const; 23 | 24 | Rational& operator+=(const Rational& rhs); 25 | Rational& operator-=(const Rational& rhs); 26 | Rational& operator*=(const Rational& rhs); 27 | Rational& operator/=(const Rational& rhs); 28 | 29 | Rational operator-(); 30 | Rational operator+(); 31 | 32 | Rational& operator++(); 33 | Rational operator++(int); 34 | Rational& operator--(); 35 | Rational operator--(int); 36 | 37 | int GetDenominator() const; 38 | int GetNumerator() const; 39 | void SetDenominator(int val); 40 | void SetNumerator(int val); 41 | 42 | private: 43 | int num, den; 44 | void Normalize(); 45 | }; 46 | -------------------------------------------------------------------------------- /koshkin_p_v/rational/rational/rational.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include 3 | 4 | 5 | class Rational { 6 | public: 7 | Rational() = default; 8 | Rational(int _num, int _den); 9 | Rational(const Rational& other); 10 | Rational(int _num); 11 | ~Rational() = default; 12 | 13 | Rational operator+(const Rational& rhs) const; 14 | Rational operator-(const Rational& rhs) const; 15 | Rational operator*(const Rational& rhs) const; 16 | Rational operator/(const Rational& rhs) const; 17 | 18 | Rational& operator+=(const Rational& rhs); 19 | Rational& operator-=(const Rational& rhs); 20 | Rational& operator*=(const Rational& rhs); 21 | Rational& operator/=(const Rational& rhs); 22 | Rational& operator=(const Rational& rhs); 23 | Rational operator-() const; 24 | 25 | Rational& operator++(); 26 | Rational operator++(int a); 27 | Rational& operator--(); 28 | Rational operator--(int a); 29 | 30 | bool operator==(const Rational& rhs) const; 31 | bool operator!=(const Rational& rhs) const; 32 | bool operator>(const Rational& rhs) const; 33 | bool operator>=(const Rational& rhs) const; 34 | bool operator<(const Rational& rhs) const; 35 | bool operator<=(const Rational& rhs) const; 36 | 37 | int GetNum() const; 38 | int GetDenom() const; 39 | 40 | private: 41 | int num, den; 42 | void Normalize(); 43 | }; 44 | 45 | std::ostream& operator<<(std::ostream& os, const Rational& r); -------------------------------------------------------------------------------- /strijakov/dynamic/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "dynamic.h" 4 | 5 | DynamicArray a(8,1), b(5); 6 | DynamicArray c{4,8,16,32}; 7 | DynamicArray d(a); 8 | DynamicArray e; 9 | DynamicArray b_copy = b; 10 | 11 | 12 | TEST_CASE("Testing constructors and initialization") { 13 | CHECK(a.Size() == 8); 14 | CHECK(a[3] == 1); 15 | CHECK(b[5] == 0); 16 | CHECK(c.Size() == 4); 17 | CHECK(c[2] == 16); 18 | CHECK(d == a); 19 | CHECK(c != b); 20 | CHECK(e.Size() == 0); 21 | CHECK(b_copy.Size() == 5); 22 | CHECK(b == DynamicArray({0,0,0,0,0})); 23 | } 24 | 25 | TEST_CASE("Testing methods") { 26 | a.push_back(0); 27 | CHECK(a.Size()==9); 28 | a.pop_back(); 29 | CHECK(a.Size()==8); 30 | b_copy.clear(); 31 | CHECK(b_copy.Empty()); 32 | a.erase(0); 33 | CHECK(a[0] == 1); 34 | a.insert(0, 1); 35 | CHECK(a.Size() == 8); 36 | b.resize(10); 37 | CHECK(b[9] == 0); 38 | b.resize(5); 39 | CHECK(b.Size() == 5); 40 | d.assign(13,2); 41 | CHECK(d.Size() == 13); 42 | CHECK(d[11] == 2); 43 | CHECK(d != c); 44 | CHECK(*c.begin() == 4); 45 | } 46 | 47 | TEST_CASE ("Testing exceptions") { 48 | CHECK_THROWS_WITH(DynamicArray(4).at(5), "Index out of range"); 49 | CHECK_THROWS_WITH(DynamicArray(4).erase(4), "The index is not match for an array!"); 50 | CHECK_THROWS_WITH(DynamicArray(0).pop_back(), "Array have no elements!"); 51 | } 52 | -------------------------------------------------------------------------------- /zorin_k_a/rational/test.cpp: -------------------------------------------------------------------------------- 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN 2 | #include "doctest.h" 3 | #include "rational.h" 4 | 5 | 6 | TEST_CASE("testing the ==") { 7 | Rational a=Rational(5,3); 8 | Rational b=Rational(7,4); 9 | Rational c=Rational(17,2); 10 | Rational d=Rational(33,12); 11 | CHECK(a+b==Rational(41,12)); 12 | CHECK(d-a==Rational(1,12)); 13 | CHECK(b*a==Rational(35,12)); 14 | 15 | CHECK((a+=b)==Rational(41,12)); 16 | CHECK((d-=a)==Rational(1,12)); 17 | CHECK((a*=b)==Rational(35,12)); 18 | } 19 | TEST_CASE("boolean things") 20 | { 21 | Rational a=Rational(11,3); 22 | Rational b=Rational(15,5); 23 | Rational c=Rational(3,1); 24 | Rational d=Rational(7,11); 25 | CHECK((a>b)==1); 26 | CHECK((a>3)==1); 27 | CHECK((a=b)==1); 32 | CHECK((a>=Rational(33,9))==1); 33 | CHECK((a<=b)==0); 34 | CHECK((d<=Rational(7,11))==1); 35 | CHECK((a!=b)==1); 36 | CHECK((a!=Rational(11,3))==0); 37 | } 38 | TEST_CASE("other stuff") 39 | { 40 | Rational a=Rational(11,3); 41 | Rational b=Rational(15,5); 42 | Rational c=Rational(3,1); 43 | Rational d=Rational(7,11); 44 | CHECK((a++)==Rational(14,3)); 45 | CHECK((b--)==Rational(2,1)); 46 | } 47 | TEST_CASE("exceptions") 48 | { 49 | CHECK_THROWS_WITH(Rational(228, 0), "denominator must not be equal to 0"); 50 | } 51 | --------------------------------------------------------------------------------