码迷,mamicode.com
首页 > 编程语言 > 详细

第一章 算法引论

时间:2018-03-18 13:52:34      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:签名   blog   gpo   wap   stat   div   swa   算法   方法签名   

1-1实参交换

public static void swap(int x,int y){

int temp=x;

x=y;

y=temp;

}

上述均为值参数,执行调用后,实际参数不变

public static void swap(init *x,int *y){

int temp=*x;

*x=*y;

*y=temp;

}

1-2方法签名

 

 

第一章 算法引论

标签:签名   blog   gpo   wap   stat   div   swa   算法   方法签名   

原文地址:https://www.cnblogs.com/kekeoutlook/p/8595159.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!