void func(Base& b)其中"Base& b"是什么意思?解决思路
void func(Base& b)其中"Base& b"是什么意思?
RT
------解决方案--------------------
#include <iostream.h>
void Show(int& a)
{
cout < <++a < <endl;
}
int main()
{
int b = 100;
cout < <b < <endl;
Show(b);
cout < <b < <endl;
}
看看结果就明白了
RT
------解决方案--------------------
#include <iostream.h>
void Show(int& a)
{
cout < <++a < <endl;
}
int main()
{
int b = 100;
cout < <b < <endl;
Show(b);
cout < <b < <endl;
}
看看结果就明白了