일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- Counting cells in a blob
- 백준
- 파이썬머신러닝완벽가이드
- til
- Daily Commit
- recursion
- Python
- matrixElementsSum
- markdown
- 10953
- 수 정렬하기
- codesignal
- collections.deque
- 2750
- flask
- 파이썬 포렌식
- Numpy
- shapeArea
- 2015 봄학기 알고리즘
- 피보나치 수
- cpp
- C++
- centuryFromYear
- codesingal
- adjacentElementsProduct
- All Longest Strings
- almostIncreasingSequence
- Sequential Search
- data_structure
- baekjun
- Today
- Total
목록Doing 80
Introfor
123456789101112131415#include int main() { int num = 0, f = 1; scanf("%d",&num); if(num == 0) printf("%d",1); else{ for(int i = num; i>0; i--) f *= i; printf("%d",f); }}Colored by Color Scriptercs123456789101112131415161718#include int f(int n); int main(){ printf("%d", f(5)); return 0;} int f(int n){ if (n == 1) return n; return n * f(n - 1); }cs
1234567891011121314151617181920#define _CRT_SECURE_NO_WARNINGS #include typedef struct { int x, y;}Element; void Func(Element *p) { printf("점의 x, y좌표를 입력하시오:"); scanf("%d%d",&((*p).x), &((*p).y)); return;}void main() { Element a; Func(&a); printf("입력된 좌표: x =%d, y=%d\n", a.x, a.y);}Colored by Color Scriptercs구조체 a 주소를 함수의 인자로 넣어서 Func함수에서 포인터로 값을 입력받기 위해서는 위와 같이 사용.
123456789101112131415161718192021222324252627282930313233343536#include int main(void) { struct date { int year; int month; int day; }; typedef struct date date; struct moive { struct date dt; char *title; char director[20]; int attendance; }; typedef struct moive movie; movie data[] = { {{ 2014,7,30 }, "명량","김한민", 17613000 }, { { 2014,12,17 }, "도둑들","최동훈", 12983000 }, { { 2014,12,17 }, "국제시장","..
보호되어 있는 글입니다.
12345678910111213141516171819202122232425262728293031#define BUFFER_SIZE 20 int read_line(char str[], int n); #include int main(){ char buffer[BUFFER_SIZE]; while (1) { printf("$ "); int len = read_line(buffer, BUFFER_SIZE); printf("%s:%d\n", buffer, len); } return 0; } int read_line(char str[], int limt) { int ch, i = 0; while ((ch = getchar()) != '\n') if (i
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816..
123456789101112131415161718192021222324252627282930313233343536373839404142#-*- coding: utf-8 -*- import xlrd, xlwt, random2 # excel 파일 값 받아오기 및 랜덤 연산def openExcel(path): excel = [] wb = xlrd.open_workbook(path) ws = wb.sheet_by_index(0) num_nrows = ws.nrows for row_num in xrange(ws.nrows): row = ws.row(row_num) cols = [] for cell in row: if cell.ctype == 1: cols.append(cell.value) excel.append(..
ARP is a protocol belonging to Layer 3 network layer in OSI Layer and is used to know the MAC address of another PC or server for communication. And the MAC address translation operation for the destination ip address. It is transmitted in the form attached after the Ethernet header, and the data transmission method uses broadcast.ARP is used to know the MAC address, and RARP is used to know the..
The LAN consists of the synchronization signal, the MAC address (destination) of the other party, the MAC address (source) of the sender, the packet type (next protocol), and the IP header and TCP header according to the protocol type.LAN은 통신의 시작을 알리 동기신호와 상대방의 MAC 주소(목적지), 송신자의 MAC 주소(발신지), 패킷유형(다음에 올 프로토콜) 그리고 프로토콜 종류에 따라 IP헤더, TCP헤더로 구성로 구성된다. Data including application mail contents such as ..