自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (5)
  • 收藏
  • 关注

原创 2015年9月10日 去掉字符串左右空格,中间空格仅保留一个

当时用c写的,挺长的。今天看到了java简直是流氓。 public static void main(String[] args) { String str=" aksdjf f f fjiadf "; String st; st=str.replaceAll("\\s+"," "); System.out.println(st.trim());

2015-09-10 17:10:44 352

原创 2015年9月10日 struts2TEST

action包下SuiBianAction.javapackage action;import com.opensymphony.xwork2.Action;import com.opensymphony.xwork2.ActionSupport;public class SuiBianAction extends ActionSupport { public String ex

2015-09-10 10:44:01 357

翻译 w3school JS 代码仓库

2015年9月1日19:45:58JS改变内容无标题文档var i=0;Alf's first JavaScriptJavaScript Can change the index of HTML function myFunction() { x=document.getElementById("parag"); if(i%2==0)x.innerH

2015-09-01 19:50:04 576

原创 Oracle数据库直连IO异常,更改localhost为本机IP地址后运行正常

2015年9月1日19:03:39//一星期内都被这个IO异常搞的烦躁不已,不停的倒包 建库 建监听 始终是IO异常,今天破罐破摔之后居然成功了,记录一下。//BaseDAO 惨烈的注释见证我的血泪史//此为Oracle数据库连接类 Connection getCon //目标数据库 NEUEDU loginpackage DAO;import java.sq

2015-09-01 19:13:02 904

原创 2015年8月20日21:03:18 firstNotRepeatingChar 哈希表实现O(n)

//for a char datetype,a 256 array hashtable .//looking for the first ,so wo should keep the sortchar firstNotRepeatingChar(char* pString){ if (pString==NULL) { return '\0'; } const int table

2015-08-20 21:01:44 770 1

原创 2015年8月20日20:25:45 丑数IsUgly

bool IsUgly(int number){ while(number%2==0) number/=2; while(number%3==0) number/=3; while(number%5==0) number/=5; return (number ==1 ) ?true:false;}//o(n^2)int GetUglyNumber_Solution2(int

2015-08-20 20:29:02 502

原创 2015年8月13日 O(n)fibonacci

#include/*long long fib(int x){ if(x<=0) return 0; if(x==1) return 1; return fib(x-1)+fib(x-2);} longer than 10min*/unsigned fib(unsigned x) //为何long long 100就溢出 { int result[2]={0,1}; i

2015-08-13 20:17:46 560

原创 2015年8月10日 C语言 宏和快排

#include#define GET_ARRAY_LEN(array,len){len=(sizeof(array)/sizeof(array[0]));}int arr[]={4,5,1,4,6,41,5,47,15,8,4,58,4,5,84,56,58,4,95,4,8,46,4,8,6,49,4,6};void quickSort(int left ,int right){ i

2015-08-10 18:32:57 247

原创 2015年8月5日--联合查询 ,层次查询

//2015年8月6日13:01:19--2015年8月5日12:34:23--------------------------chapter8--联合 union 条件里不能order by 必须在最后--完全联合 union all--相交intersect--相减minus/*SELECT sal ,job FROM emp WHERE empno =

2015-08-06 13:03:52 327

原创 二三四五六章作业

–chapter 2 –1 –SELECT * FROM emp –SELECT * FROM dept –SELECT * FROM salgrade –2 /*DESC emp DESC dept DESC salgrade*/ –3 –SELECT DISTINCT deptno ,job FROM emp–chapter 3 –1 /*SELECT ename , h

2015-08-05 09:11:39 242

原创 2015年8月3日--oracle

–2015年8月3日11:00:42 –子查询 –单行子查询:返回一行一列 –多行子查询:多行一列 –多列子查询:多行多列 /SELECT FROM emp WHERE sal>(SELECT sal FROM emp WHERE ename=’JONES’ ) */ –exce0 –1/*SELECT ename,sal FROM emp WHERE sal=(SELECT

2015-08-05 09:10:28 264

原创 2015年8月2日--第二三四天Oracle的sql文件

–2015年7月31日09:07:00–SELECT *FROM emp WHERE deptno=’10’ –字符自动转为数值–SELECT *FROM emp –WHERE 1=’1’7–SELECT 1+’1’ FROM dual–以上隐式转换–以下显式转换–to_char to_date to_number –SELECT to_char (hiredate) FROM emp/* S

2015-08-03 09:33:37 283

原创 2015年7月30日19:22:31--第一天Oracle的sql文件

`–SELECT ename,(sal*6+sal*6*1.2) worksal,(sal*6+sal*6*1.2)+nvl(comm,0)*12 totalsal FROM emp –St –ELECT ename ||job||sal emloyee FROM emp –SELECT ename ||’50000000000000000000000000000000000000000000

2015-07-30 19:21:56 322

转载 东软实训开始了

//effert2015年7月30日11:06:28

2015-07-30 11:05:30 311

原创 C#文件处理

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace 文件转换{ class Program { static void Main

2015-04-22 21:18:07 301

原创 C#-实验3

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.I

2015-04-21 15:19:10 384

原创 C#扩充类

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 课本习题{ public class Animal { public Animal() {

2015-04-21 12:31:40 383

转载 C# 无边框窗口实现拖动

原文地址:http://blog.csdn.net/sky___ice/article/details/11533321Form1.Designer.cs:////Form1// this.MouseDown += new System.Windows.Forms.MouseEventHandler(Form_MouseDown);

2015-04-17 19:27:12 495

原创 东秦C#课设002-简单的文本编辑器

//加入的拖拽属性失败,dropenter声明方法待查。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.T

2015-04-14 14:58:13 591

原创 7-003几何形体面积排序,有错,待改

#include#include#include#include using namespace std;class CShape{public: virtual double Area() = 0;//pure virtual fun virtual void PrintInfo()= 0;};class CRectangle :public CShape//public m

2015-04-13 20:48:39 327

原创 【程序设计实习】笔记 6-005 间接基类

#includeusing namespace std;class Base{ public: int n; Base(int i):n(i) { cout<<"Base "<<n<<" constructed"<<endl; } ~Base(){ cout<<"Base "<<n<< " destructed"<<endl; }};class De

2015-04-13 14:35:24 518

原创 【程序设计实习】笔记 6--002复合关系

//人狗关系#includeusing namespace std;class Cmaster;class Cdog{ Cmaster *pm;};class Cmaster{ Cdog *dogs[10]; };int main(){ Cmaster alf;}

2015-04-13 11:33:47 294

原创 【程序设计实习】笔记 6--001继承

//CanBaoYan。。//考虑到明年还要水蓝桥杯,还是学学c++把#includeusing namespace std;class CStudent{ private: string sName; int nAge; public: bool IsThreeGood(){cout<<"CStudent";}; void SetName(const

2015-04-11 22:30:27 324

转载 2014蓝桥杯问题 C: 神奇算式

没做完,先搞答题了#include #include#includeint comp(const void *a,const void *b){ return *(int*)a-*(int*)b;}int main(){ //----part1 for(int i=100;i<=999;i++) { int a[4]; memset(a,0,sizeof(a

2015-04-10 20:24:00 659

原创 2014年蓝桥杯预选赛 C/C++ 本科A组试题--切面条

//主要是要找到f(n)=2*f(n-1)-1的规律.#include #include int f(int n){ if(n==0) return 2; else return 2*f(n-1)-1;}int main(){ printf("%d",f(10));}

2015-04-10 17:33:34 301

原创 NEUQ1055谭浩强C语言(第三版)习题6.11

//迭代公式不是很理解,写出来算了。。#include #include int main(){ double x0,x1; int a; scanf("%d",&a); x0=a/2; x1=(x0+a/x0)/2; while(fabs(x0-x1)>=1e-5) { x0=x1; x1=(x0+a/

2015-04-10 17:12:45 866

原创 NEUQ1051: 谭浩强C语言(第三版)习题6.7

//C代码简直难看到家,求大神知道如何写出复用性好的,维护性强的代码。。。//格式错误了好几次,最后发现是are和数字之间多了个空格。。。。。。本来一直以为是最后的换行多了,费劲搞掉了。#include#includeint main(){ int n,temp; scanf("%d",&n); for(int i=1;i<=n;i++) { int sum=0; //

2015-04-10 16:51:58 1205

原创 NEUQ1038: 谭浩强C语言(第三版)习题4.8

之前没做对的一道题,今天集中清理一下。//-------------------很水的题,主要是 %.2lf 不能四舍五入,需要仅保留两位小数,用了丑陋的强制类型转换。。。//------------------#include#define PI 3.14int main(){ double r,h; scanf("%lf %lf",&r,&h); printf("C1=

2015-04-10 16:15:34 1427

原创 C# 占位符

在c#中有两种方式可以输出多个字符其中的一种:static void Main()           {                   string c=Console.ReadLine();                   string d=Console.ReadLine();                  Console.WriteLine(c+","

2015-03-24 20:55:58 14144

AngularJS权威教程.pd

AngularJS权威教程.pd

2015-08-17

现代操作系统(中文第3版).pdf

现代操作系统(中文第3版).pdf

2015-08-04

[计算机程序的构造和解释].(中文版).清晰版[1].pdf

[计算机程序的构造和解释].(中文版).清晰版[1].pdf

2015-08-02

计算机网络

网络资料 ------【谢希仁】计算机网络第五版.pdf

2015-08-02

空空如也

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

TA关注的人

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