• Skip to primary navigation
  • Skip to content
  • Skip to footer
Welcome to the development world of chp Welcome to the development world of chp
  • 주제별 학습
  • 최근 글
  • 도서
  • 태그
    1. 홈
    2. 주제별 학습
    3. 프로그래밍 언어
    4. Rust
    5. Rust: 표준 입/출력
    chp

    chp

    99점이 100점이 되기 위해 일을 더하는 개발자

    • South Korea
    • Website
    • GitHub

    Rust: 표준 입/출력

    최대 1 분 소요

    목차

    • 예제
    • 코드
    • 실행 결과

    레퍼런스

    예제

    • 코드

            use std::io;
    
            fn main() {
                let mut s = String::new();
    
                match io::stdin().read_line(&mut s) {
                    Ok(n) => println!("{}, {}", n, s),
                    Err(e) => eprintln!("{}", e),
                }
            }
    
    • 실행 결과

            test
            5, test
    

    태그: standard input, standard output

    주제: Rust

    작성일: 2023-08-26

    공유하기

    X Facebook LinkedIn Bluesky
    이전: Rust: 데이터 타입 다음: Rust: function

    같은 주제의 글

    • Rust: 개요
    • Rust: 명명 규칙
    • Rust: 변수
    • Rust: 데이터 타입
    Rust 전체 보기
    • 팔로우:
    • GitHub
    © 2013 - 2026 Welcome to the development world of chp. 제작 지원: Jekyll & Minimal Mistakes.