WSL2에서 리액트 네이티브 앱 빌드하기 원문
WSL2과 우분투에서 리액트 네이티브 앱 설치, 빌드 및 디버그하기
WSL2과 우분투에서 리액트 네이티브 앱 설치, 빌드 및 디버그하기
class Parent { | |
public: | |
virtual void func(); | |
virtual void func(int32_t val); | |
}; | |
class Child:Parent { | |
public: | |
virtual void func(); | |
virtual void func(int32_t val); |
enum MODULE_TYPE { | |
TYPE_A = 0, | |
TYPE_B, | |
TYPE_C, | |
TYPE_D, | |
TYPE_E, | |
TYPE_F, | |
TYPE_G, | |
TYPE_H, | |
TYPE_I, |
# https://rinthel.github.io/rust-lang-book-ko/ch05-02-example-structs.html | |
#[derive(Debug)] | |
struct Rectangle { | |
width: u32, | |
height: u32 | |
} | |
fn main() { |
// My first rust program | |
// UTF-8 character count vs bytes length | |
// https://shaun289.github.io/2021-05-14-rust_stringlength/ | |
fn string_length(s: &String) -> usize { | |
s.chars().count() | |
} | |
fn main() { | |
println!("Hello, world!"); |
// Reference : https://snowdeer.github.io/c++/2017/08/18/cpp11-thread-example/ | |
// 함수 객체를 이용하는 방법 #2 | |
#include <iostream> | |
#include <thread> | |
#include <chrono> | |
class A | |
{ | |
private: |
// The rust programming ko https://rinthel.github.io/rust-lang-book-ko/ch03-05-control-flow.html | |
// compiled on https://play.rust-lang.org/ | |
/* result | |
* | |
** | |
*** | |
**** | |
***** | |
****** | |
******* |
// The rust programming ko https://rinthel.github.io/rust-lang-book-ko/ch11-01-writing-tests.html | |
// compiled on https://play.rust-lang.org/ | |
/* result | |
running 2 tests | |
test tests::exploration ... ok | |
test tests::another ... FAILED | |
failures: |
// The rust by example ko https://hanbum.gitbooks.io/rustbyexample/content/flow_control/for.html | |
// compiled on https://play.rust-lang.org/ | |
/* result | |
1 | |
2 | |
fizz | |
4 | |
buzz | |
fizz | |
7 |
/* | |
The rust by example ko https://hanbum.gitbooks.io/rustbyexample/content/flow_control/match.html | |
compiled on https://play.rust-lang.org/ | |
Notice : exclusive range patterns https://github.com/rust-lang/rust/issues/37854 | |
*/ | |
fn main() | |
{ | |
for number in 1..22 { | |
println!("Tell me about {}", number); |