摘要: 原文地址:http://blog.chinaunix.net/uid-16844903-id-3411118.html导出导出全库备份到本地的目录mysqldump -u$USER -p$PASSWD -h127.0.0.1 -P3306 --routines --default-character... 阅读全文
posted @ 2015-06-05 20:13 dot dot 小点点丶 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 笔记C++编译器为编译器需要合成Default Constructor的4种情况。1,Class A内含Class B对象,Class A没有Default Constructor时会在编译时合成Default Constructor 在编译期间这个Default Constructor会插入调用... 阅读全文
posted @ 2014-11-17 12:38 dot dot 小点点丶 阅读(192) 评论(0) 推荐(0) 编辑
摘要: # !/usr/bin/python# Filename:tcfg.pyimport ConfigParserconfig = ConfigParser.ConfigParser()config.read("/home/xxx/xxx/tcfg.ini")printsecs = config.sec... 阅读全文
posted @ 2014-08-18 11:50 dot dot 小点点丶 阅读(416) 评论(0) 推荐(0) 编辑
摘要: Learn of dictionary,simple example of dictionary in “Simple Python tutorial"---------------------------------------------------------#!/usr/bin/python... 阅读全文
posted @ 2014-08-17 14:33 dot dot 小点点丶 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 原文出处:http://blog.csdn.net/daiyutage/article/details/8604720 C语言中由于指针的灵活性,导致指针能代替数组使用,或者混合使用,这些导致了许多指针和数组的迷惑,因此,刻意再次深入探究了指针和数组这玩意儿,其他类型的数组比较简单,容易混淆的是字符... 阅读全文
posted @ 2014-06-14 08:20 dot dot 小点点丶 阅读(212) 评论(0) 推荐(0) 编辑
摘要: public static void main (String args[]) { DecimalFormat dFormat = new DecimalFormat(".##");//2位小数,不够不补0,多余按四舍五入舍去 String s= dFormat.format(333.339); System.out.println("s= "+s); dFormat.applyPattern(".00");//2位小数,不够补0 ... 阅读全文
posted @ 2014-04-13 14:49 dot dot 小点点丶 阅读(367) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; class over{ int i1 , i2 ,i3;public: void init(int I1=0 , int I2 =0, int I3=0); void print();public: over operator ++();//前缀 over operator++(int);//后缀 friend over operator--(over &);//友元前缀 friend over operator--(over & , int );//友元后缀};void over::init(int I1 , int 阅读全文
posted @ 2014-04-02 15:06 dot dot 小点点丶 阅读(376) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std ;class Base{ int basee ;public: Base(int base) { coutbasee = base ; } void show() { coutbase11 = base1 ; coutbase22 = base2 ; coutderived = derivied; }};int main(){ int derivied = 1 ; int derivedbase = 2 ; int base1 = 3 ; int base1base = 4 ; int base2 = 5 ; int base... 阅读全文
posted @ 2014-03-28 17:27 dot dot 小点点丶 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 顺序:1,调用按照声明顺序的基类构造函数2,调用内嵌对象构造函数3,调用自身构造函数(总是先人后己嘛,先老人(基类)后客人(内嵌对象),自己家小孩儿就不要管大人之间的事儿(不调用派生类构造函数))这里C继承B和A,内嵌D,E继承C;调用构造函数情况:测试: 1 #include 2 using namespace std ; 3 class D 4 { 5 public: 6 D(){cout<<"initializing D..."<<endl;} 7 ~D(){cout<<"destroying D..."< 阅读全文
posted @ 2014-03-28 16:59 dot dot 小点点丶 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 1个工程下有几个类文件,和1个全局的文件comm.h,comm.h中存放了这几个类同时需要的变量和同时调用的函数。当时,我只在comm.h中定义: int commData1; vector commWidth; void GetObjective(vector width, double obj); 而没有加 extern 关键字。出现以下错误:1> comm.cpp1>comm.obj : error LNK2005: "double * FacilityWidth" (?FacilityWidth@@3PANA) 已经在 Individual.obj 中定 阅读全文
posted @ 2014-03-27 11:39 dot dot 小点点丶 阅读(1066) 评论(0) 推荐(0) 编辑