| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- baekjun
- markdown
- cpp
- C++
- Numpy
- Sequential Search
- codesignal
- 파이썬머신러닝완벽가이드
- Python
- shapeArea
- flask
- data_structure
- Counting cells in a blob
- codesingal
- almostIncreasingSequence
- 2015 봄학기 알고리즘
- 파이썬 포렌식
- Daily Commit
- collections.deque
- matrixElementsSum
- 10953
- 백준
- 수 정렬하기
- 피보나치 수
- 2750
- recursion
- All Longest Strings
- centuryFromYear
- adjacentElementsProduct
- til
- Today
- Total
Introfor
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 }, "국제시장","..
보호되어 있는 글입니다.