`
Jw.mac
  • 浏览: 10453 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
#include <stdio.h> #include <malloc.h> #include <stdlib.h> #include <stdbool.h> //简单数组存储 gcc下运行 //J.WANG 2013-6-8 typedef struct Arr{ int * data; //存储数组的第一个元素的地址 int len; //数组的存储长度 int index; //有效元 ...
#include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <string.h> #define SCORES 5 #define S 3 typedef struct { int num; char *name; char sex[2]; float score[SCORES]; float total; } STU; //输入n个学生的信息 void initInfo(STU * st,int n ...
package Convert; public class Money { public static void main(String[] args) { int num = 1000100001; char un[] = { '零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖' };// 一级单位 char us[] = { '拾', '佰', '仟' };// 二级单位 char uu[] = { '万', '亿' }; // 三级单位 int t, i = 0; // t余数,i循环下标 int ...
#include <stdio.h> #define M sizeof(unsigned int)*8 //进制转换 int trans(int n,int d,char *str){ char s[16]="0123456789ABCDEF"; int j,i=M; char buf[i+1]; buf[M]='\0'; if(d<2||d>16){ return 0; } while(n!=0){ buf[--i]=s[n%d]; n/=d; } for(j=0;(*(st ...
几个月前在虚拟机VitualBox上面用操作系统CentOS5.5装了Oracle 11gR2以后,一直用的很顺利,最近有一个月都在培训javascript和java,因此oracle没有怎么学习,今天突然打开虚拟机发现sqlplus再也连接不上了,报错: ./sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denie ...

c语言万年历 日历

    博客分类:
  • c
/* * cal.c * * Created on: 2013-3-11 * Author: J.WANG */ #include <stdlib.h> #include <stdio.h> //三维数组存放日期,每年12月,日历中最多排6行(星期),每星期7天 int days[12][6][7]; //平年,闰年每个月的天数 int ds[2][12] = { { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }, { 31, 29, 31, 30, 31, 30, ...
--如何按字段删除重复记录 一张表里面以两个字段为唯一字段,当几条记录的这两个字段完全相同时,需要删除重复项,如下表 a b c d 1 2 3 4 1 5 3 5 1 2 7 9 以a、b为唯一字段,第一条和第三条的a、b完全相同,所以,需要删除第一条记录1 2 3 4 或者第三条记录1 2 7 9 即如下结果: a b c d 1 2 3 4 1 5 3 5 或 a b c d 1 5 3 5 1 2 7 9 请问各位大侠这种sql语句怎么写 CREATE TABLE Tb1(id int, [a] varchar(255), [b] varc ...
  <script language=javascript> function showWeekFirstDay() { var Nowdate=new Date(); var WeekFirstDay=new Date(Nowdate-(Nowdate.getDay()-1)*86400000); alert(WeekFirstDay) } function showWeekLastDay() { var Nowdate=new Date(); var WeekFirstDay=new Date(Nowdate-(Nowdate.get ...
    /** * 将原数据前补零,补后的总长度为指定的长度,以字符串的形式返回 * @param sourceDate * @param formatLength * @return 重组后的数据 */ public static String frontCompWithZore(int sourceDate,int formatLength) { /* * 0 指前面补充零 * formatLength 字符总长度为 formatLength * d 代表为正数。 */ String newString ...
Oracle创建用户、表空间、导入导出、...命令   //创建临时表空间create temporary tablespace test_temp tempfile 'E:\oracle\product\10.2.0\oradata\testserver\test_temp01.dbf' size 32m autoextend on next 32m maxsize 2048mextent management local;//创建数据表空间create tablespace test_dataloggingdatafile 'E:\oracle\product\10.2.0\or ...
  1、Java日期循环 SimpleDateFormat formater = new SimpleDateFormat("yyyy-MM-dd"); String dateStr1="2008-3-16"; String dateStr2="2008-3-24"; java.util.Date dateBegin=formater.parse(dateStr1); java.util.Date dateEnd=formater.parse(dateStr2); ...
  function calcDate(){ var inputDate=document.forms[0].nowDate.value; if(''==inputDate){ document.forms[0].ngsj_Start.value=''; document.forms[0].ngsj_End.value=''; }else{ //yyyy-MM-dd格式时间 var inputDate=document.forms[0].nowDate.value; var theDate=new Date(Dat ...
Global site tag (gtag.js) - Google Analytics