码迷,mamicode.com
首页 >  
搜索关键字:scala for if match while    ( 37974个结果
过滤资源地址
string strPatten = "(src|href)=(.*?)[>| ]"; string strContent = " "; Regex reg = new Regex(strPatten); foreach (Match match in...
分类:其他好文   时间:2014-05-16 20:00:47    阅读次数:266
android开源项目之OTTO事件总线(二)官方demo解说
官方demo见 https://github.com/square/otto注意自己该编译版本为2.3以上,默认的1.6不支持match_parent属性,导致布局文件出错。另外需要手动添加android-support-v4和otto到自己的libs文件夹。主要代码逻辑:1,在主页面点clear按...
分类:移动开发   时间:2014-05-16 19:19:36    阅读次数:334
Scala 学习笔记
class Rational(n: Int, d: Int) { require(d != 0) override def toString = n +"/"+ d}The require method takes one boolean parameter. If the passed val.....
分类:其他好文   时间:2014-05-16 09:01:12    阅读次数:272
Scala curly braces & parenthesis
今天上英文課, 因為我想記住這兩個單字curly braces & parenthesis你會看到一些代碼中curly braces & parenthesis是可以替換的?You may replace parenthesis with curly braces if, and only if, ...
分类:其他好文   时间:2014-05-16 07:27:23    阅读次数:257
shell note
死循环while :do# do somethingdone
分类:其他好文   时间:2014-05-16 06:16:36    阅读次数:227
杭电 2024
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int n; 8 string str; 9 int flag;10 while (cin>>n)11 {12 ...
分类:其他好文   时间:2014-05-16 06:05:15    阅读次数:377
杭电2025
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 string str=""; 8 string str2=""; 9 char max;10 while (getline(ci...
分类:其他好文   时间:2014-05-15 16:20:41    阅读次数:258
程序员/设计师能用上的 75 份速查表(转)
75 份速查表,由 vikas 收集整理,包括:jQuery、HTML、HTML5、CSS、CSS3、JavaScript、Photoshop、git、Linux、Java、Perl、PHP、Python、Ruby、Ruby on Rails、Scala、C#、SQLite、C++、C语言、Ubun...
分类:其他好文   时间:2014-05-15 15:29:11    阅读次数:768
杭电2019
1 #include 2 using namespace std; 3 4 int main() 5 { 6 int a[110] = {0};//已经排好的 7 int n,m; 8 while (cin>>n>>m && n||m) 9 {10 ...
分类:其他好文   时间:2014-05-14 09:43:38    阅读次数:407
Android fill_parent、wrap_content和match_parent的区别
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:移动开发   时间:2014-05-14 07:02:27    阅读次数:424
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!