MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / main

Function main

code/chapter04/rec_mc1.rs:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28fn main() {
29 // cashes 保存各种面额的纸币
30 let cashes = [1,5,10,20,50];
31 let amount = 31u32;
32 let cashes_num = rec_mc1(&cashes, amount);
33 println!("need refund {cashes_num} cashes");
34}

Callers

nothing calls this directly

Calls 1

rec_mc1Function · 0.70

Tested by

no test coverage detected