일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- #bubbleSort
- mac terminal command
- git flow
- #JAVASCRIPT
- #1차원배열
- 하이퍼레저패브릭
- hyperledger transaction
- #binary
- relative path
- html plug-in
- border-box
- #성적관리프로그램
- html charset
- #3차원배열
- html code
- html multimedia
- 토큰경제
- #다차원포인터
- html id
- html youtube
- html5 new tag
- docker example
- #자바상속#자바이즈어#is~a
- #C++ 연산자함수오버로딩
- html object
- html video
- #CallByAddress
- #2차원배열
- #android activity
- #C++ has~a
Archives
- Today
- Total
목록#functionPointer (1)
A sentimental robot
함수포인터
#include #pragma warning(disable:4996); void write(char *s) { printf("%s\n",s); } int add(int x, int y){ return x+y ;} int sub(int x, int y){ return x-y ;} int mul(int x, int y){ return x*y ;} int div(int x, int y){ return x/y ;} void main() { void (*g)(char *); int (*f[4])(int,int); int x; int y; f[0]=add; f[1]=sub; f[2]=mul; f[3]=div; g = write; (*g)("hello"); while(1){ printf("What do you wan..
C
2018. 1. 3. 09:54