0){ echo "删除成功";}else{ echo "删除失败";}mysql_close();?>
分类:
Web程序 时间:
2014-10-13 12:39:09
阅读次数:
149
1.基础数据类型:voidboolean true falsecharbyte short int longfloat double2.控制语句:if else switch case defaultdo while forbreak continuetry catch ...
分类:
编程语言 时间:
2014-10-13 10:33:59
阅读次数:
212
首先来看一段从《UNIX环境高级编程》中摘录的一段非常有意思的代码。借此我们再来谈谈fork()函数的一些问题。
#include "apue.h"
static void charatatime(char*);
int
main(void)
{
pid_t pid;
if((pid=fork())<0){
err_sys("fork error");
}else ...
分类:
其他好文 时间:
2014-10-12 23:16:58
阅读次数:
278
C语言关键字auto :声明自动变量 一般不使用double :声明双精度变量或函数int: 声明整型变量或函数struct:声明结构体变量或函数break:跳出当前循环else :条件语句否定分支(与 if 连用)long :声明长整型变量或函数switch :用于开关语句case:开关语句分支e...
分类:
编程语言 时间:
2014-10-12 19:46:58
阅读次数:
203
题目链接:ZOJ 3827 Information Entropy
根据题目的公式算吧,那个极限是0
AC代码:
#include
#include
#include
const double e=exp(1.0);
double find(char op[])
{
if(op[0]=='b')
return 2.0;
else if(o...
分类:
其他好文 时间:
2014-10-12 17:59:48
阅读次数:
156
if(monthValue==1||monthValue==3||monthValue==5||monthValue==7||monthValue==8||monthValue==10||monthValue==12) { dayvalue = 31 }else if(monthValue==4||...
分类:
其他好文 时间:
2014-10-11 19:06:06
阅读次数:
183
string 增加 IsNullorEmpty :String.prototype.IsNullOrEmpty = function (r) { if (r === undefined || r === null || r === "") { return true; } else { return...
分类:
Web程序 时间:
2014-10-11 17:46:55
阅读次数:
242
判断某个类是否实现了某方法:A *a =[[A alloc] autorelease];if([a respondsToSelector:@selector(methodName)]){//do something}else{//do other something}
分类:
其他好文 时间:
2014-10-11 15:26:05
阅读次数:
191
{dede:field name='id' runphp='yes' } if(@me 94) @me='xxxxxx';else @me='yyyyyyyyyy';{/dede:field}[field:global name=autoindex runphp="yes"]if(@me==5)@m...
分类:
其他好文 时间:
2014-10-11 13:21:45
阅读次数:
211
if(navigator.platform.indexOf('Win32')!=-1){//电脑网站 }else{ window.location.href=""; //手机网站 }参考:http://jingyan.baidu.com/article/cdddd41c61823e53cb00e1....
分类:
移动开发 时间:
2014-10-11 13:05:45
阅读次数:
183