自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

嵇康的专栏

从sina博客迁移到此

  • 博客(10)
  • 资源 (9)
  • 收藏
  • 关注

原创 C语言基础--完美数

#include #include #include int perfectPrime(int a){int tmpVal=a;int sum=0;int flag=0;int arr[10]={0};int i=2,j=0,m=0;while(a%2==0){    a=a/2;arr[m++]=i;}w

2014-12-31 07:01:49 792

原创 C语言基础--分解质因素

#include "stdafx.h"#include #include #include int devidePrime(int a){int count=1;int flag=0;int i=2,j=0;static k=0;while(a%2==0){k++;if(k==1)printf("2");        else

2014-12-31 06:35:50 595

原创 C语言基础--输出数值的中文读法

#include #include #include void strdel(char*s,char del){int i;for(i=0;s[i];i++){if(s[i]==del)s[i] = 0;}}void printInChinese(int a){ char *s="";char * arr[10];int i=

2014-12-31 05:39:35 4539

原创 C语言基础--素数

#include #include int prime(int a,int b){int count=1;int flag=0;int sum=0;int i=2,j=0;while(count{  i++; int tmp=(int)sqrt(i); for(j=2;j2?tmp:2);j++){flag=1;   if(i%j

2014-12-31 04:55:47 418

原创 列出叶节点(PAT3-2)

参考:http://www.patest.cn/contests/mooc-ds/03-2问题:03-2. List Leaves (25)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, Yue

2014-12-24 04:06:47 4313 3

原创 二分法求多项式根

#include #include int a[4];  double c[2];double fun(double x){  return a[0]*x*x*x+a[1]*x*x+a[2]*x+a[3];}int main(int argc, char* argv[]){          int i;  double x=10,x1=

2014-12-16 05:44:03 1161

原创 用堆栈把中缀表达式转化为后缀表达式,之后再求后缀表达式结果

红色部分为在上一篇文章上补充的部分#include "stdafx.h"#include #include #include #include #define MAXSIZE 100//转换中缀表达式用的符号(+-/*)堆栈,为了最后转换成后缀表达式链表用typedef struct Stack{int arr[MAXSIZE];int

2014-12-13 12:11:18 1277

原创 用堆栈把中缀表达式转化为后缀表达式

参考文章:http://www.cnblogs.com/mygmh/archive/2012/10/06/2713362.html中缀表达式转后缀表达式的方法:1.遇到操作数:直接输出(添加到后缀表达式中)2.栈为空时,遇到运算符,直接入栈3.遇到左括号:将其入栈4.遇到右括号:执行出栈操作,并将出栈的元素输出,直到弹出栈的是左括号,左括号不输出。5

2014-12-13 10:32:22 8587 1

原创 链表实现的多项式表达式(记住系数和指数)

#include #include #include #include //记住系数和指数typedef struct Node{int coef;int exp; struct Node *next;}Node;void printNode(Node* node){ if(node) { printf("%d ",node->coe

2014-12-13 08:44:46 1775

原创 最大子序列问题

最近在回顾数据结构,听了mooc的浙江大学的课程http://www.icourse163.org/learn/zju-93001#/learn/announce,第一课就是这个问题,觉得挺好的,就记录下来了,问题如下:Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is de

2014-12-05 03:06:02 770

2013_uboot_aston.txt

x210的uboot2013.10补丁, 由diff -urN u-boot-2013.10 u-boot-2013.10_aston >2013_uboot_aston.txt 生成

2020-05-24

对象计数问题

c++的对象计数问题的多线程实现代码 c++的对象计数问题的多线程实现代码 c++的对象计数问题的多线程实现代码

2012-10-10

uboot_116-linux2.6.32.7z

最新的我的友善之臂膀arms3c410版的文件 编译器arm-linux-gcc4.3.2 目录:/home/jimmy/usr/local/arm/4.3.2/bin/arm-linux-gcc uboot_1.1.6 目录: /home/jimmy/uboot_1.1.6 linux2.6.32.2(地址:http://arm9download.cncncn.com/mini2440/linux/linux-2.6.32.2-mini2440-20110413.tar.gz) 目录: /usr/src/linux_2.6.32.2

2012-09-11

jdbc——内嵌事务

jdbc——内嵌事务 <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"></property> </bean> <bean id="departmentDao" class="my.aop.dao.DepartmentDaoJdbcImpl" scope="prototype"> <property name="dataSource" ref="dataSource"></property> </bean> <bean id="userDao" class="my.aop.dao.UserDaoJdbcImpl" scope="singleton"> <property name="dataSource" ref="dataSource"></property> </bean> <bean id="myService" class="my.aop.dao.MyService"> <property name="departmentDao"> <ref bean="departmentDao" /> </property> <property name="userDao"> <ref bean="userDao" /> </property> </bean> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> &lt;!-- org.apache.commons.dbcp.BasicDataSource class=" --&gt; &lt;property name="url" value="jdbc:oracle:thin:@10.80.1.171:1521:CBS3001"></property> <property name="maxActive" value="4"></property> <property name="username" value="cone3590_dev"></property> <property name="password" value="arbor123"></property> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"></property> <property name="defaultAutoCommit"> <value>false</value> </property> </bean> <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate"> <property name="dataSource" ref="dataSource"/> </bean> </beans>

2012-03-13

linux_0.11_bochs

gcc4编译的内核 bochs2.1.1 Image为内核 rootimage-0.11为文件系统软盘 当然可以搞个虚拟硬盘的文件系统hdc.img,太大的,没上传(同时要改Iamge的509,510字节为0103)

2012-02-23

java数据结构

java data structrue: public interface BinaryTreeInterface<T> { public T getRootData(); public int getHeight(); public int getNumberOfRoot(); public void clear(); public void setTree(T rootData); public void setTree(T rootData,BinaryTreeInterface<T> left,BinaryTreeInterface<T> right); }

2011-12-31

jbpm4.4请假流程

<?xml version="1.0" encoding="UTF-8"?> <process name="leave" xmlns="http://jbpm.org/4.3/jpdl"> <start g="196,25,48,48" name="start1"> <transition to="申请"/> </start> <task form="qhrequest.jsp" g="172,118,92,52" name="申请" candidate-groups="#{dev}"> //*****candidate-groups="#{dev}" 采用JBPM用户组进行处理任务 //*****assignee="manager" 采用指定manager用户进行处理任务 <transition to="经理审批"/> </task> <task assignee="manager" form="qhmanager.jsp" g="175,217,92,52" name="经理审批"> <transition g="-32,-8" name="批准" to="exclusive1"/> <transition g="128,221;124,165:-42,-18" name="驳回" to="申请"/> </task> <decision expr="#{day > 3 ? '老板审批' : '结束'}" g="200,308,48,48" name="exclusive1"> <transition g="-39,-10" name="结束" to="end1"/> <transition g="339,342:-71,-17" name="老板审批" to="老板审批"/> </decision> <task assignee="boss" form="qhboss.jsp" g="294,375,92,52" name="老板审批"> <transition g="339,457:" to="end1"/> </task> <end g="199,445,48,48" name="end1"/> </process>

2011-12-09

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除