<?php
class ObjectArray{
private $obj;
public function __construct($array)
{
$this->obj = $array;
return $this;
}
public function count($item = null){
......................
阅读全部
|
静夜思
贴于 2013年1月15日 23:46
hide
bbsi
<?php
class ObjectArray{
private $obj;
public function __construct($array)
{
$this->obj = $array;
return $this;
}
public function count($item = null){
......................
阅读全部
|
静夜思
贴于 2013年1月15日 23:24
hide
bbsi
<?php
class Arr{
private $obj;
public function __construct($array)
{
$this->obj = $array;
return $this;
}
public function each($func)
......................
阅读全部
|
静夜思
贴于 2013年1月15日 16:47
hide
bbsi
procedure n_con_g(nyear:integer;nmonth:integer;nday:integer;niyear:pinteger;nimonth:pinteger;niday:pinteger)
stdcall;external 'd:\nongli.dll';
procedure g_con_n(syear:integer;smonth:integer;sday:integer;niyear:pchar;nimonth:pchar;niday:pchar)
stdcall;external 'd:\nongli.dll';
procedure TForm1.Button4Click(Sender: TObject);
var
syear: array[0..10]of char;
smonth:array[0..10]of char;
sday: array[0..10]of char;
iyear: integer;
imonth:integer;
iday: integer;
......................
阅读全部
|
wp231957
贴于 2013年1月15日 10:36
hide
bbsi
#include <string.h>
#include <stdio.h>
#include <Windows.h>
#include <string.h>
#include "StdAfx.h"
#define days1800 341
int nongli[]=
{
/***************************************
* 农历1800-2100年大月小月与闰月 *
* (连同111个闰月在内共3723个月) *
* 公元1800-01-01为腊月(大)初七 *
......................
阅读全部
|
wp231957
贴于 2013年1月13日 12:33
hide
bbsi
#include<stdio.h>
int main()
{
int i,j,result;
for (i=1;i<10;i++)
{
for(j=1;j<=i;j++)
{
result=i*j;
printf("%d*%d=%-3d",j,i,result);
if(i==j)
printf("\n");
......................
阅读全部
|
LLC_HJW
贴于 2013年1月12日 10:03
hide
bbsi
#include <string.h>
#include <stdio.h>
#include <Windows.h>
#include <string.h>
#include "StdAfx.h"
#define days1800 341
int nongli[]=
{
/***************************************
* 农历1800-2100年大月小月与闰月 *
* (连同111个闰月在内共3723个月) *
* 公元1800-01-01为腊月(大)初七 *
......................
阅读全部
|
wp231957
贴于 2013年1月11日 16:03
hide
bbsi
#include <string.h>
#include <stdio.h>
#include <Windows.h>
#include <string.h>
#include "StdAfx.h"
#define days1800 341
int nongli[]=
{
/***************************************
* 农历1800-2100年大月小月与闰月 *
* (连同111个闰月在内共3723个月) *
* 公元1800-01-01为腊月(大)初七 *
......................
阅读全部
|
wp231957
贴于 2013年1月11日 10:06
hide
bbsi
#include <string.h>
#include <stdio.h>
#include <Windows.h>
#include <string.h>
int nongli[]=
{
/***************************************
* 农历1800-2100年大月小月与闰月 *
* (连同111个闰月在内共3723个月) *
* 公元1800-01-01为腊月(大)初七 *
* 公元1800-01-25为农历正月初一 *
***************************************/
......................
阅读全部
|
wp231957
贴于 2013年1月10日 23:05
hide
bbsi
#include <string.h>
#include <stdio.h>
#include <Windows.h>
#include <string.h>
#define leap(y) (y%4==0&&y%100||y%400==0)
char days[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
char *xq[]={"日","一","二","三","四","五","六", "七","八","九","十","冬","腊" };
struct date{ int year,month,day; };
typedef struct
{
......................
阅读全部
|
wp231957
贴于 2013年1月10日 16:27
hide
bbsi