Console.ReadLine();

Console Programming/C# Console 2019. 9. 20. 09:49

https://cocomo.tistory.com/462

 

 

C# 콘솔 입출력

콘솔로 입력, 출력에 대한 메소드 제공 Input Read(...) - 한 글자씩 읽음 ReadKey(...) - 키조합을 읽음 ReadLine(...) - 한 라인을 읽음 Output Write(...) - 파라미터의 내용을 콘솔로 프린트 WriteLine(...) -..

cocomo.tistory.com

https://codingcoding.tistory.com/334

 

C# Console.ReadLine 함수 사용법 (콘솔에서 문자열 처리)

C# Console.ReadLine 함수 사용법 (콘솔에서 문자열 처리) Console.ReadLine은 콘솔창에서 입력받는데, 사용자가 엔터를 누르면 문자열을 반환하고 다음 작업을 결정합니다. 사용 예. 개발 과정에선 입력 과정을..

codingcoding.tistory.com

https://m.blog.naver.com/PostView.nhn?blogId=nabiro&logNo=130033172758&categoryNo=17&proxyReferer=&proxyReferer=https%3A%2F%2Fwww.google.com%2F

 

C#에서 사용자 입력 받기 ( Console.ReadLine() )

*** 검색어: C#, Console, ReadLine, 사용자, 입력 출처는 김상형씨의 "닷넷 프로그래밍 정복" 입니다....

blog.naver.com

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Syntax05
{
    class Program
    {
        static void Main(string[] args)
        {
            string name = Console.ReadLine();
            Console.WriteLine("{0} 님의 총점은 ", name);
              
 
        }
    }
}
 
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
 

 Console.ReadLine();    //실행되면 입력을 받기 전까지 커서가 깜빡이며 대기하고, 입력이 완료되면 그 값을 만들고 저장(임시로 저장하는곳은 어디인가?, 예제에서는 최종적으로 name에 저장)한다.

'Console Programming > C# Console' 카테고리의 다른 글

3일차 당신이 좋아하는 과일의 이름은 무엇입니까?  (0) 2019.09.20
Console.Clear();  (0) 2019.09.20
Console.WriteLine Method  (0) 2019.09.20
구구단 출력3  (0) 2019.09.20
구구단 출력3  (0) 2019.09.20
: