自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(82)
  • 收藏
  • 关注

原创 以百度网盘实现一个虚拟文件系统 bdfs

前言一直以来我都苦于一些文档在家和公司来回拷贝上传下载的苦恼中,由于日常使用的都是Linux系统,当然,我也不想花钱长期租个云主机装nfs服务,所以一直在等百度网盘出linux版本客户端,结果百度刚没多久发布的Linux版本客户端Bug也很多,登录一次之后再也无法登录,必须删除配置文件重新打开才行。所以我干脆就想要不就以百度的网盘接口实现虚拟文件系统,这样也就相当于本地多了块好几个T的云硬盘。在...

2020-04-22 00:23:26 3467 3

原创 HTML5 WebSocket(Client) + JavaWeb(Server) 实现简单的聊天室功能

介绍: WebSocket是HTML5规范新引入的功能,用于解决浏览器与后台服务器双向通讯的问题,使用WebSocket技术,后台可以随时向前端推送消息,以保证前后台状态统一,在传统的无状态HTTP协议中,这是“无法做到”的。 原理: 客户端由HTML5 websocket监听,客户端发送长连接,后台请求阻塞实现服务端消息实时更新. 服务端获得当前连接中的

2015-11-22 20:33:08 47731 27

原创 Nutch2.3 + Hbase 配置到爬行

准备工作:JDK、Hbase、Ant、Nutch 安装JDK(JDK8) 如果你已经安装JDK跳过此步骤 $:cd /usr/local $:wget http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-linux-x64.tar.gz $:tar zxvf jdk-8u65-li

2015-11-05 22:00:19 5249 4

原创 linux下 nexus搭建maven私有库 自动打包

linux下nexus搭建maven私有库自动打包 首先需要安装nexus:http://www.sonatype.org/nexus/go/ 如上图所示执行命令解压tar包tar zxvf nexus-2.11.3-01-bundle.tar.gz进入解压好的目录cd nexus-2.11.3-01进入bin目录运行nexuscd bin./nexus start关闭nexu

2015-07-02 11:21:38 14544 8

原创 linux下安装Maven

linux下安装Maven首先到 apache 官网下载 maven:http://maven.apache.org/download.cgi以apache-maven-3.3.3-bin.tar.gz为例,将它放在/usr/local/目录下tar zxvf apache-maven-3.3.3-bin.tar.gz 执行该命令解压tar包vim /etc/profile 执行该命令编辑p

2015-07-02 10:57:38 680

原创 linux安装mongodb tar 加入服务并开机启动

把mongodb的tar包下载下来 这里我放到/home目录

2014-10-23 10:47:46 2929

原创 linux(ubuntu) 安装mysql 步骤整合(记录)

安装mysql:sudo apt-get install mysql-serversudo apt-get install mysql-clientsudo apt-get install php5-mysql(用于连接php和mysql)查看mysql是否运行ps aux | grep mysql启动命令/etc/init.d/mysql sta

2014-10-22 15:38:28 626

原创 数据结构实训初结构体数组实现学生信息管理

// 00001.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "windows.h"#include "iostream"using namespace std;struct Stud{ char name[21]; char sex[5];

2012-08-31 09:08:58 964

原创 数据结构 学生信息管理

// 000001.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "windows.h"#include "iostream"using namespace std;struct stud{ char name[21]; char phone[1

2012-08-31 09:08:46 1002

原创 数据结构 选票

#include "stdafx.h"struct person{ char name[21]; int count;}L[3]={"Li",0,"Zhang",0,"Wang",0};int main(int argc, char* argv[]){ int i=0,t,e; int k; puts("1:Li 2:Zhang 3:Wang"); while(i

2012-08-31 09:08:03 811

原创 数据结构 链表 通讯录

#include "stdafx.h"#include "windows.h"#include "iostream"using namespace std;typedef struct Pnode{ char Pname[21]; char Pphone[12]; char Psex[5]; char Padd[21]; Pnode *pNext;}node,*Node;

2012-08-31 09:07:38 3273

原创 数据结构实训三简单的链表

