- 博客(39)
- 收藏
- 关注
转载 01 Java开发环境配置 Windows
Java 简介Java是由Sun Microsystems公司于1995年5月推出的Java面向对象程序设计语言和Java平台的总称。由James Gosling和同事们共同研发,并在1995年正式推出。Java分为三个体系:JavaSE(J2SE)(Java2 Platform Standard Edition,java平台标准版) JavaEE(J2EE)(Java 2 Plat...
2019-03-22 10:43:39 191
转载 linux虚拟机安装后报错,ifconfig: command not found
参考链接:https://www.cnblogs.com/dunitian/p/4974761.html、https://blog.csdn.net/ryu2003/article/details/78492127注:本办法仅限于可联网的机器,即在安装时设置了IP地址和DNS可正常上网。解决办法如下:1、输入ip addr 确认IP地址是否设置正常,设置好如下所示,如果没有获...
2019-03-01 14:47:48 9309 2
原创 2、python数据分析基础技术-未完成
网址,可以看笔记https://www.imooc.com/video/150021、numpy关键词:开源 数据计算扩展功能:ndarray 多维操作 线性代数官网:http://www.numpy.org/相关介绍:shape表示几行几列ndim表示维数dtype表示元素的数据类型itemsize表示元素的大小,比如float就是8个字节size表示元素组合总的个数2、numy常用Arr...
2018-05-09 17:58:06 238
原创 1、python数据分析准备
1、pycharm2、Anaconda在Pycharm中设置Anaconda新建一个工程工程选择位置在项目中新建两个文件夹,一个py文件
2018-05-09 17:36:42 193
原创 JavaScript 02
alert弹出对话框,一定要点确定alert function rec(){ var mychar="I love JavaScript";alert(mychar); } confirm 弹出对话框,你选择确定或者取消;确定返回true,取消返回fasleconfirm function re
2017-05-22 15:57:06 279
原创 JavaScript 01
https://developer.mozilla.org/zh-CN/learn/javascript《JavaScript权威指南》
2017-05-22 15:45:56 405
转载 Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
Compatibility Guide for JDK 8 says that in Java 8 the command line flag MaxPermSize has been removed. The reason is that the permanent generation was removed from the hotspot heap and was moved to
2017-04-08 16:07:11 8143
原创 slave1: ssh: connect to host slave1 port 22: No route to host 问题解决
问题描述:启动hadoop时【master slave1 slave2】master启动正常,slave1未启动并显示其错误slave1: ssh: connect to host slave1 port 22: No route to host 一、使用ping命令检验master与slave是否连接,查看ip地址与配置时的文件是否有所改变,若有则重新配置过
2017-04-08 16:04:34 29035 1
原创 HTML5 表单学习
表单仍然使用元素作为容器从W3C网站上可以找到HTML5新增和修改的元素 http://w3c.github.io/html-reference/表单说明:action是你提交后跳转的界面设置;method是方法,有get---获取,和post传递两种一、控件 type="email": required表示必须要填value命名--
2017-04-06 09:51:14 320
原创 01 在 Ubuntu/CentOS 中使用 Eclipse 来开发 MapReduce 程序 小例子
使用Eclipse编译运行MapReduce程序_Hadoop2.6.0_Ubuntu/CentOS本教程介绍的是如何在 Ubuntu/CentOS 中使用 Eclipse 来开发 MapReduce 程序,在 Hadoop 2.6.0 下验证通过。虽然我们可以使用命令行编译打包运行自己的MapReduce程序,但毕竟编写代码不方便。使用 Eclipse,我们可以直接对 HDFS 中的
2017-04-05 10:57:11 451
原创 第四章
1.#include using namespace std; class Complex{ public: Complex() { real=0; imag=0; } Complex(double r,double i) { real=r; i
2017-03-29 11:27:33 200
转载 00 Hadoop2.6.4分布式计算环境的搭建 LINUX环境
工具 VMware-workstation-10.0.1注册机 CentOS-6.5-x86_64-bin-DVD1 jdk-7u79-linux-x64 hadoop-2.6.4.tar四、实验的步骤和方法解压VMware-workstation-10.0.1注册机,打开VMware Workstation主页,点击新建虚拟机,选择典型,如下:
2017-03-29 11:17:42 644 1
原创 hadoop 启动datanode没有出现
打开文件 hadoop【你搭建时创建的文件夹】/dfs/data/current删除VERSION文件master,slave,都要操作
2017-03-29 11:11:11 1745
原创 三角形
//扩展程序:创建一个三角形类//修改create_object函数,使得程序支持三角形的创建//和求面积、打印等操作#include #include using namespace std;class Shape { public: virtual double getArea() const =0; virtual void print() const =0;
2015-06-23 19:17:32 238
原创 用一个异质链表(多态性)保存学生数据
#include #include using namespace std; class Student { public: virtual void get()=0; virtual void display()=0; string name; string num; }; class UnderG
2015-06-23 18:56:14 310
原创 Time Date DateTime的继承与派生及运算符重载
#include class Time{ public: Time(){} Time(int h,int m,int s) { hour=h; minute=m; second=s; } friend istream & operator>>(istream &,Ti
2015-06-23 18:55:17 369
原创 第七章
1.#include #include using namespace std; void area(float a,float b,float c) { double s,area; if(a+b<=c) cerr<<"a+b<=c,error!"<<endl; else if(b+c<=a) cerr<<"b+
2015-06-23 18:53:41 203
原创 第六章
1. #include class Point {public: Point(float x=0,float y=0); void setPoint(float,float); float getX() const {return x;} float getY() const {return y;}
2015-06-23 18:52:33 243
原创 第五章
#include using namespace std; class Student{ public: void get_value() {cin>>num>>name>>sex;} void display() { cout<<"num:"<<num<<endl; cout<<"name:"<<na
2015-06-23 18:51:11 223
原创 第四章
1.#include using namespace std; class Complex{ public: Complex() { real=0; imag=0; } Complex(double r,double i) { real=r; i
2015-06-23 18:48:51 189
转载 第三章
3.#include using namespace std; class Date { public: Date(int=1,int=1,int=2005); void display(); private: int month; int day; int year; }; Date
2015-06-23 18:42:22 210
原创 第三题 P067
#include using namespace std;class Time{ public: void set_time(); void show_time(); private: int hour; int minute; int sec;};int main(){ Time t1; t1.set_time(); t1.show_time();
2015-06-10 07:47:51 236
原创 第二题 P067
#include using namespace std;class Time{ public: void set_time() { cin>>hour; cin>>minute; cin>>sec; } void show_time() { cout<<hour<<":"<<minute<<":"<<sec<<endl; } privat
2015-06-10 07:39:15 251
原创 第一题 P066
#include using namespace std;class Time{ public: void set_time(void); void show_time(void); private: int hour; int minute; int sec;};Time t;int main(void){ t.set_time(); t.show_ti
2015-06-10 06:57:23 289
原创 第十四题 P035
#include using namespace std;templateT bubblesort(T a ,int n){ bool sorted = false; while(!sorted) { sorted = true; for(int i=0;i<n-1;++i) { if(a[i]>a[i+1]) { swap( a[i],a[i+
2015-06-06 18:43:40 272
原创 第十三题 P035
#include using namespace std;int max(int max_i[10]) //求三个整数中最大者{ int temp; for(int i=0;i<10;i++) { for(int j=i;j<10;j++) { if(max_i[i]>max_i[j]) { temp=max_i[i]; max_i[i
2015-06-06 07:01:09 286
原创 第十二题 P035
#include #include using namespace std;int main(){ int i,j; string temp; string str[5]={ "chen","sheng","is","very","cool"}; for(i=0;i<5;i++) { for(j=i;j<5;j++) { if(str[i]<str[j]) {
2015-06-05 16:38:11 190
原创 第十一题 P035
#include #include using namespace std;int main(){ int i; string str="LIGHT"; for(i=4;i>=0;i--) { cout<<str[i]; } cout<<endl; return 0;}
2015-06-05 16:14:48 212
原创 第十题 P035
#include using namespace std;#include int main(){ string str1="chensheng ",str2="cool !" ,str; str=str1+str2; cout<<str<<endl; return 0;}
2015-06-05 16:05:22 222
原创 第九题 P035
#include using namespace std;int main(){ int x=1,y=5,z=8; int swap(int &a,int &b,int &c); swap(x,y,z); return 0;}int swap(int &a,int &b,int &c){ int temp; if(a<b) { temp=a;a=b;b=temp;} if
2015-06-05 15:57:09 265
转载 第八题 P035
#include using namespace std;int main(){ int a,b; cout<<"Please input two numbers:"<<endl; cin>>a>>b; int &x=a; coutb?x:b)<<endl; return 0;}
2015-06-05 15:53:34 310
原创 第七题 P035
#includeusing namespace std;int main(){ int max(int x,int y); int a; cin>>a; cout<<"Max="<<max(a,3)<<endl; return 0;}int max(int x,int y){ return x>y?x:y;}
2015-05-27 09:45:25 236
转载 第六题 P035
#include using namespace std;int main(){ int sort(int &x,int &y,int &z); int a,b,c; cout<<"Please input three numbers:"<<endl; cin>>a>>b>>c; sort(a,b,c); cout<<a<<','<<b<<','<<c<<endl; retur
2015-05-27 09:35:58 283
转载 第五题 P034
#include using namespace std;int add(int x,int y){ int z; z=x+y; return (z);}int main(){ int a=2,b=44,c; c=add(a,b); cout<<"a+b="<<c<<endl; return 0;}
2015-05-27 09:10:16 255
转载 第四题 P034
#includeusing namespace std;int main(){ int a=1,b=2,c; c=a+b; cout<<"a+b="<<a+b;}
2015-05-27 08:54:49 215
转载 第三题 P033
#include using namespace std;int main(){ int a,b,c; int f(int x,int y,int z); cin>>a>>b>>c; c = f(a,b,c); cout<<c<<endl; return 0;}int f(int x,int y,int z){ int m; if(x<y) m=x; else m=
2015-05-27 08:47:43 221
转载 第二题 P033
#includeusing namespace std;int main(){ int a,b,c; a=10; b=23; c=a+b; cout<<"a+b="; cout<<c; cout<<endl; return 0;}
2015-05-27 08:39:02 191
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人