aboutsummaryrefslogtreecommitdiff
path: root/cpp/examples/solve_h48h3k2.cpp
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-15 14:47:58 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-15 14:47:58 +0200
commitb02c083a3545b6e6b36ab62680128edec619a804 (patch)
treee54b685a0a271e5681289169b7aa105555afde1a /cpp/examples/solve_h48h3k2.cpp
parent8028f9d13a5bf776e2f62581781b247d2d4ae65f (diff)
downloadnissy-core-b02c083a3545b6e6b36ab62680128edec619a804.tar.gz
nissy-core-b02c083a3545b6e6b36ab62680128edec619a804.zip
Fixed function pointer thing
Diffstat (limited to '')
-rw-r--r--cpp/examples/solve_h48h3k2.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/cpp/examples/solve_h48h3k2.cpp b/cpp/examples/solve_h48h3k2.cpp
index b747976..454d6dc 100644
--- a/cpp/examples/solve_h48h3k2.cpp
+++ b/cpp/examples/solve_h48h3k2.cpp
@@ -6,13 +6,9 @@
6#include <iostream> 6#include <iostream>
7#include <string> 7#include <string>
8 8
9extern "C" {
10 long long nissy_setlogger(void (*)(const char *));
11}
12
13int main() { 9int main() {
14 // Get verbose output 10 // Get verbose output
15 nissy_setlogger([](const char* s) { std::cout << s; }); 11 nissy::set_logger([](const char* s) { std::cout << s; });
16 12
17 // Get the scramble from the user 13 // Get the scramble from the user
18 std::cout << "Enter scramble: "; 14 std::cout << "Enter scramble: ";

Generated with cgit - Back to sebastiano.tronto.net