diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-04-15 16:07:52 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-04-15 16:07:52 +0200 |
| commit | ba4e25810e0b845fe0488bc504bf3ab5bd1f3824 (patch) | |
| tree | 66b9e350084139e330f0ce90cb5f6749c48d5396 /example | |
| parent | 59ecc0ee72a180692fcccab88db310d60021f2ab (diff) | |
| download | cubecore-ba4e25810e0b845fe0488bc504bf3ab5bd1f3824.tar.gz cubecore-ba4e25810e0b845fe0488bc504bf3ab5bd1f3824.zip | |
const char *
Diffstat (limited to 'example')
| -rw-r--r-- | example/example.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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() { | |||
| 21 | char cstr[500]; | 21 | char cstr[500]; |
| 22 | 22 | ||
| 23 | std::cout << "The solved cube looks like this in H48 notation:\n"; | 23 | std::cout << "The solved cube looks like this in H48 notation:\n"; |
| 24 | cube_write((char *)"H48", cube, cstr); | 24 | cube_write("H48", cube, cstr); |
| 25 | std::string solvedstr(cstr); | 25 | std::string solvedstr(cstr); |
| 26 | std::cout << solvedstr << "\n"; | 26 | std::cout << solvedstr << "\n"; |
| 27 | std::cout << "After a sexy move it looks like this:\n"; | 27 | std::cout << "After a sexy move it looks like this:\n"; |
| 28 | cube = apply_alg(cube, moves); | 28 | cube = apply_alg(cube, moves); |
| 29 | cube_write((char *)"H48", cube, cstr); | 29 | cube_write("H48", cube, cstr); |
| 30 | std::string sexystr(cstr); | 30 | std::string sexystr(cstr); |
| 31 | std::cout << sexystr << "\n"; | 31 | std::cout << sexystr << "\n"; |
| 32 | 32 | ||
