cpp-demo-project/src/algo.cpp
2024-03-05 09:58:45 +01:00

11 lines
No EOL
418 B
C++

#include "algo.h"
void bubble_sort_print_demo()
{
int demo[]{11, 14, 3, 18, 8, 17, 43, 6, 5, 4};
double demo2[]{11.2, 14.3, 3.2, 18.6, 8.7, 17.9, 43.3, 12.3};
std::string demo3[]{"hallo", "velo", "kekw", "imagin"};
bubble_sort_print(sizeof(demo) / sizeof(demo[0]), demo);
bubble_sort_print(sizeof(demo2) / sizeof(demo2[0]), demo2);
bubble_sort_print(sizeof(demo3) / sizeof(demo3[0]), demo3);
}