프로그래밍 썸네일형 리스트형 [C#] 바이트(Byte) 배열 합치기 시리얼 통신 도중에 데이터 받을 일이 생겼는데 실시간으로 받으면 한번에 받는 것이 아니라 짤려서 데이터를 받아와서 버퍼에 데이터를 차례대로 쌓아두는 부분을 만들다가 잘 안돼서 검색해봤더니 Array.Copy 라는 함수가 있었다. 1234567891011121314151617181920212223using System; namespace MergeByteArray{ class Program { static void Main(string[] args) { byte[] arrA = new byte[2] { 1, 2 }; byte[] arrB = new byte[3] { 3, 4, 5 }; byte[] arrC = new byte[arrA.Length+arrB.Length]; Array.Copy(arrA, 0,.. [백준] 3052번 문제풀이 문제 링크 : https://www.acmicpc.net/problem/30521234567891011121314151617181920212223242526272829#include using namespace std; int main(){ //나머지 배열 int rem[42] = {}; //입력 받는 값 int num; //서로 다른 수의 합 int cnt = 0;; for(int i=0; i> num; rem[num%42] = 1; } for(int i =0; i 이전 1 다음