码迷,mamicode.com
首页 >  
搜索关键字:class    ( 183544个结果
转:ffmpeg压缩视频示例
#ifndef RECORD_H#define RECORD_H#include "avcodec.h "#include "avformat.h "#include class QRecord{public:static int Open(const char *,int,int,int);sta...
分类:其他好文   时间:2015-05-10 11:14:36    阅读次数:158
Http上传文件
1 public class UpLoadFile 2 { 3 public static void UpLoadFiles(string fileName) 4 { 5 string fileType = Path.GetExte...
分类:Web程序   时间:2015-05-10 11:13:39    阅读次数:117
【LeetCode】52.N-Queens II
用的是回溯法 1 class Solution { 2 public: 3 int INITIAL = -1000; 4 // 一维数组a[n]中,下标代表行号,对应里面存的值代表列号。比如a[2] = 4,说明2行4列(0行0列为最开始的行列号) 5 bool place(...
分类:其他好文   时间:2015-05-10 11:11:52    阅读次数:121
把潜在的树形结构数据转换成树形结构数据
实体类: 1 using System.Collections.Generic; 2 using System.ComponentModel; 3 4 namespace TreeViewBindingDemo 5 { 6 public class NodeEntry : INotifyP...
分类:其他好文   时间:2015-05-10 11:10:45    阅读次数:158
Java Stax操作XML简介
使用stax操作xml 非常的简单,它的读取过程像是一个光标在移动。针对不同的节点做不同的处理。 先看一个基于光标的模型处理xml:public class StaxTest { @Test public void test1() { try { // 1.构建XMLStreamReader XMLInputFactor...
分类:编程语言   时间:2015-05-10 10:00:38    阅读次数:171
Factorial
Factorial         时间限制:1秒    内存限制:256兆 题目描述      Many years later, Alice grow up and she become a high-school student.One day she learned factorial on math class. The fac...
分类:其他好文   时间:2015-05-10 09:59:21    阅读次数:164
Java IO异常的处理方式
我们想往一个文件里写东西,初始版本: import java.io.*; class FileWriterDemo{ public static void main(String[] args) { FileWriter fw = new FileWriter("demo.txt"); //创建流,打开(如果不存在,新建)文件 fw.write("abcdefg");...
分类:编程语言   时间:2015-05-10 09:53:20    阅读次数:132
各种常见排序算法归纳总结
class sort_algorithm { public: int array[MAXN]; int n; public: sort_algorithm() { } ~sort_algorithm() { } /*插入排序 复杂度O(n^2) 稳定排序*/ void Insertion_sort() { for (int i = 2; i <= n; i++) { i...
分类:编程语言   时间:2015-05-10 09:49:53    阅读次数:141
JAVA并发API源码解析:原子类
在JAVA API的java.util.concurrent.atomic包下提供了一系列以基本类型包装类为基础的并发情况下不需要同步的类(借助硬件相关指令实现)。     首先看一个例子AutomicInteger: public class AtomicInteger extends Number implements java.io.Serializable { private...
分类:编程语言   时间:2015-05-10 06:24:27    阅读次数:155
随机生成不重复的数
class Program { static void Main(string[] args){ Console.WriteLine("请输入要生成随机数的范围1-?");//接收用户输入的字符 string str=Console.ReadLine (); int it;//尝试转换用户...
分类:其他好文   时间:2015-05-10 06:17:16    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!