2024-12-30 23:54:58 +00:00
|
|
|
mod std;
|
2024-12-26 01:38:32 +00:00
|
|
|
|
|
|
|
fn main() {
|
2024-12-30 23:54:58 +00:00
|
|
|
let strings = std::array_new::<string>();
|
|
|
|
std::array_push(strings, "hello");
|
|
|
|
std::array_push(strings, "world");
|
2024-12-26 01:38:32 +00:00
|
|
|
|
2024-12-30 23:54:58 +00:00
|
|
|
let ints = std::array_new::<int>();
|
|
|
|
std::array_push(ints, 1);
|
|
|
|
std::array_push(ints, 2);
|
2024-12-26 04:20:33 +00:00
|
|
|
|
|
|
|
for v in strings {
|
2024-12-30 23:54:58 +00:00
|
|
|
std::println(v)
|
2024-12-26 04:20:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
for v in ints {
|
2024-12-30 23:54:58 +00:00
|
|
|
std::println(std::itos(v))
|
2024-12-26 04:20:33 +00:00
|
|
|
}
|
2024-12-26 01:38:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|