일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- html plug-in
- #android activity
- #3차원배열
- html object
- html charset
- #C++ 연산자함수오버로딩
- html multimedia
- html video
- #CallByAddress
- html code
- 토큰경제
- #JAVASCRIPT
- git flow
- docker example
- #C++ has~a
- #binary
- border-box
- hyperledger transaction
- mac terminal command
- html id
- #다차원포인터
- #성적관리프로그램
- #1차원배열
- html5 new tag
- relative path
- html youtube
- #2차원배열
- 하이퍼레저패브릭
- #자바상속#자바이즈어#is~a
- #bubbleSort
Archives
- Today
- Total
목록#함수포인터 (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