import std.stdio;
ref int greater(ref int first, ref int second) {
return (first > second) ? first : second;
}
void main() {
int a = 1;
int b = 2;
greater(a, b) += 10;
writefln("a: %s, b: %s", a, b);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265978.html