#include<iostream> using namespace std; void func( int, int, int * )

[复制链接]
查看11 | 回复1 | 2013-1-8 18:24:46 | 显示全部楼层 |阅读模式
#includeusing namespace std;void func( int, int, int * ) ;
这里是说明有定义过这个函数,因为调用函数在主函数后要是调用函数在前就不用了int main(){ int x, y, z;定义x,y,z 为整型func( 5, 6, &x );
调用函数func 把5,6分别传给func()中的a,b 吧x的地址给*cfunc( 7, x, &y );
func( x, y, &z );cout << x<< " ," << y << ", "<< z <<endl;}void func(...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行