목록개발 및 공부/언어 (68)
NeuroWhAI의 잡블로그
1234567891011121314151617181920212223242526272829303132333435use std::iter::{IntoIterator}; struct Foo(Vec); impl Foo { fn new() -> Foo { Foo(Vec::new()) } fn add(&mut self, item: i32) { self.0.push(item); }} impl IntoIterator for Foo { type Item = i32; type IntoIter = ::std::vec::IntoIter; fn into_iter(self) -> Self::IntoIter { self.0.into_iter() }} fn main(){ let mut foo = Foo::new(); foo.add(..
http://doc.crates.io/build-script.htmlRust를 빌드할때 Rust로 빌드 스크립트를 작성할 수 있습니다.올ㅋ
대충 아래처럼 작동 합니다.Playlist ID: PLETWVpERkQEiFcR61q36BMeOI6prNr0ci 1. 【廃墟系】けもフレEDを最終回っぽくしてみた【アレンジ】 2. Kemono Friends ED - Boku no Friend (Simpsonill Remix) Choose the video number to download. (0: All, q: exit): 0 Start download. Download MbjtzH9JIKo Title: 【廃墟系】けもフレEDを最終回っぽくしてみた【アレンジ】 Quality: 128030 2121970 / 2121970 ╢▌▌▌▌▌▌▌▌▌▌▌╟ 100.00 % 79234.86/s Start conversion. Conversion complete. Done. Do..
C++로 백준 단계별 문제를 하나씩 하고 있는데 쉬운게 나와서 Rust로 해보려고 했으나... 표준라이브러리에 익숙하지가 않아서 구글링 ㅠㅠ12345678910111213// https://stackoverflow.com/questions/30678953/how-to-read-a-single-character-from-input-as-u8 use std::io::{self, Read}; fn main(){ let input = io::stdin() .bytes().next() .and_then(|result| result.ok()) .map(|byte| byte as i32); println!("{}", input.unwrap());}Colored by Color Scriptercs글로 설명하면 공부가 ..
이 갓갓갓을 왜 이제서야 배우는지 후회가 되는군요. GUI 컨트롤 가지고 노는게 이렇게 쉬울줄이야;; 윈폼도 쉬웠는데 WPF는 더 쉽네요. 지금 막 데이터바인딩 부분 배웠는데 와...
소스코드 입니다.GitHub : https://github.com/NeuroWhAI/DevChatGitLab : https://gitlab.com/tlsehdgus0212/DevChat GitLab에서 개발하다가 GitHub에도 미러로 하나 파서 공개했습니다. 왜 GitLab에서 개발했는지는 아실테고(ㅠㅠ)... 어제 올린 시점에서 좀더 개선하고 올렸습니다. 자세한건 링크에... 사실 쓸만해져서 올린게 아니라 쓰는 것이 가능은 해졌기 때문에 올리는 겁니다. ... 아이고 그나저나 다음 프로젝트는 좀 다른 언어나 도구를 사용해서 만들고 싶은데 어째 계속 C#으로만 만드네요;;
1234int a = 1;int b = 2;a = (a--) + (++b) + (--b) + (--a);cout
https://ideone.com/30uZwT123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384use std::fmt;use std::iter; struct LinearFunctionIterator { fun: LinearFunction, x: i32, end: i32,} impl LinearFunctionIterator { fn new(fun: LinearFunction, begin: i32, end: i32) -> LinearFunctionIterator { Linear..