Development
-
[백준 단계별로 풀어보기] 심화 1 with C#Development/Program Solving 2023. 7. 11. 21:20
25083번: 새싹 Console.WriteLine(" ,r'\"7"); Console.WriteLine("r`-_ ,' ,/"); Console.WriteLine(" \\. \". L_r'"); Console.WriteLine(" `~\\/"); Console.WriteLine(" |"); Console.WriteLine(" |"); 3003번: 킹, 퀸, 룩, 비숍, 나이트, 폰 string[] strArray = Console.ReadLine().Split(); int[] intArray = strArray.Select(int.Parse).ToArray(); int[] result = { 1, 1, 2, 2, 2, 8 }; for (var i = 0; i < result.Length; i++) { ..
-
[백준 단계별로 풀어보기] 문자열 with C#Development/Program Solving 2023. 7. 11. 16:36
27866번: 문자와 문자열 char[] word = Console.ReadLine().ToCharArray(); int index = int.Parse(Console.ReadLine()); Console.WriteLine(word[index + -1]); 2743번: 단어 길이 재기 string word = Console.ReadLine(); Console.WriteLine(word.Length); 9086번: 문자열 int count = int.Parse(Console.ReadLine()); string[] result = new string[count]; for (var i = 0; i < count; i++) { string word = Console.ReadLine(); result[i] = S..
-
[백준 단계별로 풀어보기] 1차원 배열 with C#Development/Program Solving 2023. 7. 11. 00:25
10807번: 개수 세기 string length = Console.ReadLine(); string[] array = Console.ReadLine().Split(); string target = Console.ReadLine(); int count = array.Where(x => x == target).Count(); Console.WriteLine(count); 10871번: X보다 작은 수 string[] array = Console.ReadLine().Split(); string[] array2 = Console.ReadLine().Split(); int[] array3 = array2.Select(int.Parse).ToArray(); int standard = int.Parse(array[..
-
[C#] string array를 int array로 변환Development/C# 2023. 7. 10. 15:03
1. Array.ConvertAll() 사용 using System; public class Example { public static void Main() { string[] strings = new string[] {"1", "2", "3"}; int[] ints = Array.ConvertAll(strings, s => int.Parse(s)); Console.WriteLine(String.Join(",", ints)); } } 람다식 표현 대신에 메서드 그룹을 사용해서 코드를 아래와 같이 개선 할 수 있다. using System; public class Example { public static void Main() { string[] strings = new string[] {"1", "2",..
-
[백준 단계별로 풀어보기] 반복문 with C#Development/Program Solving 2023. 7. 10. 14:29
2739번: 구구단 int number = int.Parse(Console.ReadLine().ToString()); for (var i = 1; i < 10; i++) { Console.WriteLine("{0} * {1} = {2}",number, i, number*i); } 10950번: A+B - 3 using System.Text; class Program { static void Main(string[] args) { StringBuilder stringBuilder = new StringBuilder(); int length = int.Parse(Console.ReadLine()); for (int i = 0; i < length; i++) { string[] array = Console.R..
-
[SAP] Service Layer API 확장 개발 가이드Development/SAP 2021. 8. 24. 16:12
Service Layer API 확장 개발 가이드 Service Layer를 사용하면 사용자가 서버 측에 JavaScript를 포함하여 자체 확장 API를 개발할 수 있습니다. 이 페이지는 Service Layer API 확장 개발을 위한 가이드입니다. 1. 작동 원리 Service Layer 에는 Javascript SDK 등 개발을 위한 키트와 Javascript 엔진이 작동되고 있습니다. 따라서, 파트너 개발자가 스크립트를 작성하고 그걸 업로드하면 동작 할 수 있습니다. 2. 개발 가이드 2-1. Http 요청 기능 http 요청 기능은 HttpModule.js 모듈에 패키징되어 있습니다. http 요청을 처리하기 위해 필요한 필수 모듈입니다. 2-2. Query 기능 CRUD 를 처리하기 위한 Q..
-
[SQL] 인스턴스가 뭔가요?Development/DB & SQL 2021. 8. 10. 15:50
데이터베이스 엔진 인스턴스란? Microsoft가 제공하는 SQL 문서에서는 '데이터베이스 엔진 인스턴스는 운영 체제 서비스로 실행되는 sqlservr.exe 실행 파일의 복사본입니다.' 라고 설명하고 있다. 쉽게 말해서 서버 1대 당 여러 SQL 서버를 운영할 수 있다는 것이다.여기서 각각의 SQL 서버를 인스턴스라고 부른다.즉, SQL 서버는 단일 서버에서 멀티 인스턴스를 지원하다. 기본 인스턴스와 명명된 인스턴스 SQL 서버를 설치할 때 기본 인스턴스 또는 명명된 인스턴스를 설정 할 수 있다.기본 인스턴스는 초기 설치때만 가능하고 그 후 설치되는 인스턴스는 명명된 인스턴스로 설치해야한다. 커넥션 방법(MSSQL기준) 기본 인스턴스 : localhost 또는 서버명(IP)로 접근 가능명명된 인스턴스 ..