oj

来源:互联网 发布:php禁止查看源代码 编辑:程序博客网 时间:2024/05/12 03:03
#include <iostream>  using namespace std;  void ast(int x,int y,int *cp,int *dp)  {      *cp=x+y;      *dp=x-y;  }  int main()  {      int a,b,c,d;      cin>>a>>b;      //下面调用函数ast      ast(a,b,&c,&d);      cout<<c<<" "<<d<<endl;      return 0;  }  

0 0
原创粉丝点击