- 博客(16)
- 资源 (39)
- 收藏
- 关注
原创 vb.net graphic 简单的画图程序
Dim g As Graphics = Me.CreateGraphics需要局部定义 每次实用需要定义--不能定义成全局 Public Class Form1 Dim DrawState As Boolean Dim PreX As Single Dim PreY As Single Dim eP As New Pen(Color.Black
2013-04-27 10:38:55 2632
转载 C++第2周项目2——读取数据到结构体数组
#include #include #include //在codeblocks下,exit(1)需要这个头文件using namespace std;struct Student{ char num[13]; //尽管都是由数字构成,但看作为字符更合适。学号12位,定义为13个字符,便于处理成字符串 char name[10]; //每个汉字占两个字节,中国人的名字
2013-04-26 11:57:48 1089
原创 c++ 结构体练习 结构体重的char数组指针
#include#includeusing namespace std;class zxl{public: struct z{ int num; char *name; char sex; int age; float score; char *addr; }z_1; void zxl_1();};void zxl::zxl_1(){
2013-04-26 09:31:31 1270
原创 在一个txt中 用分割线分割的文本片段 分离成单个txt文件
分析文本1.txt文件 内容:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-----------------1111111111111111111111111111111111111111111111
2013-04-25 22:12:34 4551
原创 vb.net graphic类 画圆,椭圆 画两点之间的坐标 画窗体改变跟随画图 图片的水平垂直翻转
画圆 圆心为(350,250)半径为200Public Class Form1 Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint Dim gr As Graphics = Me.CreateG
2013-04-25 14:26:16 4913
原创 c# 限制textbox的输入范围和长度(长度不用maxlength方法)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namesp
2013-04-24 18:12:47 19278 3
原创 c# datetime格式化
string str= "";str += "ToShortDateString:"+ DateTime.Now.ToShortDateString();str += "ToShortTimeString:"+ DateTime.Now.ToShortTimeString();str += "ToLongDateString"+ Da
2013-04-24 17:11:13 1178
转载 google面试题目:寻找丑数--使用double防止数据溢出
/*******************************************************************************google面试题目:我们把只包含因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含因子7。习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第2012个丑数。分析:假
2013-04-23 08:53:43 1592
转载 什么是链表?如何插入?如何删除?
----题目开始----实现一个链表,要求各个节点的Name都不重复,若试图增加重复节点,就抛出异常,填写下面的Append方法和Remove方法的代码。 using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace NodeTes
2013-04-22 10:09:42 937
原创 用栈求逆序
用栈求逆序using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace CSharp{ class Program { static void Main(string
2013-04-18 14:42:35 1249 1
原创 将百分制转换为五分制,如果输入的百分制成绩超出0~100时,程序抛出异常。
将百分制转换为五分制,如果输入的百分制成绩超出0~100时,程序抛出异常。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace CSharp{ class Program {
2013-04-18 14:41:26 3697
转载 C#读写中文文件
/// /// 根据路径读一行一行读取出文件类容 /// /// void GetFileContent(string path) { if (!System.IO.File.Exists(path)) return; System.IO.Stream
2013-04-12 12:09:30 1693
转载 C#读写文件总结
1、使用FileStream读写文件文件头:using System;using System.Collections.Generic;using System.Text;using System.IO;读文件核心代码:byte[] byData = new byte[100];char[] charData = new char[1000];try{
2013-04-11 22:18:16 843
原创 java 读取网页源码;
输入标准为 http://www.xxx.com import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.DataInputStream;import java.io.IOException;import java.net.MalformedURLExc
2013-04-07 12:46:11 1030
原创 java 压缩文件夹(包含内容)
import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.util.zip.ZipEntry;import java.util.zip.ZipOutputStream;public class zip { public static voi
2013-04-03 21:45:46 955
转载 win7 64位 java.sql.SQLException: [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序 问题
64位操作系统不支持Microsoft OLE DB Provider for Jet驱动程序,也不支持更早的Microsoft Access Driver (*.mdb)方式连接。所以,程序里面的链接字符串不能正常工作。需要修改下IIS的工作环境,改成32位的,在IIS的管理界面中,把应用程序池中的默认应用程序池常规选项中的32位方式启用就可以了。Win7 下Access的 ODBC连接
2013-04-01 16:35:10 1971
JSONLibraries1.zip
2013-05-13
spring-framework & commons-logging
2013-12-07
jquery.validate.js
2013-12-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人