From ba4e25810e0b845fe0488bc504bf3ab5bd1f3824 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 15 Apr 2024 16:07:52 +0200 Subject: const char * --- example/example.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/example.cpp b/example/example.cpp index 60c998f..c7ec982 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -21,12 +21,12 @@ int main() { char cstr[500]; std::cout << "The solved cube looks like this in H48 notation:\n"; - cube_write((char *)"H48", cube, cstr); + cube_write("H48", cube, cstr); std::string solvedstr(cstr); std::cout << solvedstr << "\n"; std::cout << "After a sexy move it looks like this:\n"; cube = apply_alg(cube, moves); - cube_write((char *)"H48", cube, cstr); + cube_write("H48", cube, cstr); std::string sexystr(cstr); std::cout << sexystr << "\n"; -- cgit v1.3