正在加载图片...
:第二章C+面向过程部分内容回顾 #include <iostream.h> void swap(int &p, int &q) void maino tint x,: x=20y=30; cout <<X="<<X<< y=<<y cout<<endl: swap(x,y) cout <<"x="<<X<< y="<<y cout<<end: void swap(int &p, int &q) i int t t=p; p=g q=t第二章 C++面向过程部分内容回顾 #include <iostream.h> void swap(int &p,int &q); void main() { int x,y; x=20;y=30; cout <<"x="<<x<<" y="<<y; cout<<endl; swap(x,y); cout <<"x="<<x<<" y="<<y; cout<<endl; } void swap(int &p,int &q) { int t; t=p;p=q;q=t; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有