码迷,mamicode.com
首页 > 其他好文 > 详细

函数指针

时间:2014-07-10 00:45:12      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   os   io   div   

#include <iostream>
typedef int (__stdcall* FUN)(int);//定义函数指针,参数为Int,返回为int,调用约定__stdcall


int __stdcall fun1(int x)
{
    std::cout << x << std::endl;
    return x;
}

int main()
{
    FUN fun = &fun1;
    fun(3);
    getchar();
    return 0;
}

 

函数指针,布布扣,bubuko.com

函数指针

标签:style   blog   color   os   io   div   

原文地址:http://www.cnblogs.com/zzyoucan/p/3812357.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!