`
文章列表
静态链表staticList.h #include <stdio.h> #define MAXSIZE 1000 #define ERROR 0 #define OK 1 #define FALSE 0 #define TRUE 1 typedef int Status; typedef int ElemType; typedef struct{ ElemType data; //数据 int cur; //游标(Cursor) } Component,StaticLinkList[MAXSIZE]; void ShowMenu() ...
双向链表DuLinkList.h #include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 typedef char ElemType; typedef int Status; typedef struct DualNode{ ElemType data; struct DualNode *prior; struct DualNode *next; } DualNode, *DuLinkList; Status InitList(DuLinkLis ...
循环链表CLinkList.h #include <iostream> using namespace std; const int CardNumber=13; //链表存储结构的定义 typedef struct CLinkList{ int data; struct CLinkList *next; }node; void ShowMenu(); void ShowList(node **pNode); //初始化 void ds_init(node **pNode); //插入结点 //参数:链表的第一个结点,插入位置 ...

链表_

链表头文件LinkList.h #include <iostream> #include <ctime> using namespace std; #define ERROR 0 #define OK 1 typedef int ElemType; typedef int Status; typedef struct Node{ ElemType data; struct Node* next; } Node; typedef struct Node* LinkList; void ShowMenu(); void ...
头文件List.h #ifndef __LIST_H__ #define __LIST_H__ #include <stdio.h> #include <stdlib.h> #define LIST_INIT_SIZE 100 //线性表初始化长度 #define LISTINCREMENT 10 //线性表增长长度 typedef int ElemType; typedef int Status; #define ERROR 0 #define OK 1 #define TRUE 1 #define FALSE 0 #define O ...
将要在游戏中用到的文字写到xml文件中,如strings.xml,以UTF-8格式保存 <?xml version="1.0" encoding="UTF-8"?> <dict> <key>title</key> <string>跑酷</string> <key>start</key> <string>开始</string> <key>exit</key> ...

java反编辑工具

    博客分类:
  • java
jd-gui http://jd.benow.ca/

js面向对象实例

    博客分类:
  • js
function User() { var name = 'username'; var password = 'password'; //持有对象的this用于内部方法间调用 var $this = User.prototype; $this.setName = function(_name) { name = _name; }; $this.getName = function() { return name; }; $this.setPassword = function(_password) { ...

freemarker+itext生成PDF

    博客分类:
  • pdf
<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>com.lowagie</groupId> ...

linux修改主机名

第一步:#hostname localhost第二步:修改/etc/sysconfig/network中的hostname第三步:修改/etc/hosts文件

maven指定JDK版本

<profile> <id>jdk-1.7</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.7</jdk> </activation> <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7&l ...
package org.yzr.sort; import java.util.Arrays; public class InsertSort { public static void main(String[] args) { int arr[] = { 3, 4, 7, 1, 8, 0, 5, 2, 9, 6 }; System.out.println(Arrays.toString(arr)); insertSort(arr); System.out.println(Arrays.toString(arr)); } private sta ...
private static long gradeMultiply(long i) { if (i < 0) { return i; } else if (i == 0 || i == 1) { return 1; } return i * gradeMultiply(i - 1); }  
package org.yzr.sort; import java.util.Arrays; public class QuickSort { public static void main(String[] args) { int arr[] = { 3, 4, 7, 1, 8, 0, 5, 2, 9, 6 }; System.out.println(Arrays.toString(arr)); quickSort(arr, 0, arr.length - 1); System.out.println(Arrays.toString(arr)); ...

Mysql主从复制

1:主服务器要配置binlog2:众服务器要配置relaylog3:从服务器如何有权读取master的binlog授权,master要授予slave账号4:从服务器用账号连接master 主服务器配置vim /usr/local/mysql/my.cnf[mysqld]#给服务器设置IDserver-id=100#声明二进制日志的文件为mysql-bin.xxxlog-bin=mysql-bin#二进制日志格式 mixed/row/statement#statement:二进制记录执行语句,如update。。。#row:二进制记录的是磁盘变化#mixed:混合记录,由系统根据语句来决定bi ...
Global site tag (gtag.js) - Google Analytics