Today I Learned :
- 제곱근 반환 메서드
Math.Sqrt(n);
- char[] to string
char[] charArray = { 'a', 'b', 'c' };
// 1.
new string(charArray);
// 2.
new string(charArray, 0, charArray.Length);
// 3.
string.Concat(charArray);
- Console 상의 커서 포지션 가져오기
// Console.cs
public static (int Left, int Top) GetCursorPosition()
{
return ConsolePal.GetCursorPosition();
}
// 호출
Console.GetCursorPosition().Left;
Console.GetCursorPosition().Top;
- github 태그 넣기
// 유튜브 영상 가져오기. 재생은 안되고 누르면 링크로 페이지 이동됨.
[](https://www.youtube.com/watch?v=4Tx0n6-yWxM)
// 이미지 태그

// 목차
1. [게임소개 영상](#게임소개-영상)
2. [게임 소개](#게임-소개)
[노출될 텍스트](#헤더-텍스트)
헤더 텍스트의 띄어쓰기는 - 로 연결
'TIL' 카테고리의 다른 글
20240118 TIL (0) | 2024.01.18 |
---|---|
20240117 TIL (0) | 2024.01.17 |
20240115 TIL (1) | 2024.01.15 |
20240112 TIL (0) | 2024.01.12 |
20240111 TIL (1) | 2024.01.11 |