自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 ArrayList扩容源码解读

1.  ArrayList的构造方法,源码如下:1/**2     * Shared empty array instance used for default sized empty instances. We3     * distinguish this from EMPTY_ELEMENTDATA to know how much to inflate when4  

2017-09-22 08:53:03 378

原创 wrap_content和match_parent的区别

fill_parent 宽度或者高度 布满整个屏幕从Android 2.2开始fill_parent改名为match_parent。wrap_content布局元素将根据内容更改大小。

2016-09-29 15:48:25 27213 1

原创 在mysql Navicat中怎样设置ID自动递增

在添加或变更表结构时,把id字段设置为整型,下面的选项就会出现auto increment的选择框,勾选中就可以了。

2016-07-04 20:14:43 40176 3

原创 关于mysql中外键约束对父表的含义

外键约束对父表的含义:   在父表上进行update/delete以更新或删除在子表中有一条或多条对应匹配行的候选键时,父表的行为取决于:在定义子表的外键时指定的on update/on delete子句, InnoDB支持5种方式, 分列如下     . cascade方式    在父表上update/delete记录时,同步update/delete掉子表的匹配记录    

2016-07-04 20:04:53 1751

原创 在python(windows操作系统)中安装、配置Tushare,希望对股票有兴趣的程序员有一点点帮助

TuShare是一个免费、开源的python财经数据接口包。主要实现对股票等金融数据从数据采集、清洗加工 到 数据存储的过程,能够为金融分析人员提供快速、整洁、和多样的便于分析的数据,为他们在数据获取方面极大地减轻工作量,使他们更加专注于策略和模型的研究与实现上。在python安装、配置Tushare主要有以下几步(在安装python35、pip的情况下):1.安装 lxml方式一

2016-04-17 14:33:10 5062

原创 第八章习题汇总

1.#include #include using namespace std;double q(double,double,double);int main(){double a,b,c,p,x1,x2; cout<<"please enter a,b,c:"; cin>>a>>b>>c; p=-b/(2*a); try {x1=p+q(a,b,c); x2=p-

2015-06-16 17:14:05 313

原创 第七章习题汇总

1.#include#include using namespace std;int main(){ while(1) { double a,b,c,s,area; cin>>a>>b>>c; if(a+b>c&&b+c>a&&c+a>b) { s=(a+b+c)/2; area=sqrt(s*(s-a)*(s-b)*(s-c));

2015-06-09 21:41:30 272

原创 第六章习题汇总

1.#include using namespace std; #include "cylinder.h"#include "point.cpp"#include "circle.cpp"#include "cylinder.cpp"int main(){Cylinder cy1(3.5,6.4,5.2,10); cout<<"\noriginal

2015-06-02 19:01:08 268

原创 第五章习题汇总

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;

2015-05-19 17:03:38 330

原创 第四章习题汇总

1.#include using namespace std;class complex{ public: complex(){real=0;imag=0;} complex(double r,double i) { real=r;imag=i; } void disaplay(); double real; double imag;};voi

2015-05-05 12:37:37 291

原创 第三章习题汇总

4.#include using namespace std; class stu{ private: int num; int s; public: stu(int h,int w) { num=h; s=w; } void disaplay(); };void stu::disaplay(){ cout<<num<<" "<<s<<" "

2015-04-21 18:51:55 344

原创 C++类的思维导图

2015-04-20 23:15:38 757

原创 第二章习题汇总

2.[cpp] view plaincopy#include   using namespace std;  class Time  {  private:      int hour;      int minute;      int sec;  public:      void set_time()      

2015-04-12 14:18:28 255

原创 第一章习题汇总

7.#includeusing namespace std;int main (){int a,b;int f(int x,int y,int z=0);a=f(5,9);b=f(1,5,10);cout<<a<<endl<<b<<endl;return 0;}int f(int a,int b,int c=0){if(b>a) a=b;if(c>a) a=c;re

2015-04-12 13:53:06 231

空空如也

空空如也

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

TA关注的人

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