摘要: http://alvarotrigo.com/fullPage/ 阅读全文
posted @ 2015-05-12 14:24 php-study 阅读(168) 评论(0) 推荐(0) 编辑
摘要: http://www.jianshu.com/p/6d42ad6368fd 阅读全文
posted @ 2015-05-12 14:23 php-study 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 4 int main() { 5 int a[10]; 6 int min=0, max=0; 7 cout > a[i];11 }12 min = a[0];13 max ... 阅读全文
posted @ 2015-05-12 13:37 php-study 阅读(4749) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 int main() 4 { 5 int a[10],min,i,xb; 6 cout>a[i]; 9 min=a[0];10 xb=0;11 for(i=0;i<10;i++)12 {13 if(a[i]<m... 阅读全文
posted @ 2015-05-12 11:58 php-study 阅读(2445) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 int main() 4 { int a,max; 5 cin>>a;//先输入一个数a 6 max=a; 7 for(int i=0;i>a; 9 if(a>m... 阅读全文
posted @ 2015-05-12 11:57 php-study 阅读(2848) 评论(0) 推荐(0) 编辑
摘要: 1.foreach 中使用引用的情况。普通情况下,foreach($arr as $value)中的$arr和$value是拷贝,不受外部影响的,即1 $arr = array(0,1,2,3,4,5);2 foreach($arr as $value){3 $arr = array();4 ech... 阅读全文
posted @ 2015-05-11 14:14 php-study 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 定义和用法number_format() 函数通过千位分组来格式化数字。语法1 number_format(number,decimals,decimalpoint,separator)1 输出:1 1,000,0002 1,000,000.003 1.000.000,00 阅读全文
posted @ 2015-04-27 13:44 php-study 阅读(502) 评论(0) 推荐(0) 编辑