- 博客(34)
- 资源 (5)
- 收藏
- 关注
原创 IDEA的使用技巧
目录目录无处不在的跳转精准搜索Live Templates 代码模板助手Postfixalter enter重构抽取git集成数据库关联 Windows平台无处不在的跳转项目之间跳转 crtl + alt + 右方括号]或者左方括号[文件之间跳转 crtl + e 或者在菜单栏里找到Help -> Find Action直接...
2018-02-24 23:38:09 626
原创 vue学习第一天:vue简单介绍
vue到底是什么?最近在实习期间刚好要参与一个新项目,要采用前后端分离的模式进行设计,在选择前端框架的时候推荐了vue.js,所以我就要开始了解和学习vue了。Vue (读音 /vjuː/,类似于 view) 是一套用于构建用户界面的渐进式框架。与其它大型框架不同的是,Vue 被设计为可以自底向上逐层应用。Vue 的核心库只关注视图层,不仅易于上手,还便于与第三方库或既有项目整合。另一方面,当与现代
2018-02-07 13:10:59 948
转载 Redis入门
1.redis基础 https://www.jianshu.com/p/44bb030aecd52.碰到的一些小问题 https://www.jianshu.com/p/0c7ebb357395 以前在简书上写的,记录一下
2018-01-20 13:26:03 249
翻译 spring开始
spring.version = 3.0.2.RELEASE spring IoC容器实现提供了两种实现方式: 1. 基本的bean工厂(Bean Factory) 2. 更高级的应用程序上下文(Application Context) 但是ApplicationContext 仅仅只是一个接口,spring提供了它的多种实现。 ClassPathXmlApplicationCon
2018-01-01 15:09:31 289
原创 RandomAccessFile随机访问文件
为什么需要RandomAccessFile类? 因为所有的流都是只读的(rean-only)或者只写的(write-only),这些流被成为顺序流(sequential stream),如字符流(Reader,Writer)和字节流(InputStream,OutputStream) 使用顺序流打开的文件成为顺序访问文件,顺序访问的文件不能更新,所以为了经常修改文件,java提供R
2017-12-31 16:02:55 757
原创 Serializable接口
什么是Serializable接口? java中的Serializable接口是一种标记接口,因为它没有方法,所以不需要在类中为实现Serializable接口而增加额外代码,实现这个接口可以启动Java的序列化机制,实现Serializable接口的对象是可序列化对象。java API中哪些类实现了Serializable接口? 所有针对基本类型值的包装 (Integer,Doubl
2017-12-31 14:19:47 446
原创 小细节
try-with-resources自动关闭资源 "()"圆括号中的资源必须是AutoCloseable的子类型, 块结束后资源自动关闭try( PrintWriter writer = new PrintWriter(new File("test.txt"))){ writer.print("test123");} 不能用new实例化一个抽象类,,但是抽象类可以作为
2017-12-30 16:16:25 247
原创 方法重写
要重写一个方法,需要在子类中使用和父类一样的签名以及一样的返回值类型来对该方法进行定义。注意仅当实例方法是可访问时,它才能被覆盖。因为私有方法在它的类本身以外是不能被访问的,所以不能被覆盖。如果子类中定义的方法在父类中是私有的,那么这两个方法完全没有关系。//父类public class BaseClass {private static int getSum(int a,int b){
2017-12-26 20:48:11 300
原创 c++第二章
1#include <iostream>using namespace std;class Time {public:void set_time();void show_time();private: int hour; int minute; int sec; };void Time::set_time() { ci
2017-12-25 16:51:49 348
原创 jquery学习笔记
$(document).ready(function(){ ... })等价于$(function(){ ... }) 作用: 防止文档在加载之前就运行jquery代码,产生错误。 mouseenter()事件和mouseleave() 事件通常一起使用 , mouseover() 事件和 mouseout() 事件通常一起使用 $.hover(functio
2017-12-25 11:41:23 318
原创 HTML学习小记
HTML标签 HTML空元素(如:),最好在开始标签中添加斜杠关闭元素 如果标签有结束标签不要忘记添加(如:) 最好使用小写标签(如:),虽然HTML标签对大小写不敏感,但w3c在HTML4中推荐小写 块级元素(如:)在浏览器显示通常以新行开始或结束,而内联元素(如:)则不会 属性 HTML属性和属性之对大小写不敏感,但推荐使用小写 2.属性
2017-12-09 21:16:58 234
原创 java可变长参数列表
package com.liufei.VariableParametersList;/** * Created with IntelliJ IDEA. * User: lenovo * Author: liufei * Description: java可变长参数列表 */public class VariableParametersList { public static v
2017-12-02 12:27:04 2137
原创 在CentOS 7下配置Hadoop环境(一)
在CentOS 7下配置Hadoop环境(一)Tags: Hadoop所需软件 安装centos 7 配置JDK 配置无密钥登录 配置Hadoop 配置Eclipse Loading…所需软件 centos 7 https://www.centos.org/download/ hadoop 2.7.3 http://hadoop.apache.org/rel
2017-03-30 08:23:47 1226
原创 C#入门学习篇之第一天
准备工作 先下载Visual Studio2015 https://www.visualstudio.com/downloads/参考书籍 书籍 下载地址 C#入门经典(第6版) http://download.csdn.net/detail/cjtech/8676815 C#程序设计及应用教程 http://product.dangdang.com/2340574
2016-09-21 12:11:15 849 1
原创 解决Visual Studio2015安装路径不能修改的问题
Visual Studio2015下载 https://www.visualstudio.com/downloads/问题 VisualStudio2015的安装路径为灰色,不能更改问题原因 Visual Studio2015以前安装的组件并没有卸载干净,而VS必须和它们安装在一起,所以无法更改路径,只要清理干净即可解决办法 下载软件Visual Studio Uni
2016-09-15 15:01:42 41785 35
原创 安装Windows7虚拟机+ERPU8-10.1软件+SQLserver2008R2
声明此文章部分原创,有一部分参考他人作品,但仅此作为个人学习和课后复习巩固用,如果有任何纠纷侵权问题,本人不做任何回应所用工具VMware WorkStation 12 百度搜索vmware可找到windows7旗舰版镜像文件 可以到http://www.itellyou.cn/去下载官方虚拟镜像,不过需要密钥,下面给出一些密钥 Win7旗舰
2016-09-11 23:29:15 5050
原创 C++第6,7,8章
#include //如用VC++应改为∶#include using namespace std; //如用VC++应取消此行#include "cylinder.h"#include "point.cpp"#include "circle.cpp"#include "cylinder.cpp"int main(){Cylinder cy1(3.5,6.4,5.2
2015-06-15 16:53:11 491
原创 扩展三角形类求面积和打印
//扩展程序:创建一个三角形类//修改create_object函数,使得程序支持三角形的创建//和求面积、打印等操作#include #includeusing namespace std;#define OK 1#define ERROR -1class Shape { public: virtual double getArea() const =0; virtua
2015-05-19 20:49:29 689
原创 Timedata
#include class Time{public: Time(){} Time(int h,int m,int s) { hour=h; minute=m; second=s; } friend istream & operator>>(istream &,Time &); friend ostream & operator<<(ostream &,Time &);
2015-05-18 23:13:35 450
原创 C++第五章
1:#include using namespace std;class Student{public: void get_value() {cin>>num>>name>>sex;} void display( ) {cout<<"num: "<<num<<endl; cout<<"name: "<<name<<endl; cout<<"sex:
2015-05-11 15:43:28 597
原创 C++第四章
1:#include using namespace std;class Complex {public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} double get_real(); double get_imag(); void display(); pr
2015-04-26 20:10:30 483
原创 C++第三章
4.#include using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} void display(); private: int num; float score; }; void Student::di
2015-04-20 16:10:09 864
原创 1.13和1.14
1.13#include #include using namespace std;int main( ){ longa[5]={10100,-123567, 1198783,-165654, 3456}; intb[5]={1,9,0,23,-45}; floatc[5]={2.4, 7.6, 5.5, 6.6, -2.3 }; voidsort
2015-03-28 21:09:37 622
原创 1.12
#include#includeusing namespace std;int main(){string s[5];for(int m=0;mcin>>s[m];for(int i=0;ifor(int j=0;jif(s[j]>s[j+1]){string t;t=s[j];s[j]=s[j+1];s[j+1]=t;}for(
2015-03-28 20:44:59 391
原创 第二章
1 #include using namespace std;class Time {public:void set_time();void show_time();private: int hour; int minute; int sec;
2015-03-28 20:22:27 465
原创 11
#include#includeusing namespace std;int main(){string s1;cin>>s1;int i=s1.size()-1;for(;i>=0;i--)coutcout return 0;}
2015-03-28 19:59:46 495
原创 为什么程序运行不了?求解
#include#include"string"#include"cstring"using namespace std;class Person{int age;char *name;char gender;public:void display();Person():age(10),gender('M'){strcpy(name,"AAA");
2015-03-24 22:30:15 1250
原创 排序。9
#includeusing namespace std;float sort(float &x,float &y,float &z){float t;if(x>y){t=x; x=y; y=t;}if(x>z){t=x;x=z;z=t;}if(y>z){t=y;y=z;z=t;}coutreturn 0;}int main(){flo
2015-03-24 17:51:33 437
原创 引用,比较两数大小。8
#includeusing namespace std;int max(int &x,int &y){if(xx=y;return x;}int main(){int a,b;cin>>a>>b;coutreturn 0;}
2015-03-24 17:26:43 524
原创 比较3个整数大小、c++
#includeusing namespace std;int main(){int a,b,c;cin>>a>>b;int max(int a,int b,int c=5);coutreturn 0;}int max(int a,int b,int c=5){if(aa=b;if(aa=c;return a;}
2015-03-23 23:19:02 2483
原创 如何改变输出?
#includeint main(){char ch1,ch2;ch1=getchar();printf("ch1=%c\n",ch1);ch2=getchar();printf("ch2=%c\n",ch2);return 0;}改变终端输出形式,使其变为ach1=abch2=b
2015-03-20 19:43:08 499
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人