Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

c++ªºÆ[©ÀÃD...about reference...

0 views
Skip to first unread message

日積月累之功

unread,
Dec 27, 1999, 3:00:00 AM12/27/99
to

void ref(int&,int&);
int main()
{
int a;
double b;
a=3;
b=2;
ref(a,b);
cout<<"The value of a is:"<<a<<"The value of b is:"<<b;

return 0;
}
void ref(int &x,int &y)
{
x+=5;
y+=5;
}

請問a,b的值各為何??


--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: LA14PA3-127.D21-232.ncu.edu.tw

0 new messages