摘要:
void swap(int &rx,int &ry) //这里到底是什么意思??
{
int temp;
cout"swap.before swap. rx: "rx" ry: "ryendl;
temp=rx;
rx=ry;
ry=temp; 阅读全文
posted @ 2008-12-03 16:36
雨城
阅读(298)
评论(0)
推荐(0)
摘要:
cout"&intone "&intoneendl;
cout"&rsomeref "&rsomerefendl; 阅读全文
posted @ 2008-12-03 15:29
雨城
阅读(541)
评论(0)
推荐(0)
摘要:
#include using namespace std; int main() { int intone; int &rsomeref=intone; intone=5; cout<<"intone "<<intone<<endl <<"&rsomeref "<<rsomeref<<endl; rsomeref=7; cout<<"intone "<... 阅读全文
posted @ 2008-12-03 15:22
雨城
阅读(399)
评论(0)
推荐(0)
摘要:
#include using namespace std; class Rectangle { public: Rectangle(); ~Rectangle(); void setlength(int length){itslength=length;} int getlength()const{return itslength;} void setwidth(int width){... 阅读全文
posted @ 2008-12-03 15:15
雨城
阅读(339)
评论(0)
推荐(0)

浙公网安备 33010602011771号