2009/1/1521:32 ãC++ãé¢æ°ãã¤ã³ã¿ãå©ç¨ããåçãªé¢æ°å¼ã³åºã 以åã®è¨äºããC++ãé¢æ°ãã¤ã³ã¿ã®å©ç¨æ¹æ³ãã®å¿ç¨ã§ãé¢æ°ãã¤ã³ã¿ãå©ç¨ãã¦åçã«å¼ã³åºãé¢æ°ãåãæ¿ããæ¹æ³ã«ã¤ãã¦èª¬æãã¾ãã åããã¼ã¿åã®å¼æ°ã¨æ»ãå¤ã®é¢æ°ãè¤æ°ããå ´åãåçã«å¼ã³åºãé¢æ°ãåãæ¿ãããã¨ãã§ãã¾ãã 以ä¸ããµã³ãã«ã #include <stdio.h> int func1(int a, char b){ printf("a=%d, b=%c\n", a, b); return a + 1; } int func2(int a, char b){ printf("a=%d, b=%c\n", a, b); return a - 1; } int main(int argc, char* argv[]){ //é¢æ°ãã¤ã³ã¿ã®å®£è¨ int (*pfunc)(int, char); c
{{#tags}}- {{label}}
{{/tags}}