1 2 3 4 5 6 7 8 9
#include <stdio.h> #include "dice.h" int main() { _dice::init(); for (int i = 0; i < 3; i++) printf("dice val = %d\n", _dice::get_val()); }