#include#includeusing namespace std;#define maxn
200005class Node{public: int l,r; int add;//附加值 int sum;}node[maxn];int
getRight(int n){//获得...
分类:
其他好文 时间:
2014-07-22 23:14:14
阅读次数:
431
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int
main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n);
if(n>max) ...
分类:
其他好文 时间:
2014-07-22 23:13:33
阅读次数:
339
import java.security.MessageDigest;import
java.util.*;public class Hello2{ public static void main(String[] args) throws
Exception{ Random r = new Ran...
分类:
其他好文 时间:
2014-07-22 23:13:33
阅读次数:
354
mysql_num_rows();返回结果集中行的数目。1 $sql1 = "select *
from movie";2 $result1 = mysql_query($sql1) or die(mysql_error());3 $count =
mysql_num_rows($result1);...
分类:
Web程序 时间:
2014-07-22 23:13:33
阅读次数:
354
今天在学习鸟哥的菜的时候,发现自己linux不可以启用vim命令,错误为:bash: vim:
command not found。 机器环境:VMWare8+RED HAT Enterprise5 解决方法: 发现问题的根源在于没有安装好vim 输入
rpm -qa|grep vim ...
分类:
其他好文 时间:
2014-07-22 23:12:56
阅读次数:
993
1,若方法传入的对象参数为空,则在方法中改变参数并不会改变声明的对象public void
setList(List list){ list = new ArrayList() ; } @Test public void t4(){ List ...
分类:
编程语言 时间:
2014-07-22 23:12:56
阅读次数:
323
public class ToLog { public static void
main(String[] args) throws Exception { //准备日志文件 File f = new File("log.txt");
if(!f.ex...
分类:
其他好文 时间:
2014-07-22 23:12:54
阅读次数:
300
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int
main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n);
if(n>max) { printf("...
分类:
其他好文 时间:
2014-07-22 23:12:15
阅读次数:
325
11. double 数值的整数次方note:
浮点数表示时有误差,判等时必须自己根据精度要求实现。#include #include using namespace std;bool
equal(double num1, double num2) // key 1{ if(num1 - num2 ...
分类:
其他好文 时间:
2014-07-22 23:11:56
阅读次数:
436
引入:#include#includevoidfun(char**q){exit;}voidmain(){char**p,a[6][8];p=a;fun(a);}编译不能通过!ERROR:不能将”char(*)[8]”类型的值分配到”char**”类型的实体。ERROR:”char(*)[8]”类型...
分类:
其他好文 时间:
2014-07-22 23:11:34
阅读次数:
313