vc++6.0环境中swap函数
摘要:
Vc++6.0环境下Swap函数的变化#include<iostream>using namespace std;void main(){ void swap(double&,double&); double a,b; cout<<"请输入两个数a和b:"; cin>>a>>b; swap(a,b); cout<<"a="<<a<<"b="<<b;}void swap(double &x,double &y) 阅读全文
posted @ 2012-10-25 00:29 albert1017 阅读(918) 评论(0) 推荐(0) 编辑