自定义博客皮肤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)
  • 收藏
  • 关注

原创 词法分析器

#include #include #include struct test   //关键字{ char name[10]; int  num;};struct oper//运算符与关系运算符{ char name[4]; int  num;};struct cut  //分隔符{ char name[2]; int  num;}

2012-06-02 20:55:42 546

原创 小数转化为分数

//思想:先把小数转化为两个整数的商,比如2.101可以转//化为2101与100的商,然后求2101与100的最大公约数c,//把2101与c的商作为分子,100与c的商作为分母;import java.lang.Double;import java.lang.String;import java.lang.System;public class Fesnshu1{

2012-06-02 20:50:57 1659

原创 一个简单的java猜谜游戏

看到网上的一篇程序员写给老婆的程序,看到里面大量的中文,突发奇想,也想写一个这样的程序,于是就萌生了写猜谜游戏的想法。代码中尽可能多的使用了中文。具体代码如下:import java.io.InputStreamReader;import java.io.BufferedReader;import java.lang.System;import java.lang.Math;

2012-06-02 20:48:10 2720

原创 用Flex写的一个简单计算器

Application xmlns:mx="http://www.adobe.com/2006/mxml"    layout="absolute" height="620" borderColor="#FD9706"  textAlign="center" width="1072">      layout="absolute"borderColor="#FADA05"  backg

2012-06-02 21:05:45 324

原创 用Flex写的一个简单计算器

Application xmlns:mx="http://www.adobe.com/2006/mxml"    layout="absolute" height="620" borderColor="#FD9706"  textAlign="center" width="1072">      layout="absolute"borderColor="#FADA05"  backg

2012-06-02 21:04:38 397

原创 一个Flex做的简单图片浏览器

http://www.adobe.com/2006/mxml" layout="absolute">             static private var images:Array=new Array("a.jpg","b.jpg","c.jpg");       static private var index:int=0;    public function

2012-06-02 21:03:39 525

原创 一个Android进制转换器

package com.com.twe.wew;import com.waps.AdView;import com.waps.AppConnect;import android.app.Activity;import android.os.Bundle;import android.view.Display;import android.view.Gravity;imp

2012-06-02 21:01:34 964

原创 Android 计算某天数之后的日期

//Y,M,D分别为用户输入的年月日,count为相隔的天数,//SUM为输入的年月日转化为天数后的总天数int Y=0,M=0,D=0,y=0,count=0,SUM=0,t=0,j=0;        try{    Y=Integer.parseInt(newyear.getText().toString());          M=Integer.parseInt

2012-06-02 20:59:54 528

原创 Android 计算两个日期之间相隔的天数

//SUM、sum分别为较大日期与较小日期化为天数后的总天数,//Y,M,D分别为大日期的年月日//y,m,d为小日期的年月日int SUM=0,sum=0,M=0,m=0,Y=0,y=0,D=0,d=0;try{   if(endyear.getText().toString()=null||endmonth.getText().toString()!=null||end

2012-06-02 20:59:03 1670

原创 矩阵乘法运算

#define M 100#define N 100#include#includeint main(){    int i,j,k,n,a[M][N],b[M][N],c[M][N];    //输入两个矩阵    cout    cin>>n;    cout    for(i=0;i    {        for(j=0;j

2012-06-02 20:57:42 1143

原创 进制转换

#includeint main(){    int num,base,n,i,k,j=0;    int a[32],b[32];    cout    cin>>num;    cout    cin>>base;    for(i=0;i    {       a[i]=num�se;       b[i]=num/base;

2012-06-02 20:56:57 256

原创 c++编写的万年历代码

#includeint main(){ int i,j,leap,year,m,d; int c,y,w,q; //判断某年某月某日星期几 cout cin>>year>>m>>d; y=year0,c=year/100;    w=5-c+y+(y/4)+(13*(m+1)/5)+d; q=w%7;  switch(q) { case 1:

2012-06-02 20:54:21 2292

原创 用java代码创建隐藏文件

import java.io.File;import java.io.IOException;public class Yincang{ public static void main(String[] args)throws IOException {   File file =new File("D:\\cc.text");   if(file.exists())

2012-06-02 20:52:30 1385

原创 学生宿舍管理系统

import java.io.InputStreamReader;import java.io.BufferedReader;import java.util.List;import java.util.ArrayList;class Student{ int sno; String name; int rno;  public int getSno()

2012-06-02 20:49:54 2956

空空如也

空空如也

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

TA关注的人

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