自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(53)
  • 资源 (3)
  • 收藏
  • 关注

原创 dubbo+zookeeper实现soa架构的微服务应用

Dubbo也是一套微服务框架,他与SpringCloud的区别就是,他支持多种协议,而SpringCloud只支持Http协议。如果没有分布式,那么他是不存在的。dubbo是阿里巴巴旗下的一款分布式软件,它的新能非常优越。学习前引入三个概念:1消费者 2 提供者 3 注册中心。这三个概念我们必须了解清楚。提供者:通俗的讲就是远程服务的提供者(一到多个)。消费者:就是调用远程服务的(一到

2017-12-25 10:56:15 4331

转载 数据库优化问题详解

在做性能跟踪分析过程中,经常发现有不少后台程序的性能问题是因为缺少合适索引造成的,有些表甚至一个索引都没有。这种情况往往都是因为在设计表时,没去定义索引,而开发初期,由于表记录很少,索引创建与否,可能对性能没啥影响,开发人员因此也未多加重视。然一旦程序发布到生产环境,随着时间的推移,表记录越来越多这时缺少索引,对性能的影响便会越来越大了。这个问题需要数据库设计人员和开发人员共同关注

2017-12-23 09:40:44 342

原创 7.6

#include #include using namespace std; typedef struct student {int num; char name[20]; double score; }; int main() { student stud[3]={1001,"Li",78,1002,"Wang",89.5,1004,"Fun",90}, dstud

2015-06-15 23:06:50 459

原创 7.5

#include #include using namespace std; typedef struct staff { int num; char name[20]; int age; double pay; }; int main() { staff staf[7]={2101,"Li",34,1203,2104,"Wang",23,674.5,2108,

2015-06-15 23:01:12 331

原创 7.4

#include #include using namespace std; //VC++ 6.0 Òª´ËÐÐ //fun1 º¯Êý´Ó¼üÅÌÊäÈë 20 ¸öÕûÊý£¬·Ö±ð´æ·ÅÔÚÁ½¸ö´ÅÅÌÎļþÖÐ void fun1() { int a[10]; ofstream outfile1("f1.dat"),outfil

2015-06-15 22:32:08 489

原创 7.3

#include #include using namespace std; int main() { for(int n=1;n<8;n++) cout<<setw(20-n)<<setfill(' ')<<" " //nm <<setw(2*n-1)<<setfill('B')<<"B"<<endl; return 0; }

2015-06-15 22:27:20 301

原创 7.2

#include #include using namespace std; int main() { float a[5]; cout<<"input data:"; for(int i=0;i<5;i++) cin>>a[i]; cout<<setiosflags(ios::fixed)<<setprecision(2); for(int i=0

2015-06-15 22:24:46 230

原创 7.1

#include #include using namespace std; int main() { double a,b,c,s,area; cout<<"please input a,b,c:"; cin>>a>>b>>c; if (a+b<=c) cerr<<"a+b<=c,error!"<<endl; else if(b+c<=a)

2015-06-15 22:13:12 253

原创 研究生与本科生

#include#include#includeusing namespace std;class Student{public: Student(); Student(string n,string nu,char s,int sc):name(n),number(nu),sex(s),score(sc){} Student *next; string name; stri

2015-06-01 17:11:21 297

原创 添加三角形对象

//扩展程序:创建一个三角形类//修改create_object函数,使得程序支持三角形的创建//和求面积、打印等操作#include #includeusing namespace std;class Shape { public: virtual double getArea() const =0; virtual void print() const =0;

2015-05-21 09:50:00 281

原创 字符串操作

#include#include using namespace std;class String{public: String(); ~String(); String(const String &rs); String(const char* const ch); char &operator[](unsigned short int length ); char ope

2015-05-17 22:26:49 211

原创 第五章10

#include #include using namespace std; class Teacher {public: Teacher(int,char [],char); void display(); private:

2015-05-17 22:07:55 290

原创 第五章9

#include #include using namespace std; class Teacher {public: Teacher(string nam,int a,char s,string tit,string ad,string t); void display(); protected: string name; int ag

2015-05-17 22:03:29 413

原创 第五章4

#include using namespace std; class Student {public: void get_value(); void display(); protected :

2015-05-17 21:59:18 308

原创 第五章3

#include using namespace std; class Student {public: void get_value(); void display( ); protected :

2015-05-17 21:54:10 470

原创 第五章2

#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<

2015-05-17 21:50:23 219

原创 第五章1

#include#includeusing namespace std;class Student{public: void display() { cout<<"num:"<<num<<endl; cout<<"name:"<<name<<endl; cout<<"sex:"<<sex<<endl; } void setStu(){cin>>

2015-05-12 20:46:03 314

原创 第一题

#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();

2015-05-11 23:26:05 476

原创 时间加减运用派生和重载

#include#includeusing namespace std;class Time{public: void display(){cout<<hour<<":"<<minute<<":"<<sec<<endl;}protected: int hour; int minute; int sec;};class Date{public: void display

2015-05-05 22:46:54 354

原创 7

#include #include using namespace std; class Student {public: Student(int,char[],char,float); int get_num(){return num;} char * get_name(){return name;} char get_sex(){return sex;}

2015-05-03 21:16:07 400

原创 6

#include using namespace std; class Complex {public: Complex(){real=0;imag=0;} Complex(double r){real=r;imag=0;} Complex(double r,double i){real=r;imag=i;} operator double(){retur

2015-05-03 21:03:37 470

原创 5

#includeusing namespace std;class JU{ public: void input(); void display(); friend JU operator +(JU &c1,JU &c2); friend ostream& operator <<(ostream &,JU&c); friend istream& operat

2015-04-28 21:30:25 277

原创 4

#includeusing namespace std;class JU{ public: void input(); void display(); friend JU operator +(JU &c1,JU &c2); private: int ju[2][3];};void JU::input(){ int i,j; cout<<"ÇëÊäÈë¾Ø

2015-04-28 20:55:27 397

原创 3

#includeusing namespace std;class Complex{ public: Complex(double r,double i):real(r),imag(i){} friend Complex operator +(Complex &s1,Complex &s2); friend Complex operator +(int &i,Comple

2015-04-28 20:07:10 338

原创 2

#includeusing namespace std;class Complex{ public: Complex(double r,double i):real(r),imag(i){} Complex operator +(Complex &s); Complex operator -(Complex &s); Complex operator *(Complex &

2015-04-28 19:19:22 348

原创 1.

#includeusing namespace std;class Complex{ public: Complex(double r,double i):real(r),imag(i){} Complex operator +(Complex &s); void display(); private: double real; double imag;};Com

2015-04-28 19:03:39 234

原创 类的知识点的归纳绘图

2015-04-20 16:09:01 291

原创 第三章第11题

#include using namespace std; class Time; class Date {public: Date(int,int,int); friend Time; private: int month; int day; int year; }; Date::Date(int m,int d,int y)

2015-04-20 12:44:33 225

原创 第三章第10

#include using namespace std; class Date; class Time {public: Time(int,int,int); friend void display(const Date &,const Time &); private: int hour; int minute; int sec;

2015-04-20 12:39:45 272

原创 第三章第九题

#include using namespace std; class Product {public: Product(int n,int q,float p):num(n),quantity(q),price(p){}; void total(); static float average(); static void display();

2015-04-19 23:51:35 222

原创 第三章第8题

#include using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} void change(int n,float s) {num=n;score=s;} void display() {cout<<num<<" "<<score<<endl;}

2015-04-19 23:44:47 400

原创 第七题第五小题

#include using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} void change(int n,float s) {num=n;score=s;} void display() {cout<<num<<" "<<score<<endl;}

2015-04-19 23:44:20 208

原创 第七题第四小题

#include using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} void change(int n,float s) {num=n;score=s;} void display() {cout<<num<<" "<<score<<endl;}

2015-04-19 23:42:20 253

原创 第七题第三小题

#include using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} void change(int n,float s) {num=n;score=s;} void display() {cout<<num<<" "<<score<<endl;}

2015-04-19 23:29:50 245

原创 第三章第七题第二小题

#include using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} void change(int n,float s) const {num=n;score=s;} void display() const {cout<<num<<" "<<

2015-04-19 23:27:15 287

原创 第三章第七题

#include using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} void change(int n,float s) {num=n;score=s;} void display() const {cout<<num<<" "<<score<<

2015-04-19 23:24:51 285

原创 第三章第六题

#include using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} void change(int n,float s) {num=n;score=s;} void display(){cout<<num<<" "<<score<<endl;}

2015-04-19 23:15:30 263

原创 第三章5 找出5个学生中成绩最高者

#include using namespace std; class Student {public: Student(int n,float s):num(n),score(s){} int num; float score; }; void main() {Student stud[5]={ Student(1,78.5),Student(

2015-04-19 23:11:18 476

原创 第三章第四题

#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::display() {c

2015-04-19 22:54:54 327

原创 第三题改用默认参数

#include using namespace std; class Date {public: Date(int=1,int=1,int=2005); void display(); private: int month; int day; int year; }; Date::Date(int m,int d,int y):

2015-04-19 22:50:13 334

javafx jar包

javafx编程必备资源包,javafx是java最新出来的图形界面编写类,和swing相比要强大的多。

2016-01-06

java五子棋人机对弈

用javafx编写的一个简单的人机博弈程序

2016-01-06

空空如也

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

TA关注的人

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