c/c++ 学习
先从c++开始吧,c++就同java 应该有不小的差异,或者因为没有细看c++语法吧。今天看到虚函数的概念就晕了半天,其实c++虚函数的作用和java Interface作用类似。不过实现的有些别扭罢了。设计模式这段时间看了看,越看越晕,当然越看越有收获,书读三遍,其义自现。其实GOF这本书翻译的相当不错了,比其他类似的书好多了。基本思想:面向Contract编程,而不是Implementation. 找出vary things, encapsulate 他们,就是设计模式的基本思想了。也是gof始终强调的,不过以前没有领会到。[@more@]
配好 Europa C++ Environment
familiar with eclipse, so when i decide to learn c/c++. The first react is to www.eclipse.org. Just right, get the Europa C++.Now, let me introduce the process to config it. The first step is to download the Europa C++ bundle. but the Europa c++ bundle can't work on windows. you must config c/c++ compiler for it. next i will give you my step to config it. use Eclipse's help content-build your first c/c++ appliaction-- before you start, where give a detail how to config c/c++ compile environment.
获取某月天数的方法
JavaScript:function getLeap(iYear,iMonth){var DayNumber=new Array(11) //Array to save every month daysDayNumber[0]=DayNumber[2]=DayNumber[4]=DayNumber[6]=DayNumber[7]=DayNumber[9]=DayNumber[11]=31;DayNumber[3]=DayNumber[5]=DayNumber[8]=DayNumber[10]=30;if (iYear%4==0&&((iYear%100!=0)||(iYear%400==0)))DayNumber[1] = 29;elseDayNumber[1] = 28;return DayNumber[iMonth-1];}SQL:SELECT to_number( to_char(last_day(to_date('2007-01-24','yyyy-mm-dd')),'DD')) from dualjava:public static int getMaxDa