上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 26 下一页
摘要: alert(new Date().toLocaleString()); varnum = new Number(); num =11; alert(num); var a= "a"; alert(a); var b= 'b'; alert(b); var a= "123"; if(isNaN(a)) { alert("是一个数字"); } else { alert("不是一个数字"); } alert("3+3="+eval_r(3+3)); var sum = 0; for ( 阅读全文
posted @ 2013-03-16 23:09 蓬莱仙羽 阅读(191) 评论(0) 推荐(0) 编辑
摘要: asp.net最常用的三十三种编程代码1.打开新的窗口并传送参数:传送参数:response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>")接收参数:stringa=Request.QueryString("id");stringb=Request.QueryString("id1");2.为按钮添加对话框Button 阅读全文
posted @ 2013-03-13 16:37 蓬莱仙羽 阅读(181) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>javascript测试</title> <script type="text/javascript&quo 阅读全文
posted @ 2013-03-04 19:31 蓬莱仙羽 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Mono作为一个跨平台的.Net运行环境,它最大的优点就在于它的跨平台性,Mono 项目不仅可以运行于Windows 系统上,还可以运行于Linux,FreeBSD,Unix,Mac OS X 和Solaris等操作系统上。Mono支持的语言,有javascript,C#和一个不怎么为人所知的脚本语言,绝大多数都是使用C#开发,这也给我们学C#的人一个不错的发展平台。经过几天的摸索,突然对Unity3D感兴趣,之前一直好奇,像网游,比如魔兽,红警那些具有很强立体感的游戏,是用什么技术开发的,现在了解到原来是Unity3D技术,它不仅仅能够开发网络游戏,还可以开发编译成各个移动终端平台上的游戏. 阅读全文
posted @ 2013-03-03 23:43 蓬莱仙羽 阅读(149) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.IO;using System.Net;using System.Text.RegularExpressions;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { //需要解析的集合 List<string> list = new List<string>(); //已经解析的集合 List<string> listCount = 阅读全文
posted @ 2013-03-02 00:38 蓬莱仙羽 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1、实现一个函数,对一个正整数n,算得到1需要的最少操作次数。操作规则为:如果n为偶数,将其除以2;如果n为奇数,可以加1或减1;一直处理下去。例子:func(7) = 4,可以证明最少需要4次运算n = 7n-1 6n/2 3n-1 2n/2 1要求:实现函数(实现尽可能高效) int func(unsign int n);n为输入,返回最小的运算次数。给出思路(文字描述),完成代码,并分析你算法的时间复杂度。答:[cpp]view plaincopyintfunc(unsignedintn){if(n==1)return0;if(n%2==0)return1+func(n/2);intx= 阅读全文
posted @ 2013-02-27 16:32 蓬莱仙羽 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1、html基本结构<html><head><title>我的第一个网页</title></head><body bgcolor="red" background="bg.jpg"></body></html>2、文本相关标签<H1> - <H6><font> color size face<p> align <br><center> <b> <i><hr&g 阅读全文
posted @ 2013-02-26 20:14 蓬莱仙羽 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 如何实现语音和朗诵的功能:using System;using System.Windows.Forms;using System.IO;using System.Media;using System.Runtime.InteropServices;namespace 播放TTS{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } //根目录 string address = System.AppDomain.CurrentDomain.BaseDirectory; private voi 阅读全文
posted @ 2013-02-24 21:20 蓬莱仙羽 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 如何添加数据库中的信息加载到树形控件中?如何遍历控件中的信息?如何对控件中的信息进行增删查改?数据库设计:主界面:代码:using System;using System.Collections.Generic;using System.Windows.Forms;using TreeSolution.BLL;using TreeSolution.Model;namespace 树型测试{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } //当窗体加载时,加载树形节点 private v 阅读全文
posted @ 2013-02-22 11:33 蓬莱仙羽 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Winform特有的功能如何保存当前窗口中所填的信息,方便下次打开 还是这样的,实现如下:首先,在当前项目中打开Properties——Settings.settings,然后点击,添加字段;其次,再点击界面中控件的属性,然后选择ApplicationSettings属性,选Text属性,选择刚刚设置的字段最后,用一个事件来实现数据保存,代码:Settings.Default.Save();实现了需要的功能 阅读全文
posted @ 2013-02-21 16:49 蓬莱仙羽 阅读(314) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 26 下一页