码迷,mamicode.com
首页 >  
搜索关键字:do it    ( 12356个结果
宏定义中#和##的使用
1. ##的功能是将其后面的宏参数进行字符串化操作(Stringfication),简单说就是在对它所引用的宏变量通过替换后在其左右各加上一个双引号1 #define WARN_IF(EXP) /2 do{ if (EXP) /3 fprintf(stderr, "Warning: " ...
分类:其他好文   时间:2014-08-05 18:49:59    阅读次数:585
PHP如何正确读取文件内容?解析
PHP 读取文件的多种方法,一起来看看吧。处理诸如 PHP 之类的现代编程语言的乐趣之一就是有大量的选项可用。PHP 可以轻松地赢得 Perl 的座右铭“There's more than one way to do it”(并非只有一种方法可做这件事),尤其是在文件处理上。但是在这么多可用的选项中...
分类:Web程序   时间:2014-08-05 18:40:39    阅读次数:261
break和continue语句
跳转语句中断当前的执行过程,C++语言提供了4中跳转语句:break、continue、goto和return。break语句break语句负责终止离他最近的while、do while、for或switch语句,并从这些语句之后的第一条语句开始继续执行。break语句只能出现在迭代语句或者swit...
分类:其他好文   时间:2014-08-05 18:31:00    阅读次数:250
JavaScript的关键字和保留字
关键字:break case catch continue default delete do else finallyfor function if in instan...
分类:编程语言   时间:2014-08-05 13:32:39    阅读次数:262
rwkj 1423
#include #includeusing namespace std;int a[10];int main(int argc, char *argv[]){ int i;int N;while(cin>>N)for(i=0;i<N;i++) a[i]=i+1;do{for(i=0;i<N;i++...
分类:其他好文   时间:2014-08-05 13:27:39    阅读次数:258
jquery总结
一、$表示jquery对象 二、样本 1.ajax进行json交互 $.ajax({ url : path+"expressDic.do?parentId=" + parentId, type : ‘post‘, dataType : ‘json‘, timeout : 5000, error : function() { alert(‘加载数据异常,...
分类:Web程序   时间:2014-08-05 11:41:29    阅读次数:226
Disable Linux IPv6 Networking
On most of the Linux distribution IPv6 is enabled by default, which may cause your internet is workding slow, so If your network do not supportor do not setup IPv6 network, you should better to dis...
分类:Web程序   时间:2014-08-05 11:40:29    阅读次数:348
批量登陆linux主机脚本
#test.sh #!/bin/bash dir=/home/test whilereadline do host=`echo$line|awk‘{print$1}‘` passwd=`echo$line|awk‘{print$2}‘` $dir/expect_ssh.sh$host$passwd& done<$dir/host.txt #expect_ssh.sh #!/usr/bin/envexpect setHOST[lindex$argv0] setPASSWD[lindex$argv..
分类:系统相关   时间:2014-08-05 11:33:10    阅读次数:243
Python 循环语句
Python提供了for循环和while循环(在Python中没有do..while循环):循环类型描述while循环在给定的判断条件为true时执行循环体,否则退出循环体。for循环重复执行语句嵌套循环你可以在while循环体中嵌套for循环循环控制语句循环控制语句可以更改语句执行的顺序。Python支持以下..
分类:编程语言   时间:2014-08-05 03:12:19    阅读次数:740
使用TextUtils.isEmpty简单化代码
我们经常看到这样的代码: public void setText(String text , TextView view , int string){ if(text == null || text.length() == 0){ // do something } }...
分类:其他好文   时间:2014-08-05 03:04:38    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!