-
-
Notifications
You must be signed in to change notification settings - Fork 82
最速入門
Kasugaccho edited this page May 13, 2019
·
3 revisions
#include <DTL.hpp>
int main() {}
#include <DTL.hpp>
int main() {
int matrix[11][15]{};
dtl::OutputNumber<int>(",").draw(matrix, 15, 11);
}
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
#include <DTL.hpp>
int main() {
int matrix[11][15]{};
dtl::Rect<int>(1).draw(matrix, 15, 11);
dtl::OutputNumber<int>(",").draw(matrix, 15, 11);
}
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
#include <DTL.hpp>
int main() {
int matrix[11][15]{};
dtl::PointGrid<int>(1).draw(matrix, 15, 11);
dtl::OutputNumber<int>(",").draw(matrix, 15, 11);
}
1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,
#include <DTL.hpp>
int main() {
int matrix[11][15]{};
dtl::PointGridWithBorder<int>(1, 2).draw(matrix, 15, 11);
dtl::OutputNumber<int>(",").draw(matrix, 15, 11);
}
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,1,0,1,0,1,0,1,0,1,0,1,0,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,1,0,1,0,1,0,1,0,1,0,1,0,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,1,0,1,0,1,0,1,0,1,0,1,0,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,1,0,1,0,1,0,1,0,1,0,1,0,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
#include <DTL.hpp>
int main() {
int matrix[11][15]{};
dtl::PointGridWithBorder<int>(1, 2).draw(matrix, 15, 11);
dtl::OutputString<int>(" ", "##", "%%").draw(matrix, 15, 11);
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#include <DTL.hpp>
#include <array>
int main() {
std::array<std::array<int, 15>, 11> matrix{ {} };
dtl::PointGridWithBorder<int>(1, 2).draw(matrix, 15, 11);
dtl::OutputString<int>(" ", "##", "%%").draw(matrix, 15, 11);
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#include <DTL.hpp>
#include <array>
int main() {
std::array<std::array<char, 15>, 11> matrix{ {} };
dtl::PointGridWithBorder<char>(1, 2).draw(matrix, 15, 11);
dtl::OutputString<char>(" ", "##", "%%").draw(matrix, 15, 11);
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%% ## ## ## ## ## ## %%
%% %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#include <DTL.hpp>
#include <array>
int main() {
std::array<std::array<char, 15>, 11> matrix{ {} };
dtl::Border<char>(1).draw(matrix, 15, 11);
dtl::OutputStringBool<char>("##", " ").draw(matrix, 15, 11);
}
##############################
## ##
## ##
## ##
## ##
## ##
## ##
## ##
## ##
## ##
##############################
Copyright (c) 2018-2021 As Project.
Distributed under the Boost Software License, Version 1.0.(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)