From 584ca7f9b6fca6da54608d3b28274273b2c9a4b8 Mon Sep 17 00:00:00 2001 From: olpc user Date: Mon, 9 Dec 2019 03:13:14 -0800 Subject: make level-2 have refs --- starts/meaning-vm/habit-starts/common.hpp | 10 ++++++++++ starts/meaning-vm/habit-starts/rhythm.cpp | 5 ++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 starts/meaning-vm/habit-starts/common.hpp (limited to 'starts/meaning-vm/habit-starts') diff --git a/starts/meaning-vm/habit-starts/common.hpp b/starts/meaning-vm/habit-starts/common.hpp new file mode 100644 index 0000000..963bbea --- /dev/null +++ b/starts/meaning-vm/habit-starts/common.hpp @@ -0,0 +1,10 @@ +#pragma once + +#include "../level-1/level-1.hpp" +#include "../level-2/level-2.hpp" + +namespace habitstarts { + +decl(habit); + +} diff --git a/starts/meaning-vm/habit-starts/rhythm.cpp b/starts/meaning-vm/habit-starts/rhythm.cpp index d5b2161..33e102a 100644 --- a/starts/meaning-vm/habit-starts/rhythm.cpp +++ b/starts/meaning-vm/habit-starts/rhythm.cpp @@ -8,14 +8,13 @@ #include -using namespace intellect::level1; +using namespace intellect::level2; int main() { - srand(time(0)); - int micros = 400000 + double(rand()) / RAND_MAX * 400000; // do something, wait a constant (secret) time, and do it again. + int micros = 400000 + double(rand()) / RAND_MAX * 400000; // the time things take is usually not known in advance, especially // for events one is still learning about. -- cgit v1.2.3