-
-
Notifications
You must be signed in to change notification settings - Fork 82
コンソール出力
Kasugaccho edited this page Apr 2, 2019
·
14 revisions
ソースコード
#include <array>
#include "DTL.hpp"
int main() {
using dungeon_t = bool;
std::array<std::array<dungeon_t, 11>, 9> matrix{ {} };
dtl::generator::common::stl::createPointGridField(matrix);
dtl::console::output::stl::stringBool(matrix, "##", "//");
return 0;
}
出力例
######################
##//////////////////##
##//##//##//##//##//##
##//////////////////##
##//##//##//##//##//##
##//////////////////##
##//##//##//##//##//##
##//////////////////##
######################
例
#include <array>
#include "DTL.hpp"
int main() {
using dungeon_t = bool;
std::array<std::array<dungeon_t, 11>, 9> matrix{ {} };
dtl::generator::common::stl::createPointGridField(matrix);
dtl::console::output::stl::number(matrix);
return 0;
}
出力例
11111111111
10000000001
10101010101
10000000001
10101010101
10000000001
10101010101
10000000001
11111111111
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)