码迷,mamicode.com
首页 > 其他好文
利用itextsharp导出pdf
在项目中,客户要求把一些表格导出pdf格式,在网上找了好久终于发现一个完美的解决方案,利用itextsharp可以很方便的导出pdf文件,不说太多了,直接上图,有图有真相 首先是页面图片 然后是导出的pdf图片 导出pdf代码如下:  //导出Mold pdf文档         public void exportpdf_Mold(string quotenum, st...
分类:其他好文   时间:2015-01-30 22:57:12    阅读次数:539
HDU 3262 Seat taking up is tough
这题其实挺简单,可是自己就是被坑了很长时间,究其原因,脑袋短路了。本来排完序之后,应该把结果按照未排序之前的顺序输出,结果我就直接输出了,而题目给的例子正好是按顺序给的,输出没有问题,哎,果然够坑。以后再也不能相信题目给的例子了。 #include #include #include #include #include #include using namespace std; int seat...
分类:其他好文   时间:2015-01-30 22:57:57    阅读次数:384
用户权限设计(一)
我是springmvc加mysql加hibernate的环境,基础配置的东西就不写出来的,只把重点的写出来 1.数据表:一个三个表   (1) 用户表:   (2)对象表   (3)用户关于对象对应的权限表 2.model对象 UserAuth.java public class UserAuth { private Strin...
分类:其他好文   时间:2015-01-30 22:56:01    阅读次数:450
滑动分页pageview,滑动分页GridView
采用pageview做成的一个滑动分页效果,在里面添加Gridview视图,太深奥的东西我也不懂,不过反正能实现这种效果吧图片是借用的。...
分类:其他好文   时间:2015-01-30 22:57:58    阅读次数:232
最长单增子序列问题
问题描述:有一个长为n的数列a0,a1,a2........a(n-1)。请求出这个序列中最长的单增子序列的长度。单增子序列的定义是:对于任意的 i       这个问题就是著名的最长单增子序列(LIS)问题。对于这道问题,我们可以利用动态规划来进行求解:假设dp[i]表示以a[i]为末尾的最长单增子序列的长度,则在得到dp[i]时,我们可以这样做:初始化dp[i]为1,利用一个j变量遍历已经访...
分类:其他好文   时间:2015-01-30 22:56:15    阅读次数:259
HDU 1312 统计有多少个点
统计有多少个点...
分类:其他好文   时间:2015-01-30 22:57:04    阅读次数:235
初识SVG矢量图
一:什么是SVG以及的特点 (1)SVG指可伸缩矢量图形(Scalable Vector Graphics) (2)SVG 用来定义用于网络的基于矢量的图形 (3)SVG 使用 XML 格式定义图形 (4)SVG 图像在放大或改变尺寸的情况下其图形质量不会有所损失 二:SVG之HelloWorld 像学习每一门语言一样,我们来写一个最简单的SVG矢量图。输出一个圆。 ...
分类:其他好文   时间:2015-01-30 22:54:47    阅读次数:197
Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 / ...
分类:其他好文   时间:2015-01-30 22:56:04    阅读次数:128
hdu 3065 AC自动机
AC自动机...
分类:其他好文   时间:2015-01-30 22:54:18    阅读次数:195
HDU 2115
略水...
分类:其他好文   时间:2015-01-30 22:53:51    阅读次数:189
poj-1847
题目链接:http://poj.org/problem?id=1847 把第一个相连的边设为0,其余的设为1. #include #include #include #include #include using namespace std; const int INF = 1000000; const int MAX = 110; int n,a,b; int m,f,t; ...
分类:其他好文   时间:2015-01-30 22:52:55    阅读次数:170
Core Data存储自定义类型数据
目录: 一、使用CoreData存储基本数据 二、使用CoreData存储自定义类型数据 简单介绍CoreData   CoreData是iOS编程中使用持久化数据存储的一种方式,我们知道CoreData并不是数据库本身,而是Apple提供的对象持久化技术——Object Persistent technology。CoreData框架为我们的数据变更、管理、对象存储、读取和恢复提...
分类:其他好文   时间:2015-01-30 22:53:54    阅读次数:262
POJ 1017 Packets
这题可能是用贪心思想来写的,具体是不是我也不知道,自己对贪心也不是太清楚。之前好像写过,当时似乎没有写出来,不过,这次一下就有了思路。本来是想先装小的包裹,可是试了一下不行,有问题;于是改为先装大的包裹,如果有多余,再装小的,每次都这样,直到所有的包裹被装完为止。试了试,感觉没有什么问题。 代码写的可能有的乱,不过思路还是清楚的。 #include #include #include #inc...
分类:其他好文   时间:2015-01-30 22:54:40    阅读次数:144
error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found
I want to run some programs of vs2012 on the vs2013 ,however some errors as follows: first time the error is : error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' you can do that as fllows : ...
分类:其他好文   时间:2015-01-30 22:53:39    阅读次数:1436
96.Unique Binary Search Trees
Given n, how many structurally unique BST's (binarysearch trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST's.   1         3     3     2      1    \    ...
分类:其他好文   时间:2015-01-30 22:53:46    阅读次数:166
144.Binary Tree Preorder Traversal(非递归前序遍历)
Given a binary tree, return the preorder traversal of itsnodes' values. For example: Given binary tree {1,#,2,3},    1         2     /    3 return [1,2,3]. Note: Recursive solution istr...
分类:其他好文   时间:2015-01-30 22:53:36    阅读次数:234
141.Linked List Cycle
Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? HideTags  Linked List Two Pointers #pragma once #include using namespace std; ...
分类:其他好文   时间:2015-01-30 22:54:42    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!