自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1)
  • 资源 (1)
  • 收藏
  • 关注

转载 JVM内存模型

对于初学JAVA的人来说弄懂虚拟机JVM内存分布模式是很有必要的,首先我们要大致明白配置JDK环境变量的用途。 1.环境变量 如何配置java环境变量,此处不做赘述,此处主要说明环境变量的作用。不要用单纯的java、javac、或者java-version来判断是否安装成功,应该三者一起用。javac的作用是将我们的可读的java源文件文件编译成让jvm或者是cpu能够识别的字节码文件(.cl...

2016-08-28 17:18:13 290

C#学生管理系统

C#实现的学生管理系统 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; using System.Data.SqlClient; namespace 学生管理系统 { public partial class 登陆 : Form { int MyField; public 登陆() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { //string source = "server= LLTS-20110105UW"+" integrated security=SSPI "+"database=library"; string source = "Data Source=;Initial Catalog=library;Integrated Security=True"; SqlConnection conn = new SqlConnection(source); try { conn = new SqlConnection(source); string selectStr = "select LoginName,Password from denglu where LoginName=" + "'" + textBox1.Text.Trim() + "'" + " and Password=" + "'" + textBox2.Text.Trim() + "'"+"and identity="+"'"+"and identity="+"'";//+ +"'"; SqlCommand Command = new SqlCommand(selectStr, conn); conn.Open(); SqlDataReader sqlread = Command.ExecuteReader(CommandBehavior.CloseConnection); sqlread.Read(); if (sqlread.HasRows) { if (MyField == 1) { //this.Hide(); Form a = new 学生界面(); a.Show(); } else if (MyField ==2) { Form Form = new 教师界面(); Form.Show(); this.Hide(); } } else { MessageBox.Show("用户名或者密码错误!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); textBox1.Text = ""; textBox2.Text = ""; textBox1.Focus(); } sqlread.Close(); } catch (Exception sqlException) { MessageBox.Show("连接错误" + sqlException.ToString()); } } private void button2_Click(object sender, EventArgs e) { this.Close(); } private void radioButton1_CheckedChanged(object sender, EventArgs e) { MyField = 2; } private void radioButton2_CheckedChanged(object sender, EventArgs e) { MyField = 1; } } }

2013-06-27

空空如也

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

TA关注的人

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