有谁会C++么,有道题麻烦大家看下
来源:百度知道 编辑:UC知道 时间:2024/05/17 03:51:31
namespace manager
{
public partial class Login : Form
{
public Login()
{
InitializeComponent();
}
frontform front = new frontform();
private void button1_Click(object sender, EventArgs e)
{
//MessageBox msgbox=null;
string us=null , ps=null;
string tableName = "admin";
if (combo.SelectedItem == "系统管理员") tableName = "admin";
if (combo.SelectedItem == "项目管理员") tableName = "proadmin";
if (combo.SelectedItem == "总经理") tableName = "master";
if (combo.SelectedItem == "项目经理") tableName = "manager";
if (combo.SelectedItem == "项目组员") tableName = "user1";
OleDbConn
{
public partial class Login : Form
{
public Login()
{
InitializeComponent();
}
frontform front = new frontform();
private void button1_Click(object sender, EventArgs e)
{
//MessageBox msgbox=null;
string us=null , ps=null;
string tableName = "admin";
if (combo.SelectedItem == "系统管理员") tableName = "admin";
if (combo.SelectedItem == "项目管理员") tableName = "proadmin";
if (combo.SelectedItem == "总经理") tableName = "master";
if (combo.SelectedItem == "项目经理") tableName = "manager";
if (combo.SelectedItem == "项目组员") tableName = "user1";
OleDbConn
怎么是C#的程序
-----------
这是C#(C Sharp),不是C语言
----------------------
namespace manager
{
//登录窗体类定义
public partial class Login : Form
{
//登录窗体的析造函数
public Login()
{
//初始化所有的控件,这是系统自动生成的
InitializeComponent();
}
//定义一个前端窗体对象,并进行初始化
//这个界面应该是在别的文件中定义的
frontform front = new frontform();
//这是登录窗体按键1的事件
private void button1_Click(object sender, EventArgs e)
{
//MessageBox msgbox=null;
//定义三个字符串变量 us=用户名 ps=密码 tableName=表名
string us=null , ps=null;
string tableName = "admin";
//根据用户在登录窗体时 选择的用户类型,确定该用户所处的表
if (combo.SelectedItem == "系统管理员") tableName = "admin";
if (combo.SelectedItem == "项目管理员") tableName = "proadmin";
if (combo.SelectedItem == "总经理") tableName = "master";
if (combo.SelectedItem == "项目经理"