일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- docker example
- #다차원포인터
- #자바상속#자바이즈어#is~a
- html5 new tag
- #1차원배열
- #bubbleSort
- border-box
- html multimedia
- html video
- #JAVASCRIPT
- hyperledger transaction
- html youtube
- #CallByAddress
- #android activity
- git flow
- 하이퍼레저패브릭
- #C++ has~a
- mac terminal command
- html charset
- #3차원배열
- #2차원배열
- #binary
- relative path
- html plug-in
- #성적관리프로그램
- 토큰경제
- html code
- #C++ 연산자함수오버로딩
- html id
- html object
- Today
- Total
목록#CallByAddress (3)
A sentimental robot
#include #pragma warning(disable : 4996); void input(int *clas, char *pname, int *pscore); void oper(int *pscore, float *pavg); void output(int *clas, char*pname, int *pscore, float *pavg); void main() { int clas[3] = {0,}; char name[3][3][10]; int score[3][3][4] = {0,}; float avg[3][3] = {0,}; input(clas, **name, **score); // 1차원 주소로 맞추기 oper(**score, *avg); output(clas, **name, **score, *avg);..
#include #include #pragma warning (disable:4996) void memoryalloc(int **pp); void input(int*p); void output(int*p); void del(int*p); void main() { int *p; memoryalloc(&p); // 포인터의 주소를 넘겨주기 input(p); output(p); del(p); } void memoryalloc(int**pp) { *pp=(int*)calloc(1,sizeof(int)); } void input(int*p) { printf("숫자를 입력하시오.(입력함수)\n"); scanf("%d",p); } void output(int*p) { printf("입력한 숫자가 나옵니다.(출력함수)..
#include #pragma warning(disable:4996) void input(int*p); void output(int*p, int*b); void main() { int a; int b[4] = { 4,3,2,1 }; input(&a); // 매개변수로 주소값 넘기기 output(&a, &b); printf("a=%d\n", a); // a = 300출력 } void input(int * p) // p=&a, p의 값이300이면 a의 값이 300 { *p = 300; } void output(int *p, int *b) { int i; for (i = 0; i < 4; i++) printf("%d\t", *(b + i)); printf("%d\n", *p); }