/*题目要求:设计以设计菜单项的处理功能为基础,5个不同功能的算法实现编程题目,目的是熟悉利用链表结构来解决实际应用问题的能力,进一步理解和熟悉线性表的链式存储结构。为了实现数据管理的几种操作功能,首先设计一个含有多个菜单项的主控菜单程序,然后再为这些菜单配上相应的功能。 题目内容:主控菜单设计要求:1.主控菜单设计要求:程序运行后,给出6个菜单项的内容和输入提示: 1.链表的

2012-08-31 09:06:42 841 2

原创 数据结构实训二Debug

#include#includetypedef struct student { int num ; int score ; struct student *next ; }ST;#define LEN sizeof(ST)int n;ST *creat(void){ ST *p1,*p2,*head=NULL; int n=0; p1=(S

2012-08-31 09:06:28 484

原创 数据结构实训一最小年龄

#includestruct stud{ char name[20]; int age;};struct stud fun(struct stud person[],int n) { int min,i; min=0; for(i=0;i<n;i++) if(person[i].age<person[min].age) min=i; r

2012-08-31 09:06:17 474

原创 莫名其妙的数据结构学习过程

#include "stdafx.h"#include "windows.h"#include "string"#include "iostream"using namespace std;struct Student{ int num; string name; int age;};int main(int argc,char *argv){ Student

2012-08-31 09:05:58 392

原创 简单的结构数组 先预占一些位置吧

#include "stdafx.h"#include "iostream"#include "windows.h"#include "string"#include "cstring"using namespace std;struct ch{ char name[21]; int num; string party;};int main(int argc, cha

2012-08-30 22:57:08 905

原创 简单的结构体成员赋值

#include "stdafx.h"#include "iostream"#include "windows.h"#include "string"#include "cstring"using namespace std;struct ch{ char name[21]; int num; string party;};int main(int argc, cha

2012-08-29 23:50:02 1159

原创 string类的io和char类比较 初始字符长度不一样

#include "stdafx.h"#include "iostream"#include "windows.h"#include "string"#include "cstring"using namespace std;int main(int argc, char* argv[]){ char ch1[21]; string ch2; cout<<strlen(ch

2012-08-28 22:27:12 524

原创 字符串输入输出cin.get的用法

#include "stdafx.h"#include "iostream"#include "windows.h"#include "string"#include "cstring"using namespace std;int main(int argc, char* argv[]){ char name[21],ch[21]; int age; cout<<"Ple

2012-08-28 21:18:19 815

原创 扩展

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"#include "string"using namespace std;struct act{ string ch; float a; double c;};int main(i

2012-07-31 23:52:31 358

原创 结构体输出

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"#include "string"using namespace std;struct act{ char ch[101]; float a; double c;};int mai

2012-07-31 23:49:58 1231

原创 结构体定义

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"#include "string"using namespace std;struct act{ char ch[101]; float a; double c;};int mai

2012-07-31 23:48:34 369

原创 String 类型的用法

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"#include "string"using namespace std;int main(int argc, char* argv[]){ string ch1="asdasd",ch2

2012-07-31 23:40:28 362

原创 String 类型与 char 类型比较

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"#include "string"using namespace std;int main(int argc, char* argv[]){ char name[101]; string

2012-07-31 23:34:19 958

原创 Please Enter your name

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"using namespace std;int main(int argc, char* argv[]){ char name[101]; char nam1[101]; cout<<"

2012-07-31 23:29:13 2298

原创 驱车里程

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"using namespace std;int main(int argc, char* argv[]){ double yl; cout<<"Please input\n"; cin>

2012-07-31 23:14:52 758

原创 输秒求天

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"using namespace std;int main(int argc, char* argv[]){ int mine; cout<<"Please input \n"; cin>

2012-07-31 23:11:28 1947

原创 度分秒输入纬度 度输出

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"using namespace std;int main(int argc, char* argv[]){ double D; int d,f,m; cout<<"Please inpu

2012-07-31 23:01:04 918

原创 身高转英尺

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"using namespace std;int main(int argc, char* argv[]){ double cm; cout.setf(ios_base::fixed,ios

2012-07-31 22:53:28 1383

原创 找到编码为88的字符

#include "stdafx.h"#include "windows.h"#include "iostream"#include "stdlib.h"#include "climits"using namespace std;int main(int argc, char* argv[]){ char ch='A'; while(ch<='z') { if(ch==

2012-07-31 22:41:06 716

原创 四则运算器

#include "stdafx.h"#include "iostream"#include #include #include "resource.h"#include "MainDlg.h"using namespace std;BOOL WINAPI Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

2012-07-15 20:54:46 465

原创 (API) 老题了 圆面积

#include "stdafx.h"#include "iostream"#include #include #include "resource.h"#include "MainDlg.h"using namespace std;BOOL WINAPI Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)

2012-07-13 23:27:16 957

原创 递归实现 Fibnacci数列

#include "stdafx.h"int main(int argc, char* argv[]){ int Fib_(int x); printf("%d\n",Fib_(10)); return 0;}int Fib_(int x){ if(x>2) return Fib_(x-1)+Fib_(x-2); else return 1;}

2012-06-29 23:59:33 656

原创 电文加密

#include "stdafx.h"int main(int argc, char* argv[]){ void Pass_(char ch[]); char a[101]; gets(a); Pass_(a); puts(a); return 0;}void Pass_(char ch[]){ int i; for(i=0;ch[i];i++) { if(ch

2012-06-29 23:55:40 1812

原创 删除指定字符

#include "stdafx.h"int main(int argc, char* argv[]){ void Del_(char a[],char b); char ch[101],lin; puts("Please input words:"); gets(ch); puts("Please input Del char:"); lin=getchar(); Del_(

2012-06-29 23:55:07 348

原创 删除指定位置字符

#include "stdafx.h"int main(int argc, char* argv[]){ void Del_str(char a[],char b[],int n); char ch[101]="wangzhanzhi",null[101]; Del_str(ch,null,3); puts(null); return 0;}void Del_str(char

2012-06-29 23:54:37 665

原创 编写一个函数 比较三个字符串的大小

#include "stdafx.h"int main(int argc, char* argv[]){ char *change(char a[],char b[],char c[]); char a[]="wang",b[]="zhan",c[]="zhi"; puts(change(a,b,c)); return 0;}char *change(char a[],char

2012-06-29 23:54:01 3472

原创 写出你能想到的最高效的逆序存放字符串程序

#include "stdafx.h"#include "stdlib.h"#include "windows.h"int main(int argc, char* argv[]){ int i,j,z; char ch[101]="asdf",t; z=strlen(ch)-1; for(i=0,j=z;i!=j&&i<j;i++,j--) { t=ch[i]; c

2012-06-29 23:52:25 628

原创 编写strcmp函数

#include "stdafx.h"#include "stdlib.h"#include "windows.h"int main(int argc, char* argv[]){ int strcmp_(char * a,char * b); char ch1[101],ch2[101]; gets(ch1); gets(ch2); printf("%d\n",strcmp

2012-06-29 23:51:21 1120

原创 实现(真)随机数

/*file1*/#include "stdafx.h"#include "time.h"extern int rand1();extern void srand1(unsigned int seed);int main(int argc, char* argv[]){ srand1((unsigned)time(0)); for(int i=0;i<10;i++) prin

2012-06-29 23:50:49 729

空空如也

空空如也

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

TA关注的人

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