小编use*_*388的帖子

C++在.txt文件中查找整数值

我有一个map.txt文件:

[Map]
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 …
Run Code Online (Sandbox Code Playgroud)

c++ integer position file edit

1
推荐指数
1
解决办法
124
查看次数

MySQL C#验证错误

public void Find(string userName, string password)
    {
        string query = "SELECT COUNT(*) FROM user WHERE username =\'" + userName + "\', \'" + GetMd5Sum(password) + "\'";
        MySqlCommand cmd = new MySqlCommand(query, connection);

        try
        {

            //This will return 1 if the username and password exist.
            //It will return 0 if the username and password are not found.
            int count = (int)cmd.ExecuteScalar();

            if (count > 0)
                MessageBox.Show("You have succesfully logged in!");
            else
                MessageBox.Show("Incorrect username or password.");

            connection.Close();
        }
        catch (Exception ex)
        { …
Run Code Online (Sandbox Code Playgroud)

c# mysql passwords validation username

-4
推荐指数
1
解决办法
257
查看次数

标签 统计

c# ×1

c++ ×1

edit ×1

file ×1

integer ×1

mysql ×1

passwords ×1

position ×1

username ×1

validation ×1