일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Programming
- Desktop
- Win32
- c#
- 배열
- 문법
- c++
- 함수
- Visual Studio
- 알고리즘
- c
- 티스토리
- VS ERROR
- Javascript
- tipssoft
- Tips프로그래밍강좌
- Windows
- CS
- Kotlin
- Tips강좌
- doit코틀린프로그래밍
- 백준
- 리뷰
- 김성엽
- 포인터
- 프로그래밍
- 연산자
- 이지스퍼블리싱
- 지식나눔강좌
- Direct2D
- Yesterday
- Today
- Total
목록DEV (265)
F.R.I.D.A.Y.
")(0) 'MsgBox(str) Dim temp() As String temp = Split(str, Chr(13)) For k = 0 To temp.Count - 1 If InStr(temp(k), "img") >= 1 Then temp(k) = Mid(temp(k), InStr(temp(k), "alt=") + "alt=".Length + 1) temp(k) = Split(temp(k), "/>")(0) temp(k) = Mid(temp(k), 1, InStr(temp(k), Chr(34)) - 1) list.Add(temp(k)) End If Next str = $"{Format("000", i).ToString}회 : " For k = 0 To list.Count - 1 str &= $"{lis..
Q. 사용자로부터 반지름과 변의 개수를 받아 다각형을 그리는 프로그램을 만들어라 그리기 헤더 >> Windows.h그리는데 필요한 함수HDC hdc = GetWindowDC(GetForegroundWindow()); //
네모로직 프로그램화살표로 이동, 스페이스바로 확인, 노란색 [YOU] 는 현재 포인트, 빨간색 [DONT] 는 맞지 않는 것, 초록색 [OKEY] 는 맞은 것 테스트 프로그램 : https://pang2h.tistory.com/44
Q. https://www.acmicpc.net/problem/4999 #define _CRT_SECURE_NO_WARNINGS #include #include int main(void) { int jaeC, docC, length; jaeC = docC = length = 0; char jae[1001], doc[1001]; scanf("%s", jae); length = strlen(jae); for (int i = 0; i < length; i++) { if (jae[i] == 'a') { jaeC++; } } scanf("%s", doc); length = strlen(doc); for (int i = 0; i < length; i++) { if (doc[i] == 'a') { docC++; } ..
Q. 자연수가 주어지면, 팰린드롬(palindrome)인지 판별하시오.팰린드롬이란, 읽는 방향에 상관없이 같은 단어를 말한다. 단, 입력받은 자연수를 문자열로 바꿔서는 안된다.(매일 프로그래밍에서 발췌)
Q. 2018/05/13 - [프로그래밍/C C++] - Q 길찾기 > 1순위"); } printf("\n"); } DestroyNode(root); free(end); free(list); return 0; } void findNode(Node *parent, Pos *start, Pos *end) { if (bg[start->x][start->y]) { Pos *Nxt = (Pos *)malloc(sizeof(Pos)); if (start->x + 1 x) { if (bg[start->x + 1][start->y]) { Nxt->x = start->x + 1; Nxt->y = start->y; parent->xNode = setNode(bg[Nxt->x][Nxt->y], Nxt); parent->xN..
Q. (이미지 문제) 배열 코드 { 8,9,5,4,3,8,6,3,2,0 } ,{ 3,0,0,0,2,0,0,0,1,0 } ,{ 2,0,0,0,5,0,0,0,5,0 },{ 3,1,5,0,4,0,0,0,7,0 } ,{ 0,0,7,0,2,0,0,0,3,0 } ,{ 0,0,3,0,1,0,0,0,2,9 },{ 0,0,2,0,1,9,5,0,0,3 } ,{ 0,0,2,0,0,0,4,3,0,1 } ,{ 0,0,1,0,0,0,0,8,0,8 } ,{ 0,0,5,8,6,3,2,2,6,6 }
며칠 전 교수님 사정상 박사과정 밟고 계시는 분께서 대신 강의하시면서 주신 문제. 다섯 문제 다 푸는데 15분 정도 걸렸다. #define _CRT_SECURE_NO_WARNINGS #include int main(void) { int n, r, topSum,btmSum; printf("n을 입력하세요 : "); scanf("%d", &n); printf("r을 입력하세요 : "); scanf("%d", &r); topSum = btmSum= 1; for (int i = 0; i < r; i++) { topSum *= (n - i); btmSum *= (r - i); } printf("%dC%d = %d\n", n, r, topSum / btmSum); return 0; } %c\n", d, d); d+..
정확한건 뭔지 모르겠고, 스터디에서 해보라고 해서 한거. 인풋을 받고나서 해당 인풋이 A0가 된다.An이(이 때, n은 0과 자연수) 짝수라면 2로 나누고, 홀수라면 3An + 1로 처리하고, 처리한 것이 A(n+1)이 된다.콜라츠의 추측에 의하면 결국 1로 값이 나온다고 하는데 아직 모든 자연수에 해당하는지는 증명되지 않은 모양. > %8d", input); if (min > input) { min = input; } if (max < input) { max = input; } sum += input; count++; if (!(count % 8)) { printf("\n"); } } printf("\n"); printf("Count\t: %d\n", count); printf("Max\t: %d\n"..