簡單的登入

2021-09-06 14:27:39 字數 1132 閱讀 4165

一:資料庫,表如下圖,id自動增長:

二:解決資源管理器的圖

三:登入的**

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

login1

int errortime = 0

;

private

void button1_click(object

sender, eventargs e)

if (tb_pwd.text.length <= 0

)

if (errortime >= 3

)

else

if (table.rows.count > 1

)

else

else}}}}}

四:登入的簡單流程

五:總結,本次中有太多的if巢狀,如果沒有流程圖,讀起來會比較麻煩,還需要改進

簡單的網頁登入

建立資料庫檔案 原始碼 mysql u root p 登入資料庫 create database test 建立資料庫 use test 進入資料庫 create table account 建立資料表 id int 10 unsigned auto increment primary key,us...

陣列 簡單的登入

登入login 註冊register 請選擇 1.登入 2.註冊 1請輸入使用者id 111 存在 登入成功 不存在 列印登入失敗 假設選擇 2 請輸入使用者id 111 註冊成功 已經註冊過此時列印註冊失敗,否在成功 如下 public class testdemo public static b...

簡單的登入頁面

ul,ol,li.cover login box h1.input group label icon input group input box seekbar thumb seekbar span icon vcode input vcode split aa hover tips btn log